author | zecke <zecke> | 2003-08-30 20:26:05 (UTC) |
---|---|---|
committer | zecke <zecke> | 2003-08-30 20:26:05 (UTC) |
commit | d34e9bd43cab9fa296ee24dff173e86d5cf9954a (patch) (unidiff) | |
tree | 9bc1d141018c27c1e2d5c9bcb3d2501e12d2aafd | |
parent | 4c3a1de5289631db05b86a07092f0a334608dcf6 (diff) | |
download | opie-d34e9bd43cab9fa296ee24dff173e86d5cf9954a.zip opie-d34e9bd43cab9fa296ee24dff173e86d5cf9954a.tar.gz opie-d34e9bd43cab9fa296ee24dff173e86d5cf9954a.tar.bz2 |
Add comments about API changes when possible again
Add currentWidget() method and mark it as since 1.2
-rw-r--r-- | libopie/otabwidget.cpp | 9 | ||||
-rw-r--r-- | libopie/otabwidget.h | 11 |
2 files changed, 18 insertions, 2 deletions
diff --git a/libopie/otabwidget.cpp b/libopie/otabwidget.cpp index fe2c60f..1b8c085 100644 --- a/libopie/otabwidget.cpp +++ b/libopie/otabwidget.cpp | |||
@@ -409,2 +409,11 @@ int OTabWidget::currentTab() | |||
409 | } | 409 | } |
410 | 410 | ||
411 | QWidget* OTabWidget::currentWidget()const | ||
412 | { | ||
413 | if ( currTab ) | ||
414 | { | ||
415 | return currTab->control(); | ||
416 | } | ||
417 | |||
418 | return 0; | ||
419 | } | ||
diff --git a/libopie/otabwidget.h b/libopie/otabwidget.h index c140c0b..acb9223 100644 --- a/libopie/otabwidget.h +++ b/libopie/otabwidget.h | |||
@@ -125,4 +125,5 @@ public: | |||
125 | * @param widget Widget control to be removed. | 125 | * @param widget Widget control to be removed. |
126 | */ | 126 | */ |
127 | /* ### Page vs. Tab.. yes the widget is a Page but then is addTab wrong -zecke */ | ||
127 | void removePage( QWidget * ); | 128 | void removePage( QWidget * ); |
128 | 129 | ||
@@ -199,6 +200,12 @@ public: | |||
199 | * @brief returns current tab id. | 200 | * @brief returns current tab id. |
200 | */ | 201 | */ |
201 | int currentTab(); | 202 | // ### make const |
202 | 203 | int currentTab()/* const */; | |
204 | /** | ||
205 | * @brief returns the current page of the active tab | ||
206 | * | ||
207 | * @since 1.2 | ||
208 | */ | ||
209 | QWidget* currentWidget()const; | ||
203 | 210 | ||
204 | protected: | 211 | protected: |