KWidgetsAddons
kmessagedialog.cpp
33static const Qt::TextInteractionFlags s_textFlags = Qt::TextSelectableByMouse | Qt::LinksAccessibleByMouse | Qt::LinksAccessibleByKeyboard;
283 const int size = widgetStyle->pixelMetric(QStyle::PM_MessageBoxIconSize, &option, d->m_mainWidget);
337void KMessageDialog::setButtons(const KGuiItem &primaryAction, const KGuiItem &secondaryAction, const KGuiItem &cancelAction)
349 d->m_buttonBox->setStandardButtons(QDialogButtonBox::Yes | QDialogButtonBox::No | QDialogButtonBox::Cancel);
368 d->m_buttonBox->setStandardButtons(QDialogButtonBox::Yes | QDialogButtonBox::No | QDialogButtonBox::Cancel);
403 d->m_buttonBoxConnection = connect(d->m_buttonBox, &QDialogButtonBox::clicked, this, [this](QAbstractButton *button) {
A groupbox featuring a clickable header and arrow indicator that can be expanded and collapsed to rev...
Definition kcollapsiblegroupbox.h:26
An abstract class for setting the text, icon, tooltip and WhatsThis data on a GUI item (e....
Definition kguiitem.h:34
static void assign(QPushButton *button, const KGuiItem &item)
A static method that can be used to set the text, icon, tooltip and WhatThis properties from item on ...
Definition kguiitem.cpp:172
KMessageDialog creates a message box similar to the ones you get from KMessageBox,...
Definition kmessagedialog.h:107
bool isDontAskAgainChecked() const
This can be used to query the status of the "Do not ask again" checkbox; returns true if the box is c...
Definition kmessagedialog.cpp:436
void setListWidgetItems(const QStringList &strlist)
This will add a QListWidget to the dialog and populate it with strlist.
Definition kmessagedialog.cpp:287
static void beep(KMessageDialog::Type type, const QString &text=QString(), QWidget *dialog=nullptr)
Manually play the notification sound.
Definition kmessagedialog.cpp:474
void setNotifyEnabled(bool enable)
Whether to emit a KNotification when the dialog is shown.
Definition kmessagedialog.cpp:460
void setIcon(const QIcon &icon)
This can be used to set an icon that will be shown next to the main text message.
Definition kmessagedialog.cpp:246
void setButtons(const KGuiItem &primaryAction=KGuiItem(), const KGuiItem &secondaryAction=KGuiItem(), const KGuiItem &cancelAction=KGuiItem())
Sets the buttons in the buttom box.
Definition kmessagedialog.cpp:337
void setDontAskAgainChecked(bool isChecked)
This can be used to set the initial status of the "Do not ask again" checkbox, checked or unchecked,...
Definition kmessagedialog.cpp:424
void setDontAskAgainText(const QString &dontAskAgainText)
This will add a "Do not ask again" checkbox to the dialog with the text from dontAskAgainText.
Definition kmessagedialog.cpp:418
void setOpenExternalLinks(bool isAllowed)
Sets the text labels in the dialog to either allow opening external links or not.
Definition kmessagedialog.cpp:448
@ WarningTwoActionsCancel
Warning dialog with two buttons and Cancel;.
Definition kmessagedialog.h:126
@ QuestionTwoActionsCancel
Question dialog with two buttons and Cancel;.
Definition kmessagedialog.h:124
void setCaption(const QString &caption)
This can be used to set the title of the dialog window.
Definition kmessagedialog.cpp:214
void setDetails(const QString &details)
This will add a KCollapsibleGroupBox with a title "Details", as the class name implies it is collapsi...
Definition kmessagedialog.cpp:318
bool isNotifyEnabled() const
Whether a KNotification is emitted when the dialog is shown.
Definition kmessagedialog.cpp:455
KMessageDialog(KMessageDialog::Type type, const QString &text, QWidget *parent=nullptr)
Constructs a KMessageDialog.
Definition kmessagedialog.cpp:64
A replacement for QLabel that squeezes its text into the label.
Definition ksqueezedtextlabel.h:54
VehicleSection::Type type(QStringView coachNumber, QStringView coachClassification)
NoSelection
void addLayout(QLayout *layout, int stretch)
void addWidget(QWidget *widget, int stretch, Qt::Alignment alignment)
QString translate(const char *context, const char *sourceText, const char *disambiguation, int n)
virtual void done(int r)
void rejected()
virtual void showEvent(QShowEvent *event) override
void clicked(QAbstractButton *button)
QRect boundingRect(QChar ch) const const
NoFrame
void setFrameShape(Shape)
QPixmap pixmap(QWindow *window, const QSize &size, Mode mode, State state) const const
bool isNull() const const
SetFixedSize
bool isEmpty() const const
Q_OBJECTQ_OBJECT
QMetaObject::Connection connect(const QObject *sender, PointerToMemberFunction signal, Functor functor)
void deleteLater()
void destroyed(QObject *obj)
QObject * parent() const const
void removeEventFilter(QObject *obj)
int height() const const
int width() const const
geometry
void setWidget(QWidget *widget)
void setWidgetResizable(bool resizable)
Preferred
bool isEmpty() const const
qsizetype length() const const
PM_LayoutVerticalSpacing
SP_MessageBoxQuestion
virtual int pixelMetric(PixelMetric metric, const QStyleOption *option, const QWidget *widget) const const=0
virtual QIcon standardIcon(StandardPixmap standardIcon, const QStyleOption *option, const QWidget *widget) const const=0
void initFrom(const QWidget *widget)
typedef TextInteractionFlags
WA_NativeWindow
QWidget * topLevelWidget() const const
QWidget(QWidget *parent, Qt::WindowFlags f)
virtual bool event(QEvent *event) override
QWidget * find(WId id)
QScreen * screen() const const
void setAttribute(Qt::WidgetAttribute attribute, bool on)
void setParent(QWidget *parent)
size
QStyle * style() const const
QWindow * windowHandle() const const
void setWindowTitle(const QString &)
QWindow * fromWinId(WId id)
void setTransientParent(QWindow *parent)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Oct 4 2024 12:05:10 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Oct 4 2024 12:05:10 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.