summaryrefslogtreecommitdiff
path: root/client/widgets/dbwidget.h
diff options
context:
space:
mode:
Diffstat (limited to 'client/widgets/dbwidget.h')
-rw-r--r--client/widgets/dbwidget.h17
1 files changed, 16 insertions, 1 deletions
diff --git a/client/widgets/dbwidget.h b/client/widgets/dbwidget.h
index 98499b9..13e552d 100644
--- a/client/widgets/dbwidget.h
+++ b/client/widgets/dbwidget.h
@@ -45,15 +45,28 @@ public:
bool isValid();
QString getValue();
- void setValue(QString value);
+ void setValue(QString value, QString source = "");
void enable();
void disable();
+ void connectFrom(const char *signal,
+ const QObject *receiver, const char *method);
+
+ void connectTo(const QObject *sender, const char *signal,
+ const char *method);
+
+ void setVisibility(bool visible);
+
+ bool setKeyboardFocus();
+
public slots:
void changed();
void update_list(QString prefix);
+signals:
+ void wasChanged();
+
protected:
// void focusInEvent(QFocusEvent *);
@@ -64,6 +77,8 @@ private:
QString from;
QString where;
QString format;
+
+ bool changedByUser;
};
#endif/*__PRACRO_DBWIDGET_H__*/