diff options
author | deva <deva> | 2008-09-03 14:30:05 +0000 |
---|---|---|
committer | deva <deva> | 2008-09-03 14:30:05 +0000 |
commit | 4549daa34926ca806daf6cbf4aea70bf24338f4a (patch) | |
tree | 00a65c331318c8466209773159147d8874ba4ea2 /client/widgets/dbwidget.h | |
parent | 062cd5bb34d0aa02e42467f04dad50af2a3abd24 (diff) |
Did some work on the database widget. It now works with hardcoded medicine list.
Diffstat (limited to 'client/widgets/dbwidget.h')
-rw-r--r-- | client/widgets/dbwidget.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/client/widgets/dbwidget.h b/client/widgets/dbwidget.h index d0105a8..0438ca5 100644 --- a/client/widgets/dbwidget.h +++ b/client/widgets/dbwidget.h @@ -31,12 +31,16 @@ #include <QDomNode> #include <QComboBox> #include <QRegExp> +#include <QSqlDatabase> + +#include <QEvent> class DBWidget : public QComboBox, public Widget { Q_OBJECT public: DBWidget(QDomNode &node, MacroWindow *macrowindow); + ~DBWidget(); bool isValid(); @@ -48,9 +52,13 @@ public: public slots: void changed(); + void update_list(QString prefix); -private: +protected: + // void focusInEvent(QFocusEvent *); +private: + QSqlDatabase db; }; #endif/*__PRACRO_DBWIDGET_H__*/ |