C++ (Qt)class NumericalValuesFormatter : public QDialog{ Q_OBJECT friend class RegExpEdit; class RegExpEdit;public: explicit NumericalValuesFormatter(QWidget *parent = 0); ~NumericalValuesFormatter() {}private: ... RegExpEdit *lastEdit; ...}; class RegExpEdit : public QLineEdit{ Q_OBJECTpublic: explicit RegExpEdit(NumericalValuesFormatter *parent) : QLineEdit(parent), _dialog(parent) {} ~RegExpEdit() {}private: NumericalValuesFormatter *_dialog;protected: void focusInEvent(QFocusEvent) { _dialog->lastEdit = this; //че не так? _dialog->isTable = false; }};
ошибка: cannot convert 'RegExpEdit*' to 'NumericalValuesFormatter::RegExpEdit*' in assignment void focusInEvent(QFocusEvent) { _dialog->lastEdit = this; _dialog->isTable = false; }
class Trololo;