KDEUI
kprogressdialog.cpp
Go to the documentation of this file.
220 (mProgressBar->minimum() == mProgressBar->maximum())) // progress dialogs with busy indicators (see #178648)
QLayout * layout() const
void setMinimumDuration(int ms)
Set the minimum number of milliseconds to wait before actually showing the dialog.
Definition: kprogressdialog.cpp:134
void setButtonGuiItem(ButtonCode id, const KGuiItem &item)
Sets the KGuiItem directly for the button instead of using 3 methods to set the text, tooltip and whatsthis strings.
Definition: kdialog.cpp:699
QString buttonText() const
Returns the text on the cancel button.
Definition: kprogressdialog.cpp:212
QProgressBar * progressBar()
Returns the QProgressBar used in this dialog.
Definition: kprogressdialog.cpp:161
virtual void reject()
void ignoreCancel()
Ignores the last cancel action if the cancel button was pressed.
Definition: kprogressdialog.cpp:129
int timeout
KProgressDialog(QWidget *parent=0, const QString &caption=QString(), const QString &text=QString(), Qt::WindowFlags flags=0)
Constructs a KProgressDialog.
Definition: kprogressdialog.cpp:62
Show Cancel-button. (this button reject()s the dialog; result set to QDialog::Rejected) ...
Definition: kdialog.h:144
void setButtonText(const QString &text)
Sets the text to appear on the cancel button.
Definition: kprogressdialog.cpp:206
bool autoClose() const
Returns true if the dialog will close upon completion, or false otherwise.
Definition: kprogressdialog.cpp:186
virtual void setCaption(const QString &caption)
Make a KDE compliant caption.
Definition: kdialog.cpp:469
bool autoReset() const
Returns true if the QProgressBar widget will be reset upon completion, or false otherwise.
Definition: kprogressdialog.cpp:196
bool wasCancelled() const
Returns true if the dialog was closed or canceled before completion.
Definition: kprogressdialog.cpp:124
void addWidget(QWidget *widget, int stretch, QFlags< Qt::AlignmentFlag > alignment)
bool allowCancel() const
Returns true if the dialog can be canceled, false otherwise.
Definition: kprogressdialog.cpp:156
void showCancelButton(bool show)
Sets whether the cancel button is visible.
Definition: kprogressdialog.cpp:181
void setAutoReset(bool autoReset)
Sets whether the dialog should reset the QProgressBar dialog back to 0 steps compelete when all steps...
Definition: kprogressdialog.cpp:201
virtual void showEvent(QShowEvent *event)
Definition: kprogressdialog.cpp:108
void setButtons(ButtonCodes buttonMask)
Creates (or recreates) the button box and all the buttons in it.
Definition: kdialog.cpp:206
void setMargin(int margin)
Definition: kstandardguiitem.h:50
void showButton(ButtonCode id, bool state)
Hide or display a general action button.
Definition: kdialog.cpp:692
int minimumDuration() const
Returns the time that must pass before the dialog appears.
Definition: kprogressdialog.cpp:145
void setAllowCancel(bool allowCancel)
Sets whether or not the user can cancel the process.
Definition: kprogressdialog.cpp:150
QWidget(QWidget *parent, QFlags< Qt::WindowType > f)
virtual void showEvent(QShowEvent *event)
void setLabelText(const QString &text)
Sets the text in the dialog.
Definition: kprogressdialog.cpp:171
typedef WindowFlags
void setAutoClose(bool close)
Sets whether the dialog should close automagically when all the steps in the QProgressBar have been c...
Definition: kprogressdialog.cpp:191
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
friend class KProgressDialogPrivate
Definition: kprogressdialog.h:204
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:24:00 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:24:00 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.