-rw-r--r-- | library/menubutton.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/library/menubutton.h b/library/menubutton.h index 6582b1e..ee5dcf1 100644 --- a/library/menubutton.h +++ b/library/menubutton.h | |||
@@ -31,6 +31,7 @@ public: | |||
31 | 31 | ||
32 | void clear(); | 32 | void clear(); |
33 | 33 | ||
34 | |||
34 | int currentItem() const; | 35 | int currentItem() const; |
35 | QString currentText() const; | 36 | QString currentText() const; |
36 | 37 | ||
@@ -40,6 +41,10 @@ public: | |||
40 | void insertSeparator(); | 41 | void insertSeparator(); |
41 | 42 | ||
42 | void setLabel(const QString& label); | 43 | void setLabel(const QString& label); |
44 | int count(); | ||
45 | void remove(int id); | ||
46 | QString text(int id); | ||
47 | void setUseLabel(bool b); | ||
43 | 48 | ||
44 | signals: | 49 | signals: |
45 | void selected(int); | 50 | void selected(int); |
@@ -50,6 +55,7 @@ public slots: | |||
50 | void select(const QString&); | 55 | void select(const QString&); |
51 | 56 | ||
52 | private: | 57 | private: |
58 | bool useLabel; | ||
53 | void init(); | 59 | void init(); |
54 | QStringList txts; | 60 | QStringList txts; |
55 | QPopupMenu* pop; | 61 | QPopupMenu* pop; |