summaryrefslogtreecommitdiff
path: root/client/widgets/multilist.h
diff options
context:
space:
mode:
Diffstat (limited to 'client/widgets/multilist.h')
-rw-r--r--client/widgets/multilist.h27
1 files changed, 9 insertions, 18 deletions
diff --git a/client/widgets/multilist.h b/client/widgets/multilist.h
index 3b0f51e..8e806fa 100644
--- a/client/widgets/multilist.h
+++ b/client/widgets/multilist.h
@@ -28,44 +28,33 @@
#define __PRACRO_MULTILIST_H__
#include "widget.h"
-#include <QFrame>
+
#include <QDomNode>
#include <QListWidget>
#include <QVector>
-class MultiList : public QFrame, public Widget
+class QFrame;
+class MultiList : public Widget
{
Q_OBJECT
public:
MultiList(QDomNode &node, MacroWindow *macrowindow);
+ ~MultiList();
- QString getValue();
+ QString value();
void setValue(QString value, QString source = "");
- void connectFrom(const char *signal,
- const QObject *receiver, const char *method);
-
- void connectTo(const QObject *sender, const char *signal,
- const char *method);
+ bool preValid();
+ void setWdgValid(bool valid);
bool setKeyboardFocus();
- void setVisibility(bool visible);
-
- void disable();
- void enable();
- bool isDisabled();
-
- bool isValid();
public slots:
void changed();
void remove();
void add();
-signals:
- void wasChanged();
-
protected:
bool eventFilter(QObject *obj, QEvent *event);
@@ -74,6 +63,8 @@ private:
Widget *innerwidget;
QString format;
bool innerwidget_has_changes;
+
+ QFrame *frame;
};
#endif/*__PRACRO_MULTILIST_H__*/