KUtils
kcmultidialog.cpp
Go to the documentation of this file.
83 void KCMultiDialogPrivate::_k_slotCurrentPageChanged( KPageWidgetItem *current, KPageWidgetItem *previous )
127 q->disconnect(q->button(KDialog::Apply), SIGNAL(authorized(KAuth::Action*)), q, SLOT(slotApplyClicked()));
133 q->disconnect(q->button(KDialog::Ok), SIGNAL(authorized(KAuth::Action*)), q, SLOT(slotOkClicked()));
140 q->connect(q->button(KDialog::Apply), SIGNAL(authorized(KAuth::Action*)), SLOT(slotApplyClicked()));
209 q->setButtons(KDialog::Help | KDialog::Default |KDialog::Cancel | KDialog::Apply | KDialog::Ok | KDialog::Reset);
239 KCMultiDialog::KCMultiDialog(KCMultiDialogPrivate &dd, KPageWidget *pageWidget, QWidget *parent, Qt::WindowFlags flags)
354 if ( docUrl.protocol() == "help" || docUrl.protocol() == "man" || docUrl.protocol() == "info" ) {
391 item->setHeader( "<b>"+moduleInfo.comment() + "</b><br><i>" + kcm->rootOnlyMessage() + "</i>" );
443 connect(kcm->realModule(), SIGNAL(rootOnlyMessageChanged(bool,QString)), this, SLOT(_k_updateHeader(bool,QString)));
KGuiItem cancel()
QString i18n(const char *text)
bool noDisplay() const
void _k_slotCurrentPageChanged(KPageWidgetItem *current, KPageWidgetItem *previous)
Definition: kcmultidialog.cpp:83
KGuiItem discard()
QStringList componentNames
Definition: kcmultidialog_p.h:46
KPageWidgetItem * addModule(const QString &module, const QStringList &args=QStringList())
Add a module.
Definition: kcmultidialog.cpp:362
bool startDetached(const QString &program, const QStringList &arguments, const QString &workingDirectory, qint64 *pid)
QVariant property(const QString &_name, QVariant::Type t) const
bool contains(const QString &str, Qt::CaseSensitivity cs) const
virtual QModelIndex index(int row, int column, const QModelIndex &parent=QModelIndex()) const
virtual int rowCount(const QModelIndex &parent=QModelIndex()) const
static QDebug kDebug(bool cond, int area=KDE_DEFAULT_DEBUG_AREA)
void _k_updateHeader(bool use, const QString &message)
Definition: kcmultidialog.cpp:175
void setIcon(const KIcon &icon)
static int warningYesNoCancel(QWidget *parent, const QString &text, const QString &caption=QString(), const KGuiItem &buttonYes=KStandardGuiItem::yes(), const KGuiItem &buttonNo=KStandardGuiItem::no(), const KGuiItem &buttonCancel=KStandardGuiItem::cancel(), const QString &dontAskAgainName=QString(), Options options=Notify)
bool needsAuthorization() const
int count(const T &value) const
void append(const T &value)
QVariant property(const char *name) const
int toInt(bool *ok) const
void slotApplyClicked()
This slot is called when the user presses the "Apply" Button.
Definition: kcmultidialog.cpp:322
void load()
Calling it will cause the contained module to run its load() routine.
Definition: kcmoduleproxy.cpp:265
QString protocol() const
bool endsWith(const QString &s, Qt::CaseSensitivity cs) const
void setButtons(ButtonCodes buttonMask)
Reimplemented for internal reasons.
Definition: kcmultidialog.cpp:475
Definition: kcmultidialog_p.h:31
virtual void accept()
KGuiItem apply()
void slotDefaultClicked()
This slot is called when the user presses the "Default" Button.
Definition: kcmultidialog.cpp:249
QWidget * widget() const
KPageWidgetItem * item(const QModelIndex &index) const
QModelIndex child(int row, int column) const
QByteArray toLatin1() const
QStringList toStringList() const
void slotUser1Clicked()
This slot is called when the user presses the "Reset" Button.
Definition: kcmultidialog.cpp:265
void slotOkClicked()
This slot is called when the user presses the "OK" Button.
Definition: kcmultidialog.cpp:330
QString name
void setHeader(const QString &header)
virtual void _k_clientChanged()
Definition: kcmultidialog.cpp:108
typedef WindowFlags
bool setProperty(const char *name, const QVariant &value)
QString url(AdjustPathOption trailing=LeaveTrailingSlash) const
void setParentWidget(QWidget *parent)
void slotHelpClicked()
This slot is called when the user presses the "Help" Button.
Definition: kcmultidialog.cpp:338
A class that offers a KPageDialog containing arbitrary KControl Modules.
Definition: kcmultidialog.h:37
void save()
Calling it will cause the contained module to run its save() routine.
Definition: kcmoduleproxy.cpp:275
static void invokeBrowser(const QString &url, const QByteArray &startup_id=QByteArray())
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
KAuth::Action * authAction() const
static Ptr serviceByStorageId(const QString &_storageId)
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:25:27 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:25:27 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.