Код:// glineedit.h#ifndef GLLINEEDIT_H#define GLLINEEDIT_H#include class QLineEdit;class QWidget;class GlLineEdit : public QLineEdit{ Q_OBJECTpublic: GlLineEdit(QWidget* parent = 0); ~GlLineEdit() { }private slots: bool strAnalyse();};#endif // GLLINEEDIT_HКод://glineedit.cpp#include #include "gllineedit.h"GlLineEdit::GlLineEdit(QWi dget* parent) : QLineEdit (parent){ connect(this, SIGNAL(returnPressed()), this, SLOT(strAnalyse()));}bool GlLineEdit::strAnalyse() { return true;}в чем ошибка?
|