[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdegames/ktron
From: Benjamin Meyer <ben () meyerhome ! net>
Date: 2005-10-18 16:17:25
Message-ID: 1129652245.774869.24776.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 471743 by bmeyer:
qt4 here I come... minor improvments
M +8 -7 main.cpp
--- trunk/KDE/kdegames/ktron/main.cpp #471742:471743
@@ -19,6 +19,7 @@
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
****************************************************************************/
+
#include <kapplication.h>
#include <kimageio.h>
#include <kcmdlineargs.h>
@@ -27,6 +28,7 @@
#include <kglobal.h>
#include "ktron.h"
+
#define KTRON_VERSION "1.1"
static const char description[] = I18N_NOOP("A race in hyperspace");
@@ -39,24 +41,23 @@
{
KAboutData aboutData( "ktron", I18N_NOOP("KTron"),
KTRON_VERSION, description, KAboutData::License_GPL, notice);
+ aboutData.addAuthor("Benjamin Meyer",I18N_NOOP("Maintainer"), "ben@meyerhome.net");
aboutData.addAuthor("Matthias Kiefer",I18N_NOOP("Original author"), "matthias.kiefer@gmx.de");
- aboutData.addAuthor("Benjamin Meyer",I18N_NOOP("Various improvements"), "ben+ktron@meyerhome.net");
KCmdLineArgs::init( argc, argv, &aboutData );
- KApplication a;
+ KApplication application;
KGlobal::locale()->insertCatalog("libkdegames");
// used for loading background pixmaps
KImageIO::registerFormats();
- if(a.isRestored()){
+ if(application.isSessionRestored()){
RESTORE(KTron)
}
else {
- KTron *ktron = new KTron();
- a.setMainWidget(ktron);
- ktron->show();
+ KTron ktron;
+ ktron.show();
}
- return a.exec();
+ return application.exec();
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic