summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkh1 <karsten.heimrich@nokia.com>2011-11-25 14:15:54 +0100
committerKarsten Heimrich <karsten.heimrich@nokia.com>2011-11-28 12:20:04 +0100
commit90d5e18b9b62b9b3be063967555e3cd45df792dc (patch)
treec811d5c71bdefe53d3f7f59ad7ed15d5f14f50ad
parent6ab43ba4720b5295af5d902eb7eb116c8c0e06be (diff)
Rename function and call it earlier in the chain.
Change-Id: Iebbbe1163939777c7a97f45f2926cd102fb2c845 Reviewed-by: Niels Weber <niels.2.weber@nokia.com> Reviewed-by: Tim Jenssen <tim.jenssen@nokia.com>
-rw-r--r--installerbuilder/installerbase/installerbasecommons.cpp10
-rw-r--r--installerbuilder/installerbase/installerbasecommons.h2
-rw-r--r--installerbuilder/installerbase/tabcontroller.cpp15
3 files changed, 14 insertions, 13 deletions
diff --git a/installerbuilder/installerbase/installerbasecommons.cpp b/installerbuilder/installerbase/installerbasecommons.cpp
index b483f4adb..726c632ee 100644
--- a/installerbuilder/installerbase/installerbasecommons.cpp
+++ b/installerbuilder/installerbase/installerbasecommons.cpp
@@ -139,6 +139,11 @@ void IntroductionPageImpl::setMaintenanceToolsEnabled(bool enable)
m_removeAllComponents->setEnabled(enable);
}
+void IntroductionPageImpl::setMessage(const QString &msg)
+{
+ m_label->setText(msg);
+}
+
void IntroductionPageImpl::setErrorMessage(const QString &error)
{
QPalette palette;
@@ -153,11 +158,6 @@ void IntroductionPageImpl::setErrorMessage(const QString &error)
m_errorLabel->setPalette(palette);
}
-void IntroductionPageImpl::message(const QString &msg)
-{
- m_label->setText(msg);
-}
-
void IntroductionPageImpl::setUpdater(bool value)
{
if (value) {
diff --git a/installerbuilder/installerbase/installerbasecommons.h b/installerbuilder/installerbase/installerbasecommons.h
index 6fdf73f3a..07b2431e9 100644
--- a/installerbuilder/installerbase/installerbasecommons.h
+++ b/installerbuilder/installerbase/installerbasecommons.h
@@ -53,7 +53,7 @@ public:
void setMaintenanceToolsEnabled(bool enable);
public Q_SLOTS:
- void message(const QString &msg);
+ void setMessage(const QString &msg);
void setErrorMessage(const QString &error);
Q_SIGNALS:
diff --git a/installerbuilder/installerbase/tabcontroller.cpp b/installerbuilder/installerbase/tabcontroller.cpp
index 58f0622b0..82bc3113f 100644
--- a/installerbuilder/installerbase/tabcontroller.cpp
+++ b/installerbuilder/installerbase/tabcontroller.cpp
@@ -155,15 +155,15 @@ int TabController::initUpdater()
{
IntroductionPageImpl *introPage = introductionPage();
+ introPage->setMessage(QString());
+ introPage->setErrorMessage(QString());
introPage->showAll();
introPage->setComplete(false);
- introPage->message(QLatin1String(""));
introPage->setMaintenanceToolsEnabled(false);
- introPage->setErrorMessage(QLatin1String(""));
if (!d->m_introPageConnected) {
d->m_introPageConnected = true;
- connect(d->m_core, SIGNAL(metaJobInfoMessage(QString)), introPage, SLOT(message(QString)));
+ connect(d->m_core, SIGNAL(metaJobInfoMessage(QString)), introPage, SLOT(setMessage(QString)));
}
d->m_gui->setWindowModality(Qt::WindowModal);
@@ -197,9 +197,10 @@ int TabController::initUninstaller()
{
IntroductionPageImpl *introPage = introductionPage();
+ introPage->setMessage(QString());
+ introPage->setErrorMessage(QString());
introPage->setComplete(true);
introPage->showMaintenanceTools();
- introPage->setErrorMessage(QLatin1String(""));
d->m_gui->setWindowModality(Qt::WindowModal);
d->m_gui->show();
@@ -211,19 +212,19 @@ int TabController::initPackageManager()
{
IntroductionPageImpl *introPage = introductionPage();
+ introPage->setMessage(QString());
+ introPage->setErrorMessage(QString());
introPage->setComplete(false);
introPage->showMetaInfoUdate();
- introPage->setErrorMessage(QLatin1String(""));
if (d->m_core->isPackageManager()) {
introPage->showAll();
- introPage->message(QLatin1String(""));
introPage->setMaintenanceToolsEnabled(false);
}
if (!d->m_introPageConnected) {
d->m_introPageConnected = true;
- connect(d->m_core, SIGNAL(metaJobInfoMessage(QString)), introPage, SLOT(message(QString)));
+ connect(d->m_core, SIGNAL(metaJobInfoMessage(QString)), introPage, SLOT(setMessage(QString)));
}
d->m_gui->setWindowModality(Qt::WindowModal);