summaryrefslogtreecommitdiffstats
path: root/knights/knights.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-27 18:28:11 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-27 18:28:11 +0000
commit9ca7f795653bc31cf1d206da1e12c801a8380fa6 (patch)
treeee829debe9ad76ce8fc3b10cdc376754dba5ed03 /knights/knights.h
parent98cb2d5fa21e616cfea012f80bf1d989cfe264e3 (diff)
downloadknights-9ca7f795653bc31cf1d206da1e12c801a8380fa6.tar.gz
knights-9ca7f795653bc31cf1d206da1e12c801a8380fa6.zip
TQt4 port knights
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/knights@1238529 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'knights/knights.h')
-rw-r--r--knights/knights.h43
1 files changed, 22 insertions, 21 deletions
diff --git a/knights/knights.h b/knights/knights.h
index a17aaa6..772e37b 100644
--- a/knights/knights.h
+++ b/knights/knights.h
@@ -30,10 +30,10 @@
#include <kstatusbar.h>
#include <kcmdlineargs.h>
/* QT */
-#include <qlayout.h>
-#include <qwidget.h>
-#include <qpixmap.h>
-#include <qstring.h>
+#include <tqlayout.h>
+#include <tqwidget.h>
+#include <tqpixmap.h>
+#include <tqstring.h>
/* Local */
#include "definitions.h"
#include "resource.h"
@@ -42,8 +42,8 @@
class KMenuBar;
class KPopupMenu;
class KComboBox;
-class QLabel;
-class QFrame;
+class TQLabel;
+class TQFrame;
class dlg_settings;
class dlg_newmatch;
class core;
@@ -56,33 +56,34 @@ class splash;
**/
class Knights : public KMainWindow
{
- Q_OBJECT
+ Q_OBJECT
+ TQ_OBJECT
public:
KAboutData *aboutData;
resource *Resource;
- Knights( KCmdLineArgs *Args, QWidget* parent=0, const char *name=0 );
+ Knights( KCmdLineArgs *Args, TQWidget* tqparent=0, const char *name=0 );
~Knights();
bool init( void );
void initMenus( void );
void BirthAll( void );
- void keyPressEvent( QKeyEvent* );
+ void keyPressEvent( TQKeyEvent* );
public slots:
void KillAll( void );
void menuClose( void );
- /** Yeah, they're sloppy, but I need my own geometry managment routines
+ /** Yeah, they're sloppy, but I need my own tqgeometry managment routines
because I don't like the "default" look my statusbar was getting
( double-height ). Plus, I want the console to appear only when needed. */
void resizeMainFrame( void );
- bool event( QEvent* );
- void resizeEvent( QResizeEvent* );
- void hideEvent( QHideEvent* );
- void showEvent( QShowEvent* );
- void wheelEvent( QWheelEvent* );
+ bool event( TQEvent* );
+ void resizeEvent( TQResizeEvent* );
+ void hideEvent( TQHideEvent* );
+ void showEvent( TQShowEvent* );
+ void wheelEvent( TQWheelEvent* );
- void setStatusBar( const int &ID, const QString& MSG=QString::null );
+ void setStatusBar( const int &ID, const TQString& MSG=TQString() );
void setClocks( void );
void initMatch( void );
@@ -104,7 +105,7 @@ class Knights : public KMainWindow
signals:
void themesAdded( void );
- void focus( const QChar& );
+ void focus( const TQChar& );
protected:
bool queryClose( void );
@@ -125,10 +126,10 @@ class Knights : public KMainWindow
KPopupMenu *drawMenu;
KPopupMenu *tutorialMenu;
KComboBox *notationBar;
- QFrame *MainFrame;
- QLabel *whiteTimeLabel;
- QLabel *blackTimeLabel;
- QLabel *Message;
+ TQFrame *MainFrame;
+ TQLabel *whiteTimeLabel;
+ TQLabel *blackTimeLabel;
+ TQLabel *Message;
dlg_settings *SettingsDialog;
dlg_newmatch *NewMatch;
core *Core;