mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
DownloadFromDCWidget class cleanup
Remove static DownloadFromDCWidget::instance() method Signed-off-by: Boris Barbulovski <bbarbulovski@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
02e9a6d07b
commit
449c6fc6f2
3 changed files with 3 additions and 17 deletions
|
@ -36,13 +36,6 @@ namespace DownloadFromDcGlobal {
|
|||
const char *err_string;
|
||||
};
|
||||
|
||||
DownloadFromDCWidget *DownloadFromDCWidget::instance()
|
||||
{
|
||||
static DownloadFromDCWidget *dialog = new DownloadFromDCWidget(mainWindow());
|
||||
dialog->setAttribute(Qt::WA_QuitOnClose, false);
|
||||
return dialog;
|
||||
}
|
||||
|
||||
DownloadFromDCWidget::DownloadFromDCWidget(QWidget* parent, Qt::WindowFlags f) :
|
||||
QDialog(parent, f), thread(0), timer(new QTimer(this)),
|
||||
dumpWarningShown(false), currentState(INITIAL)
|
||||
|
@ -79,12 +72,6 @@ DownloadFromDCWidget::DownloadFromDCWidget(QWidget* parent, Qt::WindowFlags f) :
|
|||
updateState(INITIAL);
|
||||
}
|
||||
|
||||
void DownloadFromDCWidget::runDialog()
|
||||
{
|
||||
updateState(INITIAL);
|
||||
exec();
|
||||
}
|
||||
|
||||
void DownloadFromDCWidget::updateProgressBar()
|
||||
{
|
||||
if (*progress_bar_text != '\0') {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue