KWidgetsAddons
kassistantdialog.cpp
98 const QString iconBack = QApplication::isRightToLeft() ? QStringLiteral("go-next") : QStringLiteral("go-previous");
99 const QString iconNext = QApplication::isRightToLeft() ? QStringLiteral("go-previous") : QStringLiteral("go-next");
184 d->slotUpdateButtons(); // called because last time that function was called is when the first page was added, so the next button show "finish"
This class provides a framework for assistant dialogs.
Definition kassistantdialog.h:39
KAssistantDialog(QWidget *parent=nullptr, Qt::WindowFlags flags=Qt::WindowFlags())
Construct a new assistant dialog with parent as parent.
Definition kassistantdialog.cpp:66
bool isValid(KPageWidgetItem *page) const
return if a page is valid
Definition kassistantdialog.cpp:157
virtual void next()
Called when the user clicks the Next/Finish button.
Definition kassistantdialog.cpp:135
bool isAppropriate(KPageWidgetItem *page) const
Check if a page is appropriate for use in the assistant dialog.
Definition kassistantdialog.cpp:196
void setAppropriate(KPageWidgetItem *page, bool appropriate)
Specify whether a page is appropriate.
Definition kassistantdialog.cpp:188
void setValid(KPageWidgetItem *page, bool enable)
Specify if the content of the page is valid, and if the next button may be enabled on this page.
Definition kassistantdialog.cpp:147
void currentPageChanged(KPageWidgetItem *current, KPageWidgetItem *before)
This signal is emitted whenever the current page has changed.
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
KPageWidgetItem is used by KPageWidget and represents a page.
Definition kpagewidgetmodel.h:39
This page model is used by KPageWidget to provide a hierarchical layout of pages.
Definition kpagewidgetmodel.h:219
KPageWidgetItem * item(const QModelIndex &index) const
Returns the KPageWidgetItem for a given index or a null pointer if the index is invalid.
Definition kpagewidgetmodel.cpp:570
void clicked(bool checked)
void setIcon(const QIcon &icon)
void setText(const QString &text)
virtual void accept()
virtual void showEvent(QShowEvent *event) override
ActionRole
Cancel
QPushButton * addButton(StandardButton button)
void setStandardButtons(StandardButtons buttons)
bool isRightToLeft()
T value(const Key &key) const const
QIcon fromTheme(const QString &name)
bool isValid() const const
QModelIndex parent() const const
int row() const const
QModelIndex sibling(int row, int column) const const
QMetaObject::Connection connect(const QObject *sender, PointerToMemberFunction signal, Functor functor)
T findChild(const QString &name, Qt::FindChildOptions options) const const
void setDefault(bool)
typedef WindowFlags
void setEnabled(bool)
virtual bool event(QEvent *event) override
void setToolTip(const QString &)
Q_D(Todo)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 16:59:27 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 16:59:27 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.