summaryrefslogtreecommitdiff
path: root/client/widgets/lineedit.h
diff options
context:
space:
mode:
Diffstat (limited to 'client/widgets/lineedit.h')
-rw-r--r--client/widgets/lineedit.h30
1 files changed, 9 insertions, 21 deletions
diff --git a/client/widgets/lineedit.h b/client/widgets/lineedit.h
index 556e52c..90fac75 100644
--- a/client/widgets/lineedit.h
+++ b/client/widgets/lineedit.h
@@ -28,44 +28,32 @@
#define __PRACRO_LINEEDIT_H__
#include "widget.h"
-#include <QLineEdit>
-#include <QWidget>
-#include <QDomNode>
-class LineEdit : public QLineEdit, public Widget
+class QLineEdit;
+class QEvent;
+class LineEdit : public Widget
{
Q_OBJECT
public:
LineEdit(QDomNode &node, MacroWindow *macrowindow);
+ ~LineEdit();
- QString getValue();
- void setValue(QString value, QString source = "");
+ QString value();
+ void setValue(QString value, QString source);
- void enable();
- void disable();
- bool isDisabled();
-
- void connectFrom(const char *signal,
- const QObject *receiver, const char *method);
-
- void connectTo(const QObject *sender, const char *signal,
- const char *method);
-
- bool setKeyboardFocus();
- void setVisibility(bool visible);
+ void setWdgValid(bool valid);
public slots:
void changed();
void user_changed();
-signals:
- void wasChanged();
-
protected:
void changeEvent(QEvent *event);
private:
bool eventFilter(QObject *, QEvent *event);
+
+ QLineEdit *lineedit;
};
#endif/*__PRACRO_LINEEDIT_H__*/