10#define setWordCount(x) isVisible()
32 connect(findDialog, &FindDialog::findNext,
33 this, &EditorWindow::findNext);
46 dialog.setWordCount(document().wordCount());
54 "Unable to find the user preferences file.\n"
55 "The factory default will be used instead.");
61 tr(
"Overwrite File? -- Application Name"),
62 tr(
"A file called %1 already exists."
63 "Do you want to overwrite it?")
65 tr(
"&Yes"),
tr(
"&No"),
70 "Could not connect to the <mumble> server.\n"
71 "This program can't function correctly "
72 "without the server.\n\n",
84 "The document contains unsaved changes\n"
85 "Do you want to save the changes before exiting?",
86 "&Save",
"&Discard",
"Cancel",
101 "Could not save the user preferences,\n"
102 "because the disk is full. You can delete\n"
103 "some files and press Retry, or you can\n"
104 "abort the Save Preferences operation.",
117 QString(
"An internal error occurred. Please ") +
118 "call technical support at 1234-56789 and report\n"+
119 "these numbers:\n\n" + errorDetails +
120 "\n\nApplication will now exit.");
123 "<Application> is a <one-paragraph blurb>\n\n"
124 "Copyright 1991-2003 Such-and-such. "
125 "<License words here.>\n\n"
126 "For technical support, call 1234-56789 or see\n"
127 "http://www.such-and-such.com/Application/\n");
132 "Saving the file will overwrite the original file on the disk.\n"
133 "Do you really want to save?",
157 "Hardware failure.\n\nDisk error detected\nDo you want to stop?",
173 QProgressDialog progress(
"Copying files...",
"Abort Copy", 0, numFiles,
this);
176 for (
int i = 0;
i < numFiles;
i++) {
232 using ExtendedControls =
QWidget;
Operation(QObject *parent)
[4]
void perform()
[4] //! [5]
void addWidget(QWidget *, int stretch=0, Qt::Alignment alignment=Qt::Alignment())
Adds widget to the end of this box layout, with a stretch factor of stretch and alignment alignment.
static QString translate(const char *context, const char *key, const char *disambiguation=nullptr, int n=-1)
\threadsafe
The QDialog class is the base class of dialog windows.
virtual int exec()
Shows the dialog as a \l{QDialog::Modal Dialogs}{modal dialog}, blocking until the user closes it.
bool exists() const
This is an overloaded member function, provided for convenience. It differs from the above function o...
The QMainWindow class provides a main application window.
The QMessageBox class provides a modal dialog for informing the user or for asking the user a questio...
static StandardButton warning(QWidget *parent, const QString &title, const QString &text, StandardButtons buttons=Ok, StandardButton defaultButton=NoButton)
static StandardButton information(QWidget *parent, const QString &title, const QString &text, StandardButtons buttons=Ok, StandardButton defaultButton=NoButton)
static StandardButton critical(QWidget *parent, const QString &title, const QString &text, StandardButtons buttons=Ok, StandardButton defaultButton=NoButton)
static void about(QWidget *parent, const QString &title, const QString &text)
Displays a simple about box with title title and text text.
static StandardButton question(QWidget *parent, const QString &title, const QString &text, StandardButtons buttons=StandardButtons(Yes|No), StandardButton defaultButton=NoButton)
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
The QProgressDialog class provides feedback on the progress of a slow operation.
void canceled()
This signal is emitted when the cancel button is clicked.
void setValue(int progress)
bool wasCanceled
whether the dialog was canceled
int maximum
the highest value represented by the progress bar
\macro QT_RESTRICTED_CAST_FROM_ASCII
void timeout(QPrivateSignal)
This signal is emitted when the timer times out.
The QVBoxLayout class lines up widgets vertically.
connect(quitButton, &QPushButton::clicked, &app, &QCoreApplication::quit, Qt::QueuedConnection)
QFileDialog dialog(this)
[1]
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent