summaryrefslogtreecommitdiff
path: root/client/widgets/altcombobox.h
diff options
context:
space:
mode:
Diffstat (limited to 'client/widgets/altcombobox.h')
-rw-r--r--client/widgets/altcombobox.h25
1 files changed, 7 insertions, 18 deletions
diff --git a/client/widgets/altcombobox.h b/client/widgets/altcombobox.h
index c52bd20..9f90f8b 100644
--- a/client/widgets/altcombobox.h
+++ b/client/widgets/altcombobox.h
@@ -31,43 +31,32 @@
#include "combobox.h"
-#include <QFrame>
#include <QDomNode>
#include <QMap>
-class AltComboBox : public QFrame, public Widget
+class QFrame;
+class AltComboBox : public Widget
{
Q_OBJECT
public:
AltComboBox(QDomNode &node, MacroWindow *macrowindow);
+ ~AltComboBox();
- bool isValid();
-
- QString getValue();
+ QString value();
void setValue(QString value, QString source = "");
- void disable();
- void enable();
- 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 preValid();
+ void setWdgValid(bool valid);
bool setKeyboardFocus();
- void setVisibility(bool visible);
public slots:
void onValueChange(int index);
void onValueChange(const QString &text);
void onChildChange();
-signals:
- void wasChanged();
-
private:
+ QFrame *frame;
ComboBox *combobox;
Widget *innerwidget;
QString altvalue;