summaryrefslogtreecommitdiffstats
path: root/kdejava/koala/test/kmenu
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-05 15:55:57 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-05 15:55:57 -0600
commit9ba04742771370f59740e32e11c5f3a1e6a1b70a (patch)
treec81c34dae2b3b1ea73801bf18a960265dc4207f7 /kdejava/koala/test/kmenu
parent1a96c45b22d01378202d9dc7ed9c47acd30f966e (diff)
downloadtdebindings-9ba04742771370f59740e32e11c5f3a1e6a1b70a.tar.gz
tdebindings-9ba04742771370f59740e32e11c5f3a1e6a1b70a.zip
Initial TQt conversion
Diffstat (limited to 'kdejava/koala/test/kmenu')
-rw-r--r--kdejava/koala/test/kmenu/KdeMenuSample.java22
1 files changed, 11 insertions, 11 deletions
diff --git a/kdejava/koala/test/kmenu/KdeMenuSample.java b/kdejava/koala/test/kmenu/KdeMenuSample.java
index b7832118..150def70 100644
--- a/kdejava/koala/test/kmenu/KdeMenuSample.java
+++ b/kdejava/koala/test/kmenu/KdeMenuSample.java
@@ -12,15 +12,15 @@ import org.kde.qt.qtjava;
import org.kde.koala.KMainWindow;
import org.kde.koala.KCmdLineArgs;
-import org.kde.qt.QPopupMenu;
-import org.kde.qt.QTextView;
+import org.kde.qt.TQPopupMenu;
+import org.kde.qt.TQTextView;
import org.kde.koala.KMenuBar;
import org.kde.koala.KApplication;
import org.kde.koala.KURL;
import org.kde.koala.KFileDialog;
import org.kde.koala.KMessageBox;
-import org.kde.qt.QColor;
-import org.kde.qt.QButton;
+import org.kde.qt.TQColor;
+import org.kde.qt.TQButton;
import org.kde.koala.KPushButton;
@@ -46,7 +46,7 @@ public class KdeMenuSample extends KMainWindow {
this.kApp = kApp;
setCaption("KDE3 Tutorial");
createMenu();
- QTextView centralWidget = createTextView();
+ TQTextView centralWidget = createTextView();
this.setCentralWidget(centralWidget);
}
@@ -55,8 +55,8 @@ public class KdeMenuSample extends KMainWindow {
/**
* creates the file menu
*/
- private QPopupMenu createFileMenu() {
- QPopupMenu fileMenu = new QPopupMenu(this);
+ private TQPopupMenu createFileMenu() {
+ TQPopupMenu fileMenu = new TQPopupMenu(this);
fileMenu.insertItem("&Open",this,this.SLOT("fileOpen()"));
fileMenu.insertItem("&Save",this,this.SLOT("fileSave()"));
fileMenu.insertItem("&Quit",kApp,kApp.SLOT("quit()"));
@@ -66,7 +66,7 @@ public class KdeMenuSample extends KMainWindow {
/**
* creates the about menu
*/
- private QPopupMenu createAboutMenu() {
+ private TQPopupMenu createAboutMenu() {
StringBuffer aboutText = new StringBuffer();
aboutText.append("Menu Example: \n ");
@@ -77,7 +77,7 @@ public class KdeMenuSample extends KMainWindow {
aboutText.append("This is free software, and you are welcome to redistribute it\n");
aboutText.append("under certain conditions\n");
- QPopupMenu aboutMenu = helpMenu(aboutText.toString(),true);
+ TQPopupMenu aboutMenu = helpMenu(aboutText.toString(),true);
return aboutMenu;
}
@@ -95,7 +95,7 @@ public class KdeMenuSample extends KMainWindow {
/**
* creates the textview of the window
*/
- private QTextView createTextView() {
+ private TQTextView createTextView() {
StringBuffer textBuf = new StringBuffer();
textBuf.append("<H2>Hello World !</H2><BR>This is a simple");
textBuf.append(" window with <I><font size=5><B>R<font color=red");
@@ -103,7 +103,7 @@ public class KdeMenuSample extends KMainWindow {
textBuf.append("</font></B></I> capabilities<BR>Try to resize");
textBuf.append(" this window, all this is automatic !</H2>");
- QTextView mainTextView = new QTextView(this,"");
+ TQTextView mainTextView = new TQTextView(this,"");
mainTextView.setText(textBuf.toString());