diff options
author | Timothy Pearson <[email protected]> | 2013-02-01 15:12:46 -0600 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2013-02-01 15:12:46 -0600 |
commit | 58a97ed3af5e4df6c4a58d043b0c267bd97056a9 (patch) | |
tree | 5a2fde6842fd422cae2d8670d382be965098cc32 /ksame | |
parent | 2ce15ee76fd2d9d18a63c035a0f5b00b94c60cdc (diff) | |
download | tdegames-58a97ed3af5e4df6c4a58d043b0c267bd97056a9.tar.gz tdegames-58a97ed3af5e4df6c4a58d043b0c267bd97056a9.zip |
Rename a number of classes to enhance compatibility with KDE4
Diffstat (limited to 'ksame')
-rw-r--r-- | ksame/KSameWidget.cpp | 10 | ||||
-rw-r--r-- | ksame/KSameWidget.h | 12 |
2 files changed, 11 insertions, 11 deletions
diff --git a/ksame/KSameWidget.cpp b/ksame/KSameWidget.cpp index e9583ae2..438154f1 100644 --- a/ksame/KSameWidget.cpp +++ b/ksame/KSameWidget.cpp @@ -47,17 +47,17 @@ static int default_colors=3; #define Board KScoreDialog::Custom1 KSameWidget::KSameWidget(TQWidget *parent, const char* name, WFlags fl) : - KMainWindow(parent,name,fl) + TDEMainWindow(parent,name,fl) { KStdGameAction::gameNew(TQT_TQOBJECT(this), TQT_SLOT(m_new()), actionCollection(), "game_new"); - restart = new KAction(i18n("&Restart This Board"), CTRL+Key_R, TQT_TQOBJECT(this), + restart = new TDEAction(i18n("&Restart This Board"), CTRL+Key_R, TQT_TQOBJECT(this), TQT_SLOT(m_restart()), actionCollection(), "game_restart"); KStdGameAction::highscores(TQT_TQOBJECT(this), TQT_SLOT(m_showhs()), actionCollection(), "game_highscores"); KStdGameAction::quit(TQT_TQOBJECT(this), TQT_SLOT(close()), actionCollection(), "game_quit"); undo = KStdGameAction::undo(TQT_TQOBJECT(this), TQT_SLOT(m_undo()), actionCollection(), "edit_undo"); - random = new KToggleAction(i18n("&Random Board"), 0, 0, 0, actionCollection(), "random_board"); - showNumberRemaining = new KToggleAction(i18n("&Show Number Remaining"), 0, TQT_TQOBJECT(this), TQT_SLOT(showNumberRemainingToggled()), actionCollection(), "showNumberRemaining"); + random = new TDEToggleAction(i18n("&Random Board"), 0, 0, 0, actionCollection(), "random_board"); + showNumberRemaining = new TDEToggleAction(i18n("&Show Number Remaining"), 0, TQT_TQOBJECT(this), TQT_SLOT(showNumberRemainingToggled()), actionCollection(), "showNumberRemaining"); KStdAction::configureNotifications(TQT_TQOBJECT(this), TQT_SLOT(configureNotifications()), actionCollection()); @@ -85,7 +85,7 @@ KSameWidget::KSameWidget(TQWidget *parent, const char* name, WFlags fl) : // Once the main view can scale then use defualt setupGUI() and remove the // noMerge="1" from the uirc file // StatusBar | ToolBar - setupGUI(KMainWindow::Save | Keys | Create ); + setupGUI(TDEMainWindow::Save | Keys | Create ); random->setChecked(true); setScore(0); diff --git a/ksame/KSameWidget.h b/ksame/KSameWidget.h index 94982cab..599c8d9b 100644 --- a/ksame/KSameWidget.h +++ b/ksame/KSameWidget.h @@ -24,10 +24,10 @@ #include <kmainwindow.h> -class KToggleAction; +class TDEToggleAction; class StoneWidget; -class KSameWidget: public KMainWindow { +class KSameWidget: public TDEMainWindow { Q_OBJECT @@ -69,10 +69,10 @@ private: StoneWidget *stone; KStatusBar *status; - KToggleAction *random; - KToggleAction *showNumberRemaining; - KAction *restart; - KAction *undo; + TDEToggleAction *random; + TDEToggleAction *showNumberRemaining; + TDEAction *restart; + TDEAction *undo; }; |