KWidgetsAddons
kpagedialog.h
68 * QDialogButtonBox *btnBox = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Apply | QDialogButtonBox::Cancel,
218 * Returns the QPushButton corresponding to the standard button which, or a null pointer if the standard
252 KWIDGETSADDONS_NO_EXPORT KPageDialog(KPageDialogPrivate &dd, KPageWidget *widget, QWidget *parent, Qt::WindowFlags flags = Qt::WindowFlags());
QDialogButtonBox * buttonBox()
Returns the button box of the dialog or a null pointer if no button box is set.
Definition kpagedialog.cpp:166
KPageWidgetItem * addPage(QWidget *widget, const QString &name)
Adds a new top level page to the dialog.
Definition kpagedialog.cpp:59
KPageWidgetItem * insertPage(KPageWidgetItem *before, QWidget *widget, const QString &name)
Inserts a new page in the dialog.
Definition kpagedialog.cpp:73
@ List
A dialog with an icon list on the left side and a representation of the contents on the right side.
Definition kpagedialog.h:102
@ Tree
A dialog with a tree on the left side and a representation of the contents on the right side.
Definition kpagedialog.h:107
@ Tabbed
A dialog with a tab bar above the representation of the contents.
Definition kpagedialog.h:112
@ FlatList
A dialog with an flat list with small icons on the left side and a representation of the contents on ...
Definition kpagedialog.h:117
@ Auto
A dialog with a face based on the structure of the available pages.
Definition kpagedialog.h:93
KPageWidgetItem * addSubPage(KPageWidgetItem *parent, QWidget *widget, const QString &name)
Inserts a new sub page in the dialog.
Definition kpagedialog.cpp:87
KPageWidget * pageWidget()
Returns the page widget of the dialog or a null pointer if no page widget is set.
Definition kpagedialog.cpp:143
void currentPageChanged(KPageWidgetItem *current, KPageWidgetItem *before)
This signal is emitted whenever the current page has changed.
void setButtonBox(QDialogButtonBox *box)
Set the button box of the dialog.
Definition kpagedialog.cpp:180
QPushButton * button(QDialogButtonBox::StandardButton which) const
Returns the QPushButton corresponding to the standard button which, or a null pointer if the standard...
Definition kpagedialog.cpp:129
void pageRemoved(KPageWidgetItem *page)
This signal is emitted whenever a page has been removed.
void setCurrentPage(KPageWidgetItem *item)
Sets the page which is associated with the given KPageWidgetItem to be the current page and emits the...
Definition kpagedialog.cpp:108
KPageWidgetItem * currentPage() const
Returns the KPageWidgetItem for the current page or a null pointer if there is no current page.
Definition kpagedialog.cpp:115
void removePage(KPageWidgetItem *item)
Removes the page associated with the given KPageWidgetItem.
Definition kpagedialog.cpp:101
void setStandardButtons(QDialogButtonBox::StandardButtons buttons)
Sets the collection of standard buttons displayed by this dialog.
Definition kpagedialog.cpp:122
KPageDialog(QWidget *parent=nullptr, Qt::WindowFlags flags=Qt::WindowFlags())
Creates a new page dialog.
Definition kpagedialog.cpp:17
void setPageWidget(KPageWidget *widget)
Set the page widget of the dialog.
Definition kpagedialog.cpp:150
@ Auto
Depending on the number of pages in the model, the Plain (one page), the List (several pages) or the ...
Definition kpageview.h:69
@ Plain
No navigation view will be visible and only the first page of the model will be shown.
Definition kpageview.h:74
KPageWidgetItem is used by KPageWidget and represents a page.
Definition kpagewidgetmodel.h:39
QDialog(QWidget *parent, Qt::WindowFlags f)
typedef StandardButtons
Q_OBJECTQ_OBJECT
Q_SIGNALSQ_SIGNALS
QObject * parent() const const
typedef WindowFlags
QWidget(QWidget *parent, Qt::WindowFlags f)
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Feb 7 2025 11:46:19 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Feb 7 2025 11:46:19 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.