src/Preferences.cc: In member function ‘void Preferences::on_comboBoxLineWrapIndentationStyle_activated(int)’:
src/Preferences.cc:559:82: error: ‘class QComboBox’ has no member named ‘currentData’; did you mean ‘currentText’?
rapIndentationIndent->setDisabled(comboBoxLineWrapIndentationStyle->currentData() == "Same" || comboBoxLineWrapIndentationStyle->currentData() == "Indented");
^~~~~~~~~~~
currentText
src/Preferences.cc:559:143: error: ‘class QComboBox’ has no member named ‘currentData’; did you mean ‘currentText’?
Style->currentData() == "Same" || comboBoxLineWrapIndentationStyle->currentData() == "Indented");
^~~~~~~~~~~
currentText
src/Preferences.cc: In member function ‘void Preferences::on_pushButtonOctoPrintCheckConnection_clicked()’:
src/Preferences.cc:723:85: error: no matching function for call to ‘QString::fromStdString(const QString)’
ritical(this, _("Error"), QString::fromStdString(e.getErrorMessage()), QMessageBox::Ok);
^
In file included from /usr/include/qt4/QtCore/qobject.h:48,
from /usr/include/qt4/QtGui/qwidget.h:47,
from /usr/include/qt4/QtGui/qmainwindow.h:45,
from /usr/include/qt4/QtGui/QMainWindow:1,
from src/Preferences.h:3,
from src/Preferences.cc:27:
/usr/include/qt4/QtCore/qstring.h:1047:16: note: candidate: ‘static QString QString::fromStdString(const string&)’
inline QString QString::fromStdString(const std::string &s)
^~~~~~~
/usr/include/qt4/QtCore/qstring.h:1047:16: note: no known conversion for argument 1 from ‘const QString’ to ‘const string&’ {aka ‘const std::__cxx11::basic_string<char>&’}
src/Preferences.cc: In member function ‘void Preferences::on_pushButtonOctoPrintSlicingEngine_clicked()’:
src/Preferences.cc:747:85: error: no matching function for call to ‘QString::fromStdString(const QString)’
ritical(this, _("Error"), QString::fromStdString(e.getErrorMessage()), QMessageBox::Ok);
^
In file included from /usr/include/qt4/QtCore/qobject.h:48,
from /usr/include/qt4/QtGui/qwidget.h:47,
from /usr/include/qt4/QtGui/qmainwindow.h:45,
from /usr/include/qt4/QtGui/QMainWindow:1,
from src/Preferences.h:3,
from src/Preferences.cc:27:
/usr/include/qt4/QtCore/qstring.h:1047:16: note: candidate: ‘static QString QString::fromStdString(const string&)’
inline QString QString::fromStdString(const std::string &s)
^~~~~~~
/usr/include/qt4/QtCore/qstring.h:1047:16: note: no known conversion for argument 1 from ‘const QString’ to ‘const string&’ {aka ‘const std::__cxx11::basic_string<char>&’}
src/Preferences.cc: In member function ‘void Preferences::on_pushButtonOctoPrintSlicingProfile_clicked()’:
src/Preferences.cc:783:85: error: no matching function for call to ‘QString::fromStdString(const QString)’
ritical(this, _("Error"), QString::fromStdString(e.getErrorMessage()), QMessageBox::Ok);
^
In file included from /usr/include/qt4/QtCore/qobject.h:48,
from /usr/include/qt4/QtGui/qwidget.h:47,
from /usr/include/qt4/QtGui/qmainwindow.h:45,
from /usr/include/qt4/QtGui/QMainWindow:1,
from src/Preferences.h:3,
from src/Preferences.cc:27:
/usr/include/qt4/QtCore/qstring.h:1047:16: note: candidate: ‘static QString QString::fromStdString(const string&)’
inline QString QString::fromStdString(const std::string &s)
^~~~~~~
/usr/include/qt4/QtCore/qstring.h:1047:16: note: no known conversion for argument 1 from ‘const QString’ to ‘const string&’ {aka ‘const std::__cxx11::basic_string<char>&’}
src/Preferences.cc: In member function ‘void Preferences::updateGUI()’:
src/Preferences.cc:944:88: error: ‘class QComboBox’ has no member named ‘currentData’; did you mean ‘currentText’?
rapIndentationIndent->setDisabled(comboBoxLineWrapIndentationStyle->currentData() == "Same" || comboBoxLineWrapIndentationStyle->currentData() == "Indented");
^~~~~~~~~~~
currentText
src/Preferences.cc:944:149: error: ‘class QComboBox’ has no member named ‘currentData’; did you mean ‘currentText’?
Style->currentData() == "Same" || comboBoxLineWrapIndentationStyle->currentData() == "Indented");
^~~~~~~~~~~
currentText
make: *** [Makefile:2576: objects/src/Preferences.o] Error 1
Hello:
I'm following your tutorial
But i'm getting these errors:
I don't have very deep knowledge
Thank you and sorry for the english