summaryrefslogtreecommitdiffstats
path: root/kdpkg-install/install.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-04-05 17:24:54 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-04-05 17:24:54 +0000
commitb155cffc1b83c93eab4a7a09d5c8a00afec0a528 (patch)
tree46ec553f25ebce7f229b9d47ed2669572f25c525 /kdpkg-install/install.cpp
parent5d6079b0671b720574e75f9dc19c1ad8cc6eb303 (diff)
downloadkdpkg-b155cffc1b83c93eab4a7a09d5c8a00afec0a528.tar.gz
kdpkg-b155cffc1b83c93eab4a7a09d5c8a00afec0a528.zip
Added finished page to alert user to proper completion of installation process
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kdpkg@1111441 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kdpkg-install/install.cpp')
-rw-r--r--kdpkg-install/install.cpp21
1 files changed, 16 insertions, 5 deletions
diff --git a/kdpkg-install/install.cpp b/kdpkg-install/install.cpp
index e0156d3..ca08a3c 100644
--- a/kdpkg-install/install.cpp
+++ b/kdpkg-install/install.cpp
@@ -128,6 +128,7 @@ void install::next2()
// page 2: warnings
// page 3: apt-get update
// page 4: install package
+// page 5: process complete
void install::page1()
@@ -166,8 +167,8 @@ void install::page3()
run.append( "update" );
QWidget *consoleWidget = new console(this, run );
- widgetStack->addWidget(consoleWidget, 3);
- widgetStack->raiseWidget(3);
+ widgetStack->addWidget(consoleWidget, 4);
+ widgetStack->raiseWidget(4);
connect( consoleWidget, SIGNAL( finished(bool) ), this, SLOT( page1() ));
}
@@ -192,11 +193,21 @@ void install::page4()
run.append( removePkg );
QWidget *consoleWidget = new console(this, run );
- widgetStack->addWidget(consoleWidget, 4);
- widgetStack->raiseWidget(4);
+ widgetStack->addWidget(consoleWidget, 5);
+ widgetStack->raiseWidget(5);
+
+ //connect( consoleWidget, SIGNAL( finished(bool) ), this, SLOT( close() ));
+ connect( consoleWidget, SIGNAL( finished(bool) ), this, SLOT( page5() ));
+
- connect( consoleWidget, SIGNAL( finished(bool) ), this, SLOT( close() ));
+}
+void install::page5()
+{
+ successTextLabel->setText("<b>"+i18n("Installation process is complete!")+"</b><br>"+i18n("You may now close this window."));
+ nextPushButton2->hide();
+ closePushButton->show();
+ widgetStack->raiseWidget(3);
}