diff options
| author | Tannin <devnull@localhost> | 2014-11-21 14:45:30 +0100 |
|---|---|---|
| committer | Tannin <devnull@localhost> | 2014-11-21 14:45:30 +0100 |
| commit | f2f9e11fdd876821107cff0c1c5b9d8ecf66691f (patch) | |
| tree | ac27533947a8f7a28545cf1f1901647242c03b53 /src/installationmanager.cpp | |
| parent | d23466f036618760de16ee874a3c076f05fe6087 (diff) | |
- started on a refactoring moving functionality out of the MainWindow class
- started on support for game-plugins
Diffstat (limited to 'src/installationmanager.cpp')
| -rw-r--r-- | src/installationmanager.cpp | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/src/installationmanager.cpp b/src/installationmanager.cpp index d6435e57..0fb1b78d 100644 --- a/src/installationmanager.cpp +++ b/src/installationmanager.cpp @@ -67,9 +67,8 @@ template <typename T> T resolveFunction(QLibrary &lib, const char *name) }
-InstallationManager::InstallationManager(QWidget *parent)
- : QObject(parent), m_ParentWidget(parent),
- m_InstallationProgress(parent), m_SupportedExtensions(boost::assign::list_of("zip")("rar")("7z")("fomod")("001"))
+InstallationManager::InstallationManager()
+ : m_InstallationProgress(nullptr), m_SupportedExtensions(boost::assign::list_of("zip")("rar")("7z")("fomod")("001"))
{
QLibrary archiveLib("dlls\\archive.dll");
if (!archiveLib.load()) {
@@ -92,6 +91,14 @@ InstallationManager::~InstallationManager() delete m_CurrentArchive;
}
+void InstallationManager::setParentWidget(QWidget *widget)
+{
+ m_InstallationProgress.setParent(widget);
+ for (IPluginInstaller *installer : m_Installers) {
+ installer->setParentWidget(widget);
+ }
+}
+
void InstallationManager::queryPassword(LPSTR password)
{
|
