From kde-commits Tue Jan 11 15:43:25 2011 From: Sebastian Trueg Date: Tue, 11 Jan 2011 15:43:25 +0000 To: kde-commits Subject: KDE/kdebase/runtime/nepomuk/services/backupsync/gui Message-Id: <20110111154325.218AAAC8B4 () svn ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=129476063321770 SVN commit 1213787 by trueg: Set a better window title than the name of the executable. M +8 -0 backupwizard.cpp --- trunk/KDE/kdebase/runtime/nepomuk/services/backupsync/gui/backupwizard.cpp #1213786:1213787 @@ -23,11 +23,19 @@ #include "backupwizard.h" #include "backupwizardpages.h" +#include +#include +#include + +// TODO: 1. "Cancel" just closes the dialog without any feedback on the backup +// 2. If the service crashes the dialog does not notice + Nepomuk::BackupWizard::BackupWizard(QWidget* parent, Qt::WindowFlags flags) : QWizard(parent, flags) { setPixmap(LogoPixmap, KIcon(QLatin1String("nepomuk")).pixmap(32, 32)); setWindowIcon( KIcon(QLatin1String("nepomuk")) ); + setWindowTitle( KGlobal::activeComponent().aboutData()->shortDescription() ); setPage( Id_IntroPage, new IntroPage(this) ); setPage( Id_BackupPage, new BackupPage(this) );