7#include <QtQuickTemplates2/private/qquickdialogbuttonbox_p_p.h>
22 emit q->buttonClicked(standardButton, role);
32 qmlAttachedPropertiesObject<QQuickMessageDialogImpl>(
q));
34 qmlWarning(
q) <<
"Expected MessageDialogImpl attached object to be present on" <<
this;
70 return d->options ?
d->options->text() :
QString();
76 return d->options ?
d->options->informativeText() :
QString();
82 return d->options ?
d->options->detailedText() :
QString();
88 return d->m_showDetailedText;
94 d->m_showDetailedText = !
d->m_showDetailedText;
106 if (!qobject_cast<QQuickMessageDialogImpl *>(
parent)) {
107 qmlWarning(
this) <<
"MessageDialogImpl attached properties should only be "
108 <<
"accessed through the root MessageDialogImpl instance";
121 if (
d->buttonBox == buttons)
126 qobject_cast<QQuickMessageDialogImpl *>(
parent());
127 if (messageDialogImpl) {
138 d->buttonBox = buttons;
142 qobject_cast<QQuickMessageDialogImpl *>(
parent());
143 if (messageDialogImpl) {
160 return d->detailedTextButton;
169 if (
d->detailedTextButton) {
171 qobject_cast<QQuickMessageDialogImpl *>(
parent());
172 if (messageDialogImpl)
179 if (
d->detailedTextButton) {
181 qobject_cast<QQuickMessageDialogImpl *>(
parent());
182 if (messageDialogImpl)
192#include "moc_qquickmessagedialogimpl_p.cpp"
static QMetaObject::Connection connect(const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::FunctionPointer< Func2 >::Object *receiverPrivate, Func2 slot, Qt::ConnectionType type=Qt::AutoConnection)
static bool disconnect(const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::FunctionPointer< Func2 >::Object *receiverPrivate, Func2 slot)
QObject * parent() const
Returns a pointer to the parent object.
static QMetaObject::Connection connect(const QObject *sender, const char *signal, const QObject *receiver, const char *member, Qt::ConnectionType=Qt::AutoConnection)
\threadsafe
virtual void handleClick(QQuickAbstractButton *button)
static QQuickDialogPrivate * get(QQuickDialog *dialog)
virtual void handleAccept()
static QPlatformDialogHelper::ButtonRole buttonRole(QQuickAbstractButton *button)
Popup dialog with standard buttons and a title, used for short-term interaction with the user.
virtual void handleReject()
void detailedTextButtonChanged()
QQuickButton * detailedTextButton
void setButtonBox(QQuickDialogButtonBox *buttons)
QQuickDialogButtonBox * buttonBox
QQuickMessageDialogImplAttached(QObject *parent=nullptr)
void setDetailedTextButton(QQuickButton *detailedTextButton)
QQuickMessageDialogImplAttached * attachedOrWarn()
void handleClick(QQuickAbstractButton *button) override
QQuickMessageDialogImplPrivate()
void setOptions(const QSharedPointer< QMessageDialogOptions > &options)
static QQuickMessageDialogImplAttached * qmlAttachedProperties(QObject *object)
QQuickMessageDialogImpl(QObject *parent=nullptr)
void toggleShowDetailedText()
QSharedPointer< QMessageDialogOptions > options() const
void showDetailedTextChanged()
\macro QT_RESTRICTED_CAST_FROM_ASCII
Combined button and popup list for selecting options.
GLdouble GLdouble GLdouble GLdouble q
Q_QML_EXPORT QQmlInfo qmlWarning(const QObject *me)
myObject disconnect()
[26]
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent