summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2013-01-19 18:46:27 -0600
committerTimothy Pearson <[email protected]>2013-01-19 18:46:27 -0600
commitc664d00793184b3f6580af17fe102449c41e85bd (patch)
treeca31ce23dc565779b3930993fcd9f6d1d63f82bc
parentbdcdc67549e95c360da03dee32d5ca4bd7474c30 (diff)
downloadknights-c664d00793184b3f6580af17fe102449c41e85bd.tar.gz
knights-c664d00793184b3f6580af17fe102449c41e85bd.zip
Rename KCmdLineArgs to TDECmdLineArgs to avoid conflicts with KDE4
-rw-r--r--knights/knights.cpp2
-rw-r--r--knights/knights.h4
-rw-r--r--knights/main.cpp6
-rw-r--r--knights/resource.cpp2
-rw-r--r--knights/resource.h2
5 files changed, 8 insertions, 8 deletions
diff --git a/knights/knights.cpp b/knights/knights.cpp
index f8f3d95..8b5f7c0 100644
--- a/knights/knights.cpp
+++ b/knights/knights.cpp
@@ -40,7 +40,7 @@
#include <tqframe.h>
#include <tqstyle.h>
-Knights::Knights(KCmdLineArgs *Args, TQWidget *parent, const char *name) : KMainWindow(parent, name)
+Knights::Knights(TDECmdLineArgs *Args, TQWidget *parent, const char *name) : KMainWindow(parent, name)
{
InitAll = TRUE;
ResizeFlag = TRUE;
diff --git a/knights/knights.h b/knights/knights.h
index 1583dad..b1949aa 100644
--- a/knights/knights.h
+++ b/knights/knights.h
@@ -62,7 +62,7 @@ class Knights : public KMainWindow
KAboutData *aboutData;
resource *Resource;
- Knights( KCmdLineArgs *Args, TQWidget* parent=0, const char *name=0 );
+ Knights( TDECmdLineArgs *Args, TQWidget* parent=0, const char *name=0 );
~Knights();
bool init( void );
void initMenus( void );
@@ -117,7 +117,7 @@ class Knights : public KMainWindow
void newMatch( void );
private:
- KCmdLineArgs *args;
+ TDECmdLineArgs *args;
KMenuBar *topMenu;
KPopupMenu *help;
KPopupMenu *fileMenu;
diff --git a/knights/main.cpp b/knights/main.cpp
index 86bb003..740af1a 100644
--- a/knights/main.cpp
+++ b/knights/main.cpp
@@ -67,9 +67,9 @@ int main(int argc, char *argv[])
aboutData.setTranslator(I18N_NOOP("_: NAME OF TRANSLATORS\nYour names"),
I18N_NOOP("_: EMAIL OF TRANSLATORS\nYour emails"));
- KCmdLineArgs::init( argc, argv, &aboutData );
- KCmdLineArgs::addCmdLineOptions( options );
- KCmdLineArgs *args = KCmdLineArgs::parsedArgs();
+ TDECmdLineArgs::init( argc, argv, &aboutData );
+ TDECmdLineArgs::addCmdLineOptions( options );
+ TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs();
KApplication a;
Knights *knights = new Knights(args);
diff --git a/knights/resource.cpp b/knights/resource.cpp
index 2c5cbb1..4dfc022 100644
--- a/knights/resource.cpp
+++ b/knights/resource.cpp
@@ -44,7 +44,7 @@
// resource::resource
//
///////////////////////////////////////
-resource::resource(KCmdLineArgs *args)
+resource::resource(TDECmdLineArgs *args)
{
GlobalDataDir = "";
Widget_Height = 20; // prevents max_size error for thinbuttons on init
diff --git a/knights/resource.h b/knights/resource.h
index 3704ca6..d72352b 100644
--- a/knights/resource.h
+++ b/knights/resource.h
@@ -171,7 +171,7 @@ class resource
char Type[4];
char Strength[4];
- resource( KCmdLineArgs *args );
+ resource( TDECmdLineArgs *args );
~resource();
void ConfigRead( void );