[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdebase/kate/app
From: Aaron J. Seigo <aseigo () kde ! org>
Date: 2006-12-11 16:21:05
Message-ID: 1165854065.904950.8852.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 612488 by aseigo:
use KProgressDialog so that we can use setCaption
M +7 -9 katedocmanager.cpp
--- trunk/KDE/kdebase/kate/app/katedocmanager.cpp #612487:612488
@@ -41,10 +41,10 @@
#include <KEncodingFileDialog>
#include <KIO/Job>
#include <KIconLoader>
+#include <KProgressDialog>
#include <QDateTime>
#include <QTextCodec>
-#include <QProgressDialog>
#include <QByteArray>
#include <QHash>
#include <QListView>
@@ -452,14 +452,12 @@
return;
}
- QProgressDialog *pd=new QProgressDialog(
- i18n("Reopening files from the last session..."),
- QString(),
- 0,
- count);
+ KProgressDialog *pd = new KProgressDialog(0,
+ i18n("Starting Up"),
+ i18n("Reopening files from the last session..."), true);
+ pd->setAllowCancel(false);
+ pd->progressBar()->setRange(0, count);
- pd->setWindowTitle (KInstance::makeStandardCaption(i18n("Starting Up"), pd));
-
bool first = true;
const int countM1=count-1;
m_restoringDocumentList=true;
@@ -486,7 +484,7 @@
iface->readSessionConfig(config);
config->setGroup (grp);
- pd->setValue(pd->value()+1);
+ pd->progressBar()->setValue(pd->progressBar()->value()+1);
KateApp::self()->processEvents();
}
m_restoringDocumentList=false;
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic