dialog, using JKQTEModernProgressWidget
More...
#include <jkqtemodernprogress.h>
dialog, using JKQTEModernProgressWidget
Use open() and hide() to show/hide the dialog and openDelayed() if you wsnt the dialog to appear a given time after you called the function.
The dialog is displayed at the screen center if setCentered() is set true
.
Usage example:
dialog.setWindowTitle(tr("Example of JKQTEModernProgressDialog"));
dialog.exec();
◆ JKQTEModernProgressDialog() [1/2]
JKQTEModernProgressDialog::JKQTEModernProgressDialog |
( |
QWidget * |
parent = NULL , |
|
|
Qt::WindowFlags |
f = 0 |
|
) |
| |
◆ JKQTEModernProgressDialog() [2/2]
JKQTEModernProgressDialog::JKQTEModernProgressDialog |
( |
const QString & |
labelText, |
|
|
const QString & |
cancelButtonText, |
|
|
QWidget * |
parent = NULL , |
|
|
Qt::WindowFlags |
f = Qt::Window|Qt::WindowTitleHint |
|
) |
| |
◆ ~JKQTEModernProgressDialog()
virtual JKQTEModernProgressDialog::~JKQTEModernProgressDialog |
( |
| ) |
|
|
virtual |
◆ addLongTextLine()
void JKQTEModernProgressDialog::addLongTextLine |
( |
const QString & |
t | ) |
|
add a line of text to the dialog
◆ cancelButton() [1/2]
QPushButton* JKQTEModernProgressDialog::cancelButton |
( |
| ) |
|
returns the cancel button widget
◆ cancelButton() [2/2]
const QPushButton* JKQTEModernProgressDialog::cancelButton |
( |
| ) |
const |
returns the cancel button widget
◆ cancelButtonText()
QString JKQTEModernProgressDialog::cancelButtonText |
( |
| ) |
const |
text on the "Cancel" button of the dialog
◆ cancelClicked
void JKQTEModernProgressDialog::cancelClicked |
( |
| ) |
|
|
protectedslot |
◆ canceled
void JKQTEModernProgressDialog::canceled |
( |
| ) |
|
|
signal |
emitted when the "Cancel" button is clicked
◆ closeEvent()
virtual void JKQTEModernProgressDialog::closeEvent |
( |
QCloseEvent * |
e | ) |
|
|
protectedvirtual |
◆ createWidgets()
void JKQTEModernProgressDialog::createWidgets |
( |
| ) |
|
|
protected |
◆ labelText()
QString JKQTEModernProgressDialog::labelText |
( |
| ) |
const |
text in the label of the dialog
◆ longTextWidth() [1/2]
QTextEdit* JKQTEModernProgressDialog::longTextWidth |
( |
| ) |
|
returns the long text lines widget
◆ longTextWidth() [2/2]
const QTextEdit* JKQTEModernProgressDialog::longTextWidth |
( |
| ) |
const |
returns the long text lines widget
◆ maximum()
double JKQTEModernProgressDialog::maximum |
( |
| ) |
const |
returns the current progress range maximum
◆ minimum()
double JKQTEModernProgressDialog::minimum |
( |
| ) |
const |
returns the current progress range minimum
◆ openDelayed()
void JKQTEModernProgressDialog::openDelayed |
( |
int |
minimumDuration = 2500 | ) |
|
display the progress dialog after a delay of minimumDuration milliseconds
If the dialog has beend closed before the delay runs out, it is never displayed.
◆ progressWidget() [1/2]
returns the progress widget
◆ progressWidget() [2/2]
returns the progress widget
◆ setCancelButtonText
void JKQTEModernProgressDialog::setCancelButtonText |
( |
const QString & |
t | ) |
|
|
slot |
text on the "Cancel" button of the dialog
◆ setHasCancel
void JKQTEModernProgressDialog::setHasCancel |
( |
bool |
has = true | ) |
|
|
slot |
indicate whetehr the dialog has a Cancel button (default: true
)
◆ setLabelText
void JKQTEModernProgressDialog::setLabelText |
( |
const QString & |
t | ) |
|
|
slot |
text in the label of the dialog
◆ setMaximum
void JKQTEModernProgressDialog::setMaximum |
( |
double |
max | ) |
|
|
slot |
◆ setMinimum
void JKQTEModernProgressDialog::setMinimum |
( |
double |
min | ) |
|
|
slot |
◆ setMode()
en-/disable spin and progress mode
set mode of the widget and en/-diable the spin
◆ setRange
void JKQTEModernProgressDialog::setRange |
( |
double |
min, |
|
|
double |
max |
|
) |
| |
|
slot |
◆ setValue
void JKQTEModernProgressDialog::setValue |
( |
double |
value | ) |
|
|
slot |
set the value in progress mode (activate calling setRange() or setProgress() )
◆ showEvent()
virtual void JKQTEModernProgressDialog::showEvent |
( |
QShowEvent * |
event | ) |
|
|
protectedvirtual |
◆ spin()
bool JKQTEModernProgressDialog::spin |
( |
| ) |
const |
returns whether the indicator spins
◆ textLabel() [1/2]
QLabel* JKQTEModernProgressDialog::textLabel |
( |
| ) |
|
returns the text label widget
◆ textLabel() [2/2]
const QLabel* JKQTEModernProgressDialog::textLabel |
( |
| ) |
const |
returns the text label widget
◆ value()
double JKQTEModernProgressDialog::value |
( |
| ) |
const |
returns the current progress value
◆ wasCanceled()
bool JKQTEModernProgressDialog::wasCanceled |
( |
| ) |
|
returns true
if the "Cancel" button has been clicked
◆ cancel
QPushButton* JKQTEModernProgressDialog::cancel |
|
private |
◆ label
QLabel* JKQTEModernProgressDialog::label |
|
private |
◆ longmessage
QTextEdit* JKQTEModernProgressDialog::longmessage |
|
private |
◆ m_closedBeforeDelay
bool JKQTEModernProgressDialog::m_closedBeforeDelay |
|
private |
◆ m_minimumDuration
int JKQTEModernProgressDialog::m_minimumDuration |
|
private |
◆ m_wasCancel
bool JKQTEModernProgressDialog::m_wasCancel |
|
private |
◆ progress
◆ timerDelay
QTimer JKQTEModernProgressDialog::timerDelay |
|
private |
The documentation for this class was generated from the following file: