summaryrefslogtreecommitdiff
path: root/libopie/otabinfo.h
authordrw <drw>2003-02-16 21:54:23 (UTC)
committer drw <drw>2003-02-16 21:54:23 (UTC)
commit8ecc375c803dc57b160bd0335891fcaf4f6de1df (patch) (side-by-side diff)
treea89c1ccc6e3a469bb8fa435dfedce9386333cb72 /libopie/otabinfo.h
parente0eb3f016d7f8a1e1e5548ef8aa115fef8999697 (diff)
downloadopie-8ecc375c803dc57b160bd0335891fcaf4f6de1df.zip
opie-8ecc375c803dc57b160bd0335891fcaf4f6de1df.tar.gz
opie-8ecc375c803dc57b160bd0335891fcaf4f6de1df.tar.bz2
Added changeTab() to OTabWidget to dynamically change tab name and/or icon (stumbled upon request for this in TinyKate todo)
Diffstat (limited to 'libopie/otabinfo.h') (more/less context) (ignore whitespace changes)
-rw-r--r--libopie/otabinfo.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/libopie/otabinfo.h b/libopie/otabinfo.h
index 8dbbcc2..6589638 100644
--- a/libopie/otabinfo.h
+++ b/libopie/otabinfo.h
@@ -91,2 +91,10 @@ public:
/**
+ * @fn setLabel( const QString &label )
+ * @brief Set label for tab.
+ *
+ * @param label QString text label for OTabWidget selection control.
+ */
+ void setLabel( const QString &label ) { l = label; }
+
+/**
* @fn control()
@@ -102,2 +110,10 @@ public:
+/**
+ * @fn setIcon( const QString &icon )
+ * @brief Set icon for tab.
+ *
+ * @param icon QString name of icon file.
+ */
+ void setIcon( const QString &icon ) { p = icon; }
+
private: