22
22
* The QgsTabWidget class is the same as the QTabWidget but with additional methods to
23
23
* temporarily hide/show tabs.
24
24
*
25
- * @note Added in QGIS 3.0
25
+ * @note Added in QGIS 2.18
26
26
*/
27
27
class GUI_EXPORT QgsTabWidget : public QTabWidget
28
28
{
@@ -32,28 +32,28 @@ class GUI_EXPORT QgsTabWidget : public QTabWidget
32
32
/* *
33
33
* Create a new QgsTabWidget with the optionally provided parent.
34
34
*
35
- * @note Added in QGIS 3.0
35
+ * @note Added in QGIS 2.18
36
36
*/
37
37
QgsTabWidget ( QWidget *parent = nullptr );
38
38
39
39
/* *
40
40
* Hides the tab with the given widget
41
41
*
42
- * @note Added in QGIS 3.0
42
+ * @note Added in QGIS 2.18
43
43
*/
44
44
void hideTab ( QWidget* tab );
45
45
46
46
/* *
47
47
* Shows the tab with the given widget
48
48
*
49
- * @note Added in QGIS 3.0
49
+ * @note Added in QGIS 2.18
50
50
*/
51
51
void showTab ( QWidget* tab );
52
52
53
53
/* *
54
54
* Control the visibility for the tab with the given widget.
55
55
*
56
- * @note Added in QGIS 3.0
56
+ * @note Added in QGIS 2.18
57
57
*/
58
58
void setTabVisible ( QWidget* tab, bool visible );
59
59
@@ -62,12 +62,27 @@ class GUI_EXPORT QgsTabWidget : public QTabWidget
62
62
* This index is not the same as the one provided to insertTab and removeTab
63
63
* since these methods are not aware of hidden tabs.
64
64
*
65
- * @note Added in QGIS 3.0
65
+ * @note Added in QGIS 2.18
66
66
*/
67
67
int realTabIndex ( QWidget* widget );
68
68
69
- virtual void tabInserted ( int index );
70
- virtual void tabRemoved ( int index );
69
+ /* *
70
+ * Is called internally whenever a new tab has been inserted.
71
+ *
72
+ * Is used to keep track of currently available and visible tabs.
73
+ *
74
+ * @note Added in QGIS 2.18
75
+ */
76
+ virtual void tabInserted ( int index ) override ;
77
+
78
+ /* *
79
+ * Is called internally whenever a tab has been removed.
80
+ *
81
+ * Is used to keep track of currently available and visible tabs.
82
+ *
83
+ * @note Added in QGIS 2.18
84
+ */
85
+ virtual void tabRemoved ( int index ) override ;
71
86
72
87
private:
73
88
void synchronizeIndexes ();
0 commit comments