|
@@ -21,6 +21,11 @@
|
|
|
#include <QToolButton>
|
|
#include <QToolButton>
|
|
|
#include <QUrl>
|
|
#include <QUrl>
|
|
|
|
|
|
|
|
|
|
+#ifdef QT_WINEXTRAS
|
|
|
|
|
+# include <QWinTaskbarButton>
|
|
|
|
|
+# include <QWinTaskbarProgress>
|
|
|
|
|
+#endif
|
|
|
|
|
+
|
|
|
#include "AddCacheEntry.h"
|
|
#include "AddCacheEntry.h"
|
|
|
#include "FirstConfigure.h"
|
|
#include "FirstConfigure.h"
|
|
|
#include "QCMake.h"
|
|
#include "QCMake.h"
|
|
@@ -294,6 +299,12 @@ void CMakeSetupDialog::initialize()
|
|
|
} else {
|
|
} else {
|
|
|
this->onBinaryDirectoryChanged(this->BinaryDirectory->lineEdit()->text());
|
|
this->onBinaryDirectoryChanged(this->BinaryDirectory->lineEdit()->text());
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+#ifdef QT_WINEXTRAS
|
|
|
|
|
+ this->TaskbarButton = new QWinTaskbarButton(this);
|
|
|
|
|
+ this->TaskbarButton->setWindow(this->windowHandle());
|
|
|
|
|
+ this->TaskbarButton->setOverlayIcon(QIcon(":/loading.png"));
|
|
|
|
|
+#endif
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
CMakeSetupDialog::~CMakeSetupDialog()
|
|
CMakeSetupDialog::~CMakeSetupDialog()
|
|
@@ -381,6 +392,10 @@ void CMakeSetupDialog::doConfigure()
|
|
|
this->CacheValues->scrollToTop();
|
|
this->CacheValues->scrollToTop();
|
|
|
}
|
|
}
|
|
|
this->ProgressBar->reset();
|
|
this->ProgressBar->reset();
|
|
|
|
|
+
|
|
|
|
|
+#ifdef QT_WINEXTRAS
|
|
|
|
|
+ this->TaskbarButton->progress()->reset();
|
|
|
|
|
+#endif
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
bool CMakeSetupDialog::doConfigureInternal()
|
|
bool CMakeSetupDialog::doConfigureInternal()
|
|
@@ -495,6 +510,9 @@ void CMakeSetupDialog::doGenerate()
|
|
|
|
|
|
|
|
this->enterState(ReadyConfigure);
|
|
this->enterState(ReadyConfigure);
|
|
|
this->ProgressBar->reset();
|
|
this->ProgressBar->reset();
|
|
|
|
|
+#ifdef QT_WINEXTRAS
|
|
|
|
|
+ this->TaskbarButton->progress()->reset();
|
|
|
|
|
+#endif
|
|
|
|
|
|
|
|
this->ConfigureNeeded = true;
|
|
this->ConfigureNeeded = true;
|
|
|
}
|
|
}
|
|
@@ -674,6 +692,12 @@ void CMakeSetupDialog::showProgress(const QString& /*msg*/, float percent)
|
|
|
{
|
|
{
|
|
|
percent = (percent * ProgressFactor) + ProgressOffset;
|
|
percent = (percent * ProgressFactor) + ProgressOffset;
|
|
|
this->ProgressBar->setValue(qRound(percent * 100));
|
|
this->ProgressBar->setValue(qRound(percent * 100));
|
|
|
|
|
+
|
|
|
|
|
+#ifdef QT_WINEXTRAS
|
|
|
|
|
+ QWinTaskbarProgress* progress = this->TaskbarButton->progress();
|
|
|
|
|
+ progress->setVisible(true);
|
|
|
|
|
+ progress->setValue(qRound(percent * 100));
|
|
|
|
|
+#endif
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
void CMakeSetupDialog::error(const QString& msg)
|
|
void CMakeSetupDialog::error(const QString& msg)
|