30class QDialogButtonBox;
69 void SetTitle(
const QString &title, uint nStyle = 0);
72 void pageTitleChanged(
const QString &title);
73 void okButtonClicked();
74 void cancelButtonClicked();
75 void applyButtonClicked();
76 void helpButtonClicked();
77 bool changeIndex(
int newIndex);
80 QList<KPropertyPage *> propertyPages()
const;
81 QPushButton *applyButton()
const;
84 QTabWidget *m_tabWidget =
nullptr;
85 QDialogButtonBox *m_buttonBox =
nullptr;
86 int m_previousIndex = -1;
The KDialog class is used to replace MFC KDialog.
Definition kdialog.h:40
The KPropertyPage class is used as a page inside a KPropertySheet.
Definition kpropertypage.h:36
The KPropertySheet class is a dialog with a tab control that contains property pages.
Definition kpropertysheet.h:40
bool SetActivePage(int nPage)
Programmatically sets the active page at the given index.
void AddPage(KPropertyPage *pPage)
Adds a page to the property sheet.
void RemovePage(KPropertyPage *pPage)
Removes a page from the property sheet.
int GetPageCount() const
Retrieves the number of pages in the property sheet.
int GetPageIndex(KPropertyPage *pPage)
Retrieves the index of the specified page of the property sheet.
KPropertyPage * GetPage(int nPage) const
Retrieves a pointer to the specified page.
~KPropertySheet() override
void SetTitle(const QString &title, uint nStyle=0)
Sets the caption of the property sheet.
bool SetActivePage(KPropertyPage *pPage)
Programmatically sets the active page object.
KPropertyPage * GetActivePage() const
Returns the active page object.
KPropertySheet(QWidget *parent=nullptr)
int GetActiveIndex() const
void RemovePage(int nPage)
Removes the page at the given index from the property sheet.
#define KDWINUTILS_EXPORT
Definition kdwinutils_export.h:31
#define KDWINUTILS_BEGIN_NAMESPACE
Definition kdwinutils_global.h:27
#define KDWINUTILS_END_NAMESPACE
Definition kdwinutils_global.h:28