From 98ed23c5281a57d08c6c18b464fc50b4638385f8 Mon Sep 17 00:00:00 2001 From: llornkcor Date: Sun, 23 Feb 2003 03:35:32 +0000 Subject: added a couple public methods- remove(int) count() text(int) and setUseLabel. see header for notes --- (limited to 'library/menubutton.h') 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; -- cgit v0.9.0.2