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/selfupdater.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/selfupdater.cpp')
| -rw-r--r-- | src/selfupdater.cpp | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/selfupdater.cpp b/src/selfupdater.cpp index 6037422c..803b2cfa 100644 --- a/src/selfupdater.cpp +++ b/src/selfupdater.cpp @@ -55,9 +55,9 @@ template <typename T> T resolveFunction(QLibrary &lib, const char *name) }
-SelfUpdater::SelfUpdater(NexusInterface *nexusInterface, QWidget *parent)
- : QObject(parent), m_Parent(parent), m_Interface(nexusInterface), m_UpdateRequestID(-1),
- m_Reply(NULL), m_Progress(parent), m_Attempts(3)
+SelfUpdater::SelfUpdater(NexusInterface *nexusInterface)
+ : m_Parent(nullptr), m_Interface(nexusInterface), m_UpdateRequestID(-1),
+ m_Reply(NULL), m_Progress(nullptr), m_Attempts(3)
{
m_Progress.setMaximum(100);
@@ -88,6 +88,11 @@ SelfUpdater::~SelfUpdater() delete m_CurrentArchive;
}
+void SelfUpdater::setUserInterface(QWidget *widget)
+{
+ m_Progress.setParent(widget);
+ m_Parent = widget;
+}
void SelfUpdater::testForUpdate()
{
|
