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