summaryrefslogtreecommitdiff
path: root/client/widgets/lineedit.cc
diff options
context:
space:
mode:
authordeva <deva>2010-08-19 09:04:47 +0000
committerdeva <deva>2010-08-19 09:04:47 +0000
commit7914500c96ebe2106716a001ca2b93594d3c07a5 (patch)
tree025cf3dcbba673df9dcca9fa5864135a328209c8 /client/widgets/lineedit.cc
parent145bc8467b9f4271ca15654bc4bc6f7a8bc816b6 (diff)
Fixed problems with eventOnChange.
Diffstat (limited to 'client/widgets/lineedit.cc')
-rw-r--r--client/widgets/lineedit.cc7
1 files changed, 5 insertions, 2 deletions
diff --git a/client/widgets/lineedit.cc b/client/widgets/lineedit.cc
index a8ea600..1c379dc 100644
--- a/client/widgets/lineedit.cc
+++ b/client/widgets/lineedit.cc
@@ -33,6 +33,7 @@
#include <QKeyEvent>
#include "common.h"
+#include "debug.h"
LineEdit::LineEdit(QDomNode &node, MacroWindow *macrowindow)
: Widget(node, macrowindow)
@@ -70,13 +71,13 @@ LineEdit::~LineEdit()
void LineEdit::changed()
{
- eventOnChange();
+ emit eventOnChange();
}
void LineEdit::user_changed()
{
+ emit eventOnChange();
emit wasChanged();
- eventOnChange();
}
QString LineEdit::value()
@@ -118,6 +119,8 @@ void LineEdit::changeEvent(QEvent *event)
void LineEdit::setWdgValid(bool valid)
{
+ DEBUG(lineedit, "Set valid(%s)", valid?"true":"false");
+
QPalette palette;
if(valid) {