Refactoring
This commit is contained in:
Executable
+38
@@ -0,0 +1,38 @@
|
||||
#ifndef PROGRESS_WIDGET_H_
|
||||
#define PROGRESS_WIDGET_H_
|
||||
|
||||
#include <QWidget>
|
||||
|
||||
namespace Ui {
|
||||
class ProgressWidget;
|
||||
}
|
||||
|
||||
class ProgressWidget : public QWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit ProgressWidget(QWidget *parent);
|
||||
~ProgressWidget();
|
||||
void lock(bool lock);
|
||||
void addText(const QString &text);
|
||||
void setInfo(const QString &text);
|
||||
void setMaximum(int value);
|
||||
void setValue(int value);
|
||||
void setProgressColor(const QColor &color);
|
||||
void addSeparator();
|
||||
void forceOpen();
|
||||
|
||||
signals:
|
||||
void detailsToggled();
|
||||
void locked(bool);
|
||||
|
||||
protected slots:
|
||||
void on_checkBox_toggled(bool checked);
|
||||
void shrink();
|
||||
|
||||
private:
|
||||
Ui::ProgressWidget *ui;
|
||||
};
|
||||
|
||||
#endif // PROGRESS_WIDGET_H_
|
||||
Reference in New Issue
Block a user