Changeset View
Changeset View
Standalone View
Standalone View
src/kmultitabbar.h
Show First 20 Lines • Show All 89 Lines • ▼ Show 20 Line(s) | 62 | public: | |||
---|---|---|---|---|---|
90 | * @param id an arbitrary ID value. It will be emitted in the clicked signal for identifying the button | 90 | * @param id an arbitrary ID value. It will be emitted in the clicked signal for identifying the button | ||
91 | * if more than one button is connected to a signals. | 91 | * if more than one button is connected to a signals. | ||
92 | * @param popup A popup menu which should be displayed if the button is clicked | 92 | * @param popup A popup menu which should be displayed if the button is clicked | ||
93 | * @param not_used_yet will be used for a popup text in the future | 93 | * @param not_used_yet will be used for a popup text in the future | ||
94 | * @since 5.13 | 94 | * @since 5.13 | ||
95 | */ | 95 | */ | ||
96 | int appendButton(const QIcon &icon, int id = -1, QMenu *popup = nullptr, const QString ¬_used_yet = QString()); | 96 | int appendButton(const QIcon &icon, int id = -1, QMenu *popup = nullptr, const QString ¬_used_yet = QString()); | ||
97 | 97 | | |||
98 | #ifndef KWIDGETSADDONS_NO_DEPRECATED | 98 | #if KWIDGETSADDONS_ENABLE_DEPRECATED_SINCE(5, 13) | ||
99 | /** | 99 | /** | ||
100 | * append a new button to the button area. The button can later on be accessed with button(ID) | 100 | * append a new button to the button area. The button can later on be accessed with button(ID) | ||
101 | * eg for connecting signals to it | 101 | * eg for connecting signals to it | ||
102 | * | 102 | * | ||
103 | * @deprecated since 5.13, use the appendButton() with QIcon | 103 | * @deprecated since 5.13, use the appendButton() with QIcon | ||
104 | * | 104 | * | ||
105 | * @param pic a pixmap for the button | 105 | * @param pic a pixmap for the button | ||
106 | * @param id an arbitraty ID value. It will be emitted in the clicked signal for identifying the button | 106 | * @param id an arbitraty ID value. It will be emitted in the clicked signal for identifying the button | ||
107 | * if more than one button is connected to a signals. | 107 | * if more than one button is connected to a signals. | ||
108 | * @param popup A popup menu which should be displayed if the button is clicked | 108 | * @param popup A popup menu which should be displayed if the button is clicked | ||
109 | * @param not_used_yet will be used for a popup text in the future | 109 | * @param not_used_yet will be used for a popup text in the future | ||
110 | */ | 110 | */ | ||
111 | KWIDGETSADDONS_DEPRECATED int appendButton(const QPixmap &pic, int id = -1, QMenu *popup = nullptr, const QString ¬_used_yet = QString()); | 111 | KWIDGETSADDONS_DEPRECATED_VERSION(5, 13, "Use KMultiTabBar::appendButton(const QIcon&, ...)") | ||
112 | int appendButton(const QPixmap &pic, int id = -1, QMenu *popup = nullptr, const QString ¬_used_yet = QString()); | ||||
112 | #endif | 113 | #endif | ||
113 | 114 | | |||
114 | /** | 115 | /** | ||
115 | * remove a button with the given ID | 116 | * remove a button with the given ID | ||
116 | */ | 117 | */ | ||
117 | void removeButton(int id); | 118 | void removeButton(int id); | ||
118 | 119 | | |||
119 | /** | 120 | /** | ||
120 | * append a new tab to the tab area. It can be accessed lateron with tabb(id); | 121 | * append a new tab to the tab area. It can be accessed lateron with tabb(id); | ||
121 | * @param icon a icon for the tab | 122 | * @param icon a icon for the tab | ||
122 | * @param id an arbitrary ID which can be used later on to identify the tab | 123 | * @param id an arbitrary ID which can be used later on to identify the tab | ||
123 | * @param text if a mode with text is used it will be the tab text, otherwise a mouse over hint | 124 | * @param text if a mode with text is used it will be the tab text, otherwise a mouse over hint | ||
124 | * @since 5.13 | 125 | * @since 5.13 | ||
125 | */ | 126 | */ | ||
126 | int appendTab(const QIcon &icon, int id = -1, const QString &text = QString()); | 127 | int appendTab(const QIcon &icon, int id = -1, const QString &text = QString()); | ||
127 | 128 | | |||
128 | #ifndef KWIDGETSADDONS_NO_DEPRECATED | 129 | #if KWIDGETSADDONS_ENABLE_DEPRECATED_SINCE(5, 13) | ||
129 | /** | 130 | /** | ||
130 | * append a new tab to the tab area. It can be accessed lateron with tabb(id); | 131 | * append a new tab to the tab area. It can be accessed lateron with tabb(id); | ||
131 | * | 132 | * | ||
132 | * @deprecated since 5.13, use the appendTab() with QIcon | 133 | * @deprecated since 5.13, use the appendTab() with QIcon | ||
133 | * | 134 | * | ||
134 | * @param pic a bitmap for the tab | 135 | * @param pic a bitmap for the tab | ||
135 | * @param id an arbitrary ID which can be used later on to identify the tab | 136 | * @param id an arbitrary ID which can be used later on to identify the tab | ||
136 | * @param text if a mode with text is used it will be the tab text, otherwise a mouse over hint | 137 | * @param text if a mode with text is used it will be the tab text, otherwise a mouse over hint | ||
137 | */ | 138 | */ | ||
138 | KWIDGETSADDONS_DEPRECATED int appendTab(const QPixmap &pic, int id = -1, const QString &text = QString()); | 139 | KWIDGETSADDONS_DEPRECATED_VERSION(5, 13, "Use KMultiTabBar::appendTab(const QIcon&, ...)") | ||
140 | int appendTab(const QPixmap &pic, int id = -1, const QString &text = QString()); | ||||
139 | #endif | 141 | #endif | ||
140 | 142 | | |||
141 | /** | 143 | /** | ||
142 | * remove a tab with a given ID | 144 | * remove a tab with a given ID | ||
143 | */ | 145 | */ | ||
144 | void removeTab(int id); | 146 | void removeTab(int id); | ||
145 | /** | 147 | /** | ||
146 | * set a tab to "raised" | 148 | * set a tab to "raised" | ||
▲ Show 20 Lines • Show All 155 Lines • Show Last 20 Lines |