summaryrefslogtreecommitdiffstats
path: root/tqtinterface/qt4/tools/linguist/tutorial/tt2
diff options
context:
space:
mode:
Diffstat (limited to 'tqtinterface/qt4/tools/linguist/tutorial/tt2')
-rw-r--r--tqtinterface/qt4/tools/linguist/tutorial/tt2/arrowpad.cpp31
-rw-r--r--tqtinterface/qt4/tools/linguist/tutorial/tt2/arrowpad.h22
-rw-r--r--tqtinterface/qt4/tools/linguist/tutorial/tt2/main.cpp26
-rw-r--r--tqtinterface/qt4/tools/linguist/tutorial/tt2/mainwindow.cpp26
-rw-r--r--tqtinterface/qt4/tools/linguist/tutorial/tt2/mainwindow.h19
-rw-r--r--tqtinterface/qt4/tools/linguist/tutorial/tt2/tt2.pro9
6 files changed, 0 insertions, 133 deletions
diff --git a/tqtinterface/qt4/tools/linguist/tutorial/tt2/arrowpad.cpp b/tqtinterface/qt4/tools/linguist/tutorial/tt2/arrowpad.cpp
deleted file mode 100644
index 8c48018..0000000
--- a/tqtinterface/qt4/tools/linguist/tutorial/tt2/arrowpad.cpp
+++ /dev/null
@@ -1,31 +0,0 @@
-/****************************************************************
-**
-** Implementation of ArrowPad class, translation tutorial 2
-**
-****************************************************************/
-
-#include "arrowpad.h"
-
-#include <tqpushbutton.h>
-
-ArrowPad::ArrowPad( TQWidget *parent, const char *name )
- : TQGrid( 3, Qt::Horizontal, parent, name )
-{
- setMargin( 10 );
- setSpacing( 10 );
-
- skip();
- (void) new TQPushButton( tqtr("&Up"), this );
- skip();
- (void) new TQPushButton( tqtr("&Left"), this );
- skip();
- (void) new TQPushButton( tqtr("&Right"), this );
- skip();
- (void) new TQPushButton( tqtr("&Down"), this );
- skip();
-}
-
-void ArrowPad::skip()
-{
- (void) new TQWidget( this );
-}
diff --git a/tqtinterface/qt4/tools/linguist/tutorial/tt2/arrowpad.h b/tqtinterface/qt4/tools/linguist/tutorial/tt2/arrowpad.h
deleted file mode 100644
index 13c061d..0000000
--- a/tqtinterface/qt4/tools/linguist/tutorial/tt2/arrowpad.h
+++ /dev/null
@@ -1,22 +0,0 @@
-/****************************************************************
-**
-** Definition of ArrowPad class, translation tutorial 2
-**
-****************************************************************/
-
-#ifndef ARROWPAD_H
-#define ARROWPAD_H
-
-#include <tqgrid.h>
-
-class ArrowPad : public TQGrid
-{
- TQ_OBJECT
-public:
- ArrowPad( TQWidget *parent = 0, const char *name = 0 );
-
-private:
- void skip();
-};
-
-#endif
diff --git a/tqtinterface/qt4/tools/linguist/tutorial/tt2/main.cpp b/tqtinterface/qt4/tools/linguist/tutorial/tt2/main.cpp
deleted file mode 100644
index f4cbea9..0000000
--- a/tqtinterface/qt4/tools/linguist/tutorial/tt2/main.cpp
+++ /dev/null
@@ -1,26 +0,0 @@
-/****************************************************************
-**
-** Translation tutorial 2
-**
-****************************************************************/
-
-#include "mainwindow.h"
-
-#include <tqapplication.h>
-#include <tqstring.h>
-#include <tqtextcodec.h>
-#include <tqtranslator.h>
-
-int main( int argc, char **argv )
-{
- TQApplication app( argc, argv );
-
- TQTranslator translator( 0 );
- translator.load( TQString("tt2_") + TQTextCodec::locale(), "." );
- app.installTranslator( &translator );
-
- MainWindow *mw = new MainWindow;
- app.setMainWidget( mw );
- mw->show();
- return app.exec();
-}
diff --git a/tqtinterface/qt4/tools/linguist/tutorial/tt2/mainwindow.cpp b/tqtinterface/qt4/tools/linguist/tutorial/tt2/mainwindow.cpp
deleted file mode 100644
index 41dd7d1..0000000
--- a/tqtinterface/qt4/tools/linguist/tutorial/tt2/mainwindow.cpp
+++ /dev/null
@@ -1,26 +0,0 @@
-/****************************************************************
-**
-** Implementation of MainWindow class, translation tutorial 2
-**
-****************************************************************/
-
-#include "arrowpad.h"
-#include "mainwindow.h"
-
-#include <tqaccel.h>
-#include <tqapplication.h>
-#include <tqmenubar.h>
-#include <tqpopupmenu.h>
-
-MainWindow::MainWindow( TQWidget *parent, const char *name )
- : TQMainWindow( parent, name )
-{
- ArrowPad *ap = new ArrowPad( this, "arrow pad" );
- setCentralWidget( ap );
-
- TQPopupMenu *file = new TQPopupMenu( this );
- file->insertItem( tqtr("E&xit"), tqApp, TQT_SLOT(quit()),
- tqtr("Ctrl+Q", "Quit") );
- menuBar()->insertItem( tqtr("&File"), file );
- menuBar()->setSeparator( TQMenuBar::InWindowsStyle );
-}
diff --git a/tqtinterface/qt4/tools/linguist/tutorial/tt2/mainwindow.h b/tqtinterface/qt4/tools/linguist/tutorial/tt2/mainwindow.h
deleted file mode 100644
index 38209c6..0000000
--- a/tqtinterface/qt4/tools/linguist/tutorial/tt2/mainwindow.h
+++ /dev/null
@@ -1,19 +0,0 @@
-/****************************************************************
-**
-** Definition of MainWindow class, translation tutorial 2
-**
-****************************************************************/
-
-#ifndef MAINWINDOW_H
-#define MAINWINDOW_H
-
-#include <tqmainwindow.h>
-
-class MainWindow : public TQMainWindow
-{
- TQ_OBJECT
-public:
- MainWindow( TQWidget *parent = 0, const char *name = 0 );
-};
-
-#endif
diff --git a/tqtinterface/qt4/tools/linguist/tutorial/tt2/tt2.pro b/tqtinterface/qt4/tools/linguist/tutorial/tt2/tt2.pro
deleted file mode 100644
index 8c1ea6d..0000000
--- a/tqtinterface/qt4/tools/linguist/tutorial/tt2/tt2.pro
+++ /dev/null
@@ -1,9 +0,0 @@
-TEMPLATE = app
-CONFIG += qt warn_on
-HEADERS = arrowpad.h \
- mainwindow.h
-SOURCES = arrowpad.cpp \
- main.cpp \
- mainwindow.cpp
-TRANSLATIONS = tt2_fr.ts \
- tt2_nl.ts