summaryrefslogtreecommitdiffstats
path: root/languages/cpp/app_templates/cmakeqt3app
diff options
context:
space:
mode:
Diffstat (limited to 'languages/cpp/app_templates/cmakeqt3app')
-rw-r--r--languages/cpp/app_templates/cmakeqt3app/CMakeLists.txt.src14
-rw-r--r--languages/cpp/app_templates/cmakeqt3app/cmakeqt3app.cpp26
-rw-r--r--languages/cpp/app_templates/cmakeqt3app/cmakeqt3app.h2
-rw-r--r--languages/cpp/app_templates/cmakeqt3app/main.cpp2
4 files changed, 22 insertions, 22 deletions
diff --git a/languages/cpp/app_templates/cmakeqt3app/CMakeLists.txt.src b/languages/cpp/app_templates/cmakeqt3app/CMakeLists.txt.src
index 6122c34f..f78028c9 100644
--- a/languages/cpp/app_templates/cmakeqt3app/CMakeLists.txt.src
+++ b/languages/cpp/app_templates/cmakeqt3app/CMakeLists.txt.src
@@ -2,26 +2,26 @@
# for more information see the cmake man page
# add definitions, compiler switches, etc.
-ADD_DEFINITIONS(${QT_DEFINITIONS} -Wall -O2 -g)
+add_definitions(${QT_DEFINITIONS} -Wall -O2 -g)
# add the Qt include dir to the include path
-INCLUDE_DIRECTORIES(${TQT_INCLUDE_DIR})
+include_directories(${TQT_INCLUDE_DIR})
# list all source files in a variable
-SET(%{APPNAMELC}_SRCS main.cpp %{APPNAMELC}.cpp)
+set(%{APPNAMELC}_SRCS main.cpp %{APPNAMELC}.cpp)
# specify the headers which have to be processed by moc
# and collect the results in the variable given above
-QT_WRAP_CPP (%{APPNAMELC} %{APPNAMELC}_SRCS %{APPNAMELC}.h)
+qt_wrap_cpp (%{APPNAMELC} %{APPNAMELC}_SRCS %{APPNAMELC}.h)
# create tan executable from the list of source files
-ADD_EXECUTABLE(%{APPNAMELC} ${%{APPNAMELC}_SRCS})
+add_executable(%{APPNAMELC} ${%{APPNAMELC}_SRCS})
# link the application to the Qt libs
-TARGET_LINK_LIBRARIES(%{APPNAMELC} ${TQT_LIBRARIES} )
+target_link_libraries(%{APPNAMELC} ${TQT_LIBRARIES} )
# create an install rule for the executable
-INSTALL(TARGETS %{APPNAMELC} DESTINATION bin )
+install(TARGETS %{APPNAMELC} DESTINATION bin )
# if you need to install more things, take a look at the install() command
# in the cmake man page
diff --git a/languages/cpp/app_templates/cmakeqt3app/cmakeqt3app.cpp b/languages/cpp/app_templates/cmakeqt3app/cmakeqt3app.cpp
index 39b6e5af..8ce81310 100644
--- a/languages/cpp/app_templates/cmakeqt3app/cmakeqt3app.cpp
+++ b/languages/cpp/app_templates/cmakeqt3app/cmakeqt3app.cpp
@@ -37,17 +37,17 @@
openIcon = TQPixmap( fileopen );
TQToolButton * fileOpen
= new TQToolButton( openIcon, tr("Open File"), TQString(),
- this, TQT_SLOT(choose()), fileTools, "open file" );
+ this, TQ_SLOT(choose()), fileTools, "open file" );
saveIcon = TQPixmap( filesave );
TQToolButton * fileSave
= new TQToolButton( saveIcon, tr("Save File"), TQString(),
- this, TQT_SLOT(save()), fileTools, "save file" );
+ this, TQ_SLOT(save()), fileTools, "save file" );
printIcon = TQPixmap( fileprint );
TQToolButton * filePrint
= new TQToolButton( printIcon, tr("Print File"), TQString(),
- this, TQT_SLOT(print()), fileTools, "print file" );
+ this, TQ_SLOT(print()), fileTools, "print file" );
(void)TQWhatsThis::whatsThisButton( fileTools );
@@ -79,41 +79,41 @@
menuBar()->insertItem( tr("&File"), file );
- file->insertItem( tr("&New"), this, TQT_SLOT(newDoc()), CTRL+Key_N );
+ file->insertItem( tr("&New"), this, TQ_SLOT(newDoc()), CTRL+Key_N );
int id;
id = file->insertItem( openIcon, tr("&Open..."),
- this, TQT_SLOT(choose()), CTRL+Key_O );
+ this, TQ_SLOT(choose()), CTRL+Key_O );
file->setWhatsThis( id, fileOpenText );
id = file->insertItem( saveIcon, tr("&Save"),
- this, TQT_SLOT(save()), CTRL+Key_S );
+ this, TQ_SLOT(save()), CTRL+Key_S );
file->setWhatsThis( id, fileSaveText );
- id = file->insertItem( tr("Save &As..."), this, TQT_SLOT(saveAs()) );
+ id = file->insertItem( tr("Save &As..."), this, TQ_SLOT(saveAs()) );
file->setWhatsThis( id, fileSaveText );
file->insertSeparator();
id = file->insertItem( printIcon, tr("&Print..."),
- this, TQT_SLOT(print()), CTRL+Key_P );
+ this, TQ_SLOT(print()), CTRL+Key_P );
file->setWhatsThis( id, filePrintText );
file->insertSeparator();
- file->insertItem( tr("&Close"), this, TQT_SLOT(close()), CTRL+Key_W );
+ file->insertItem( tr("&Close"), this, TQ_SLOT(close()), CTRL+Key_W );
- file->insertItem( tr("&Quit"), tqApp, TQT_SLOT( closeAllWindows() ), CTRL+Key_Q );
+ file->insertItem( tr("&Quit"), tqApp, TQ_SLOT( closeAllWindows() ), CTRL+Key_Q );
menuBar()->insertSeparator();
TQPopupMenu * help = new TQPopupMenu( this );
menuBar()->insertItem( tr("&Help"), help );
- help->insertItem( tr("&About"), this, TQT_SLOT(about()), Key_F1 );
- help->insertItem( tr("About &TQt"), this, TQT_SLOT(aboutTQt()) );
+ help->insertItem( tr("&About"), this, TQ_SLOT(about()), Key_F1 );
+ help->insertItem( tr("About &TQt"), this, TQ_SLOT(aboutTQt()) );
help->insertSeparator();
- help->insertItem( tr("What's &This"), this, TQT_SLOT(whatsThis()), SHIFT+Key_F1 );
+ help->insertItem( tr("What's &This"), this, TQ_SLOT(whatsThis()), SHIFT+Key_F1 );
e = new TQTextEdit( this, "editor" );
e->setFocus();
diff --git a/languages/cpp/app_templates/cmakeqt3app/cmakeqt3app.h b/languages/cpp/app_templates/cmakeqt3app/cmakeqt3app.h
index ef58ff46..ba2d50ed 100644
--- a/languages/cpp/app_templates/cmakeqt3app/cmakeqt3app.h
+++ b/languages/cpp/app_templates/cmakeqt3app/cmakeqt3app.h
@@ -9,7 +9,7 @@ class TQTextEdit;
class %{APPNAME}: public TQMainWindow
{
- Q_OBJECT
+ TQ_OBJECT
public:
diff --git a/languages/cpp/app_templates/cmakeqt3app/main.cpp b/languages/cpp/app_templates/cmakeqt3app/main.cpp
index 8938adc5..ba45c728 100644
--- a/languages/cpp/app_templates/cmakeqt3app/main.cpp
+++ b/languages/cpp/app_templates/cmakeqt3app/main.cpp
@@ -8,6 +8,6 @@ int main( int argc, char ** argv ) {
%{APPNAME} * mw = new %{APPNAME}();
mw->setCaption( "%{APPNAME}" );
mw->show();
- a.connect( &a, TQT_SIGNAL(lastWindowClosed()), &a, TQT_SLOT(quit()) );
+ a.connect( &a, TQ_SIGNAL(lastWindowClosed()), &a, TQ_SLOT(quit()) );
return a.exec();
}