summaryrefslogtreecommitdiff
path: root/library/menubutton.h
authorllornkcor <llornkcor>2003-02-23 03:35:32 (UTC)
committer llornkcor <llornkcor>2003-02-23 03:35:32 (UTC)
commit98ed23c5281a57d08c6c18b464fc50b4638385f8 (patch) (side-by-side diff)
tree79e3ad38c6e96ce3d0bbabb00e601a45f41d7210 /library/menubutton.h
parent47fc358e914aecd13c4cb3d9cb4b3f2ca1a93b6c (diff)
downloadopie-98ed23c5281a57d08c6c18b464fc50b4638385f8.zip
opie-98ed23c5281a57d08c6c18b464fc50b4638385f8.tar.gz
opie-98ed23c5281a57d08c6c18b464fc50b4638385f8.tar.bz2
added a couple public methods- remove(int) count() text(int) and setUseLabel. see header for notes
Diffstat (limited to 'library/menubutton.h') (more/less context) (ignore whitespace changes)
-rw-r--r--library/menubutton.h6
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:
void clear();
+
int currentItem() const;
QString currentText() const;
@@ -40,6 +41,10 @@ public:
void insertSeparator();
void setLabel(const QString& label);
+ int count();
+ void remove(int id);
+ QString text(int id);
+ void setUseLabel(bool b);
signals:
void selected(int);
@@ -50,6 +55,7 @@ public slots:
void select(const QString&);
private:
+ bool useLabel;
void init();
QStringList txts;
QPopupMenu* pop;