Changeset View
Changeset View
Standalone View
Standalone View
src/kpageview.h
Show First 20 Lines • Show All 153 Lines • ▼ Show 20 Line(s) | 68 | public: | |||
---|---|---|---|---|---|
154 | QAbstractItemDelegate *itemDelegate() const; | 154 | QAbstractItemDelegate *itemDelegate() const; | ||
155 | 155 | | |||
156 | /** | 156 | /** | ||
157 | * Sets the @p widget which will be shown when a page is selected | 157 | * Sets the @p widget which will be shown when a page is selected | ||
158 | * that has no own widget set. | 158 | * that has no own widget set. | ||
159 | */ | 159 | */ | ||
160 | void setDefaultWidget(QWidget *widget); | 160 | void setDefaultWidget(QWidget *widget); | ||
161 | 161 | | |||
162 | /** | ||||
163 | * Set a widget as the header for this Page view | ||||
cfeck: Does this transfer ownership of the widget? If yes, is ownership transferred back for any… | |||||
164 | * It will replace the standard page title | ||||
165 | * @since 5.60 | ||||
166 | */ | ||||
167 | void setPageHeader(QWidget *header); | ||||
168 | | ||||
169 | /** | ||||
170 | * Widget of the header for this page view | ||||
171 | * @since 5.60 | ||||
172 | */ | ||||
173 | QWidget *pageHeader() const; | ||||
174 | | ||||
175 | /** | ||||
176 | * Set a widget as the footer for this Page view | ||||
177 | * @since 5.60 | ||||
178 | */ | ||||
179 | void setPageFooter(QWidget *footer); | ||||
180 | | ||||
181 | /** | ||||
182 | * Widget of the footer for this page view | ||||
183 | * @since 5.60 | ||||
184 | */ | ||||
185 | QWidget *pageFooter() const; | ||||
186 | | ||||
162 | Q_SIGNALS: | 187 | Q_SIGNALS: | ||
163 | /** | 188 | /** | ||
164 | * This signal is emitted whenever the current page changes. | 189 | * This signal is emitted whenever the current page changes. | ||
165 | * The previous page index is replaced by the current index. | 190 | * The previous page index is replaced by the current index. | ||
166 | */ | 191 | */ | ||
167 | void currentPageChanged(const QModelIndex ¤t, const QModelIndex &previous); | 192 | void currentPageChanged(const QModelIndex ¤t, const QModelIndex &previous); | ||
168 | 193 | | |||
169 | protected: | 194 | protected: | ||
Show All 37 Lines |
Does this transfer ownership of the widget? If yes, is ownership transferred back for any previously set widget? Or is it even automatically deleted? It needs to be clarified in the docs.