diff options
author | kh1 <qt-info@nokia.com> | 2011-04-14 16:54:11 +0200 |
---|---|---|
committer | kh1 <qt-info@nokia.com> | 2011-04-14 16:54:11 +0200 |
commit | 05987dfb66454782dad92971a4f7a2e836f9247c (patch) | |
tree | bb287cf793b057edb4a5e72a2e99c2eaa2b2540c /installerbuilder/installerbase/tabcontroller.cpp | |
parent | a5c5bf464b427a74cde41ef653c12bb099a24aa2 (diff) |
Reomove some superflous slots.
Diffstat (limited to 'installerbuilder/installerbase/tabcontroller.cpp')
-rw-r--r-- | installerbuilder/installerbase/tabcontroller.cpp | 45 |
1 files changed, 3 insertions, 42 deletions
diff --git a/installerbuilder/installerbase/tabcontroller.cpp b/installerbuilder/installerbase/tabcontroller.cpp index 1b145dfdb..fc1f265aa 100644 --- a/installerbuilder/installerbase/tabcontroller.cpp +++ b/installerbuilder/installerbase/tabcontroller.cpp @@ -139,8 +139,8 @@ int TabController::init() } if (!d->m_installer->isInstaller()) { - connect(d->m_gui, SIGNAL(accepted()), this, SLOT(accepted())); - connect(d->m_gui, SIGNAL(rejected()), this, SLOT(rejected())); + connect(d->m_gui, SIGNAL(accepted()), this, SLOT(finished()), Qt::QueuedConnection); + connect(d->m_gui, SIGNAL(rejected()), this, SLOT(finished()), Qt::QueuedConnection); d->m_gui->setWindowTitle(d->m_installer->value(QLatin1String("MaintenanceTitle"))); } @@ -150,12 +150,6 @@ int TabController::init() connect(introPage, SIGNAL(initPackageManager()), this, SLOT(initPackageManager())); } - //if (!d->m_installer->isInstaller() && !d->m_init) { - //connect(d->m_updater.data(), SIGNAL(updateFinished(bool)), this, SLOT(updaterFinished(bool))); - //connect(w, SIGNAL(rejected()), this, SLOT(updaterFinishedWithError())); - //connect(w, SIGNAL(finished(int)), this, SLOT(updaterFinished(int))); - //} - d->m_updaterInitialized = false; d->m_packageManagerInitialized = false; @@ -266,12 +260,7 @@ int TabController::initPackageManager() // -- private slots -void TabController::accepted() -{ - d->m_installer->writeUninstaller(); -} - -void TabController::rejected() +void TabController::finished() { d->m_installer->writeUninstaller(); } @@ -283,31 +272,3 @@ void TabController::restartWizard() // restart and switch back to intro page QTimer::singleShot(0, this, SLOT(init())); } - -void TabController::updaterFinishedWithError() -{ - d->m_installer->writeUninstaller(); - - if (!d->m_installer->isInstaller() && !d->m_gui.isNull()) - d->m_gui->rejectWithoutPrompt(); - - rejected(); -} - -void TabController::updaterFinished(bool error) -{ - if (d->m_installer->needsRestart()) - updaterFinishedWithError(); - //else if (!error) - // checkRepositories(); -} - -void TabController::updaterFinished(int val) -{ - if (val != QDialog::Accepted) { - if (!d->m_installer->isInstaller() && !d->m_gui.isNull()) - d->m_gui->rejectWithoutPrompt(); - accepted(); - } -} - |