mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-21 00:30:53 +01:00
Mod doc set style de same
This commit is contained in:
@@ -23,9 +23,9 @@
|
||||
|
||||
DialogWaiting *DialogWaiting::m_static_dialog = nullptr;
|
||||
/**
|
||||
* @brief DialogWaiting::DialogWaiting
|
||||
* @param parent
|
||||
*/
|
||||
@brief DialogWaiting::DialogWaiting
|
||||
@param parent
|
||||
*/
|
||||
DialogWaiting::DialogWaiting(QWidget *parent) :
|
||||
QDialog(parent),
|
||||
ui(new Ui::DialogWaiting)
|
||||
@@ -36,58 +36,58 @@ DialogWaiting::DialogWaiting(QWidget *parent) :
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief DialogWaiting::~DialogWaiting
|
||||
*/
|
||||
@brief DialogWaiting::~DialogWaiting
|
||||
*/
|
||||
DialogWaiting::~DialogWaiting() {
|
||||
delete ui;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief DialogWaiting::setProgressBar
|
||||
* @param val is the progressBar value
|
||||
*/
|
||||
@brief DialogWaiting::setProgressBar
|
||||
@param val is the progressBar value
|
||||
*/
|
||||
void DialogWaiting::setProgressBar(int val){
|
||||
ui->progressBar->setValue(val);
|
||||
qApp->processEvents();
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief DialogWaiting::setProgressReset, clear progressBar and reset
|
||||
*/
|
||||
@brief DialogWaiting::setProgressReset, clear progressBar and reset
|
||||
*/
|
||||
void DialogWaiting::setProgressReset(){
|
||||
ui->progressBar->reset();
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief DialogWaiting::setProgressBarRange
|
||||
* @param min is the minimum of progressBar
|
||||
* @param max is the maximun of progressBar
|
||||
*/
|
||||
@brief DialogWaiting::setProgressBarRange
|
||||
@param min is the minimum of progressBar
|
||||
@param max is the maximun of progressBar
|
||||
*/
|
||||
void DialogWaiting::setProgressBarRange(int min, int max){
|
||||
ui->progressBar->setRange(min,max);
|
||||
ui->progressBar->setFormat(QObject::tr("%p% effectué (%v sur %m)"));
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief DialogWaiting::setTitle of action
|
||||
* @param val is the string of action
|
||||
*/
|
||||
@brief DialogWaiting::setTitle of action
|
||||
@param val is the string of action
|
||||
*/
|
||||
void DialogWaiting::setTitle(const QString& val){
|
||||
ui->labelTitle->setText(val);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief DialogWaiting::setDetail of action
|
||||
* @param val is the string of detail action
|
||||
*/
|
||||
@brief DialogWaiting::setDetail of action
|
||||
@param val is the string of detail action
|
||||
*/
|
||||
void DialogWaiting::setDetail(const QString& val){
|
||||
ui->label_detail->setText(val);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief DialogWaiting::progressBarValue
|
||||
* @return The current vcalue of the progress bar
|
||||
*/
|
||||
@brief DialogWaiting::progressBarValue
|
||||
@return The current vcalue of the progress bar
|
||||
*/
|
||||
int DialogWaiting::progressBarValue() const
|
||||
{
|
||||
return ui->progressBar->value();
|
||||
|
||||
Reference in New Issue
Block a user