[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-19 15:14:49
Message-ID: 1129734889.147333.31127.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 472031 by bmeyer:
move scope
M +0 -1 ktron.cpp
M +13 -9 main.cpp
--- trunk/KDE/kdegames/ktron/ktron.cpp #472030:472031
@@ -27,7 +27,6 @@
#include <kmessagebox.h>
#include <kaction.h>
#include <kstdgameaction.h>
-#include <kapplication.h>
#include <kstatusbar.h>
// Settings
--- trunk/KDE/kdegames/ktron/main.cpp #472030:472031
@@ -36,6 +36,8 @@
"Parts of the algorithms for the computer player are from\n"
"xtron-1.1 by Rhett D. Jacobs <rhett@hotel.canberra.edu.au>");
+#include <kiconloader.h>
+#include <qicon.h>
int main(int argc, char* argv[])
{
@@ -45,19 +47,21 @@
aboutData.addAuthor("Matthias Kiefer",I18N_NOOP("Original author"), "matthias.kiefer@gmx.de");
KCmdLineArgs::init( argc, argv, &aboutData );
+ /*
+ KInstance instance(&aboutData);
+ QApplication application(argc, argv);
+ application.setApplicationName("KTron");
+ QApplication::setWindowIcon(DesktopIcon("ktron"));
+ */
+
KApplication application;
KGlobal::locale()->insertCatalog("libkdegames");
-
// used for loading background pixmaps
KImageIO::registerFormats();
-
- if(application.isSessionRestored()){
- RESTORE(KTron)
- }
- else {
- KTron ktron;
- ktron.show();
- }
+
+ KTron ktron;
+ ktron.show();
+
return application.exec();
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic