diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-07-01 21:30:26 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-07-01 21:30:26 +0000 |
commit | 94ddde53d91cbdb554bbe78b108ccbd6a7d7c13a (patch) | |
tree | 961f7eb9997011a96d54a249dcb663025f686102 /src/potracegui.cpp | |
parent | dad5420e97a9a56cce014e9380026063ee9d279c (diff) | |
download | potracegui-94ddde53d91cbdb554bbe78b108ccbd6a7d7c13a.tar.gz potracegui-94ddde53d91cbdb554bbe78b108ccbd6a7d7c13a.zip |
TQt4 port potracegui
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/potracegui@1239033 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/potracegui.cpp')
-rw-r--r-- | src/potracegui.cpp | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/src/potracegui.cpp b/src/potracegui.cpp index 70168b2..815bbb7 100644 --- a/src/potracegui.cpp +++ b/src/potracegui.cpp @@ -21,8 +21,8 @@ #include "potracegui.h" #include "mainwidget.h" -#include <qlabel.h> -#include <qclipboard.h> +#include <tqlabel.h> +#include <tqclipboard.h> #include <kmainwindow.h> #include <klocale.h> @@ -55,7 +55,7 @@ potracegui::potracegui() setAutoSaveSettings(); setAcceptDrops(true); - connect(m_centralWidget,SIGNAL(signalChangeStatusbar(QString)),this,SLOT(changeStatusbar(QString))); + connect(m_centralWidget,TQT_SIGNAL(signalChangeStatusbar(TQString)),this,TQT_SLOT(changeStatusbar(TQString))); createInterface(); } @@ -67,21 +67,21 @@ potracegui::~potracegui() void potracegui::createInterface() { /*handled by potracegui*/ - KStdAction::openNew(this, SLOT(fileNew()),actionCollection()); - KStdAction::quit(this, SLOT(quit()),actionCollection()); - m_toolbarAction=KStdAction::showToolbar(this, SLOT(showToolbar()),actionCollection()); - m_statusbarAction=KStdAction::showStatusbar(this, SLOT(showStatusbar()),actionCollection()); - KStdAction::keyBindings(this, SLOT(configureKeys()),actionCollection()); - KStdAction::configureToolbars(this, SLOT(configureTB()),actionCollection()); + KStdAction::openNew(TQT_TQOBJECT(this), TQT_SLOT(fileNew()),actionCollection()); + KStdAction::quit(TQT_TQOBJECT(this), TQT_SLOT(quit()),actionCollection()); + m_toolbarAction=KStdAction::showToolbar(TQT_TQOBJECT(this), TQT_SLOT(showToolbar()),actionCollection()); + m_statusbarAction=KStdAction::showStatusbar(TQT_TQOBJECT(this), TQT_SLOT(showStatusbar()),actionCollection()); + KStdAction::keyBindings(TQT_TQOBJECT(this), TQT_SLOT(configureKeys()),actionCollection()); + KStdAction::configureToolbars(TQT_TQOBJECT(this), TQT_SLOT(configureTB()),actionCollection()); /*handled by MainWidget*/ - KStdAction::open(m_centralWidget, SLOT(fileOpen()),actionCollection()); - KStdAction::save(m_centralWidget, SLOT(fileSave()),actionCollection()); - KStdAction::saveAs(m_centralWidget, SLOT(fileSaveAs()),actionCollection()); - KStdAction::close(m_centralWidget, SLOT(fileClose()),actionCollection()); - KStdAction::cut(m_centralWidget, SLOT(cut()),actionCollection()); - KStdAction::copy(m_centralWidget, SLOT(copy()),actionCollection()); - KStdAction::paste(m_centralWidget, SLOT(paste()),actionCollection()); + KStdAction::open(TQT_TQOBJECT(m_centralWidget), TQT_SLOT(fileOpen()),actionCollection()); + KStdAction::save(TQT_TQOBJECT(m_centralWidget), TQT_SLOT(fileSave()),actionCollection()); + KStdAction::saveAs(TQT_TQOBJECT(m_centralWidget), TQT_SLOT(fileSaveAs()),actionCollection()); + KStdAction::close(TQT_TQOBJECT(m_centralWidget), TQT_SLOT(fileClose()),actionCollection()); + KStdAction::cut(TQT_TQOBJECT(m_centralWidget), TQT_SLOT(cut()),actionCollection()); + KStdAction::copy(TQT_TQOBJECT(m_centralWidget), TQT_SLOT(copy()),actionCollection()); + KStdAction::paste(TQT_TQOBJECT(m_centralWidget), TQT_SLOT(paste()),actionCollection()); /*Create menu and toolbar*/ createGUI(); @@ -123,7 +123,7 @@ void potracegui::configureKeys() void potracegui::configureTB() { KEditToolbar dlg(actionCollection()); - connect(&dlg,SIGNAL(newToolbarConfig()),this,SLOT(NewTBConfig())); + connect(&dlg,TQT_SIGNAL(newToolbarConfig()),this,TQT_SLOT(NewTBConfig())); dlg.exec(); } @@ -133,7 +133,7 @@ void potracegui::NewTBConfig() saveMainWindowSettings(KGlobal::config()); } -void potracegui::changeStatusbar(QString message) +void potracegui::changeStatusbar(TQString message) { statusBar()->message(message); } |