summaryrefslogtreecommitdiffstats
path: root/ksmserver/shutdowndlg.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2013-11-21 01:34:25 +0100
committerSlávek Banko <slavek.banko@axis.cz>2013-11-21 01:34:25 +0100
commit1c618af70de66f304481efe05b8ebcc0d5d8d4f6 (patch)
tree40b749d4e687065f2b32cfecbfe92a66b303366e /ksmserver/shutdowndlg.cpp
parentc4083c1d476f6dfd575599ffce4434e534251fd2 (diff)
downloadtdebase-1c618af70de66f304481efe05b8ebcc0d5d8d4f6.tar.gz
tdebase-1c618af70de66f304481efe05b8ebcc0d5d8d4f6.zip
Add progress bar to logout status dialog
This resolves Bug 1667
Diffstat (limited to 'ksmserver/shutdowndlg.cpp')
-rw-r--r--ksmserver/shutdowndlg.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/ksmserver/shutdowndlg.cpp b/ksmserver/shutdowndlg.cpp
index fde31d223..9cf0f3c32 100644
--- a/ksmserver/shutdowndlg.cpp
+++ b/ksmserver/shutdowndlg.cpp
@@ -1250,10 +1250,26 @@ void KSMShutdownIPDlg::setNotificationActionButtonsSkipText(TQString text)
m_button1->setText(text);
}
+void KSMShutdownIPDlg::setProgressBarTotalSteps(int total_steps)
+{
+ m_progressbar->setTotalSteps(total_steps);
+}
+
+void KSMShutdownIPDlg::setProgressBarProgress(int step)
+{
+ m_progressbar->setProgress(step);
+}
+
KSMShutdownIPDlg::KSMShutdownIPDlg(TQWidget* parent)
: KSMModalDialog( parent )
{
+ m_progressbar = new TQProgressBar(this);
+ m_progressbar->show();
+ m_gridlayout->expand(4,3);
+ m_gridlayout->addMultiCellWidget( m_progressbar, 3, 3, 0, 2);
+ setFixedSize(sizeHint());
+
setStatusMessage(i18n("Saving your settings..."));
setNotificationActionButtonsSkipText(i18n("Skip Notification"));