diff options
Diffstat (limited to 'kdejava/koala/test/kbase')
-rw-r--r-- | kdejava/koala/test/kbase/KBase.java | 10 | ||||
-rw-r--r-- | kdejava/koala/test/kbase/KBaseDoc.java | 4 | ||||
-rw-r--r-- | kdejava/koala/test/kbase/KBaseView.java | 10 |
3 files changed, 12 insertions, 12 deletions
diff --git a/kdejava/koala/test/kbase/KBase.java b/kdejava/koala/test/kbase/KBase.java index abbf784c..ed584dcd 100644 --- a/kdejava/koala/test/kbase/KBase.java +++ b/kdejava/koala/test/kbase/KBase.java @@ -52,7 +52,7 @@ public class KBase extends KMainWindow /** construtor of KBase, calls all init functions to create the application. */ -public KBase(QWidget parent, String name) +public KBase(TQWidget parent, String name) { super(parent, name, 0); KApplication kapp = KApplication.kApplication(); @@ -222,7 +222,7 @@ protected void readOptions() // initialize the recent file list fileOpenRecent.loadEntries(config,"Recent Files"); - QSize size=config.readSizeEntry("Geometry", null); + TQSize size=config.readSizeEntry("Geometry", null); if(!size.isEmpty()) { resize(size); @@ -273,7 +273,7 @@ protected void readProperties(KConfig _cfg) doc.openDocument(_url); doc.setModified(); setCaption(_url.fileName(),true); - QFile.remove(tempname); + TQFile.remove(tempname); } } else @@ -401,7 +401,7 @@ public void slotFileSaveAs() { slotStatusMsg(tr("Saving file with a new filename...")); - KURL url=KFileDialog.getSaveURL(QDir.currentDirPath(), + KURL url=KFileDialog.getSaveURL(TQDir.currentDirPath(), tr("*|All files"), this, tr("Save as...")); if(!url.isEmpty()) { @@ -428,7 +428,7 @@ public void slotFilePrint() { slotStatusMsg(tr("Printing...")); - QPrinter printer = new QPrinter(); + TQPrinter printer = new TQPrinter(); if (printer.setup(this)) { view.print(printer); diff --git a/kdejava/koala/test/kbase/KBaseDoc.java b/kdejava/koala/test/kbase/KBaseDoc.java index 0ee4f8f3..3683c0b2 100644 --- a/kdejava/koala/test/kbase/KBaseDoc.java +++ b/kdejava/koala/test/kbase/KBaseDoc.java @@ -13,7 +13,7 @@ import org.kde.koala.*; * @author Source Framework Automatically Generated by KDevelop, (c) The KDevelop Team. * @version KDevelop version 1.2 code generation */ -public class KBaseDoc extends QObject { +public class KBaseDoc extends TQObject { /** the list of the views currently connected to the document */ public ArrayList pViewList; @@ -23,7 +23,7 @@ public class KBaseDoc extends QObject { private KURL doc_url; /** Constructor for the fileclass of the application */ -public KBaseDoc(QWidget parent, String name) +public KBaseDoc(TQWidget parent, String name) { super(parent, name); setURL(new KURL()); diff --git a/kdejava/koala/test/kbase/KBaseView.java b/kdejava/koala/test/kbase/KBaseView.java index 2b745b11..59554607 100644 --- a/kdejava/koala/test/kbase/KBaseView.java +++ b/kdejava/koala/test/kbase/KBaseView.java @@ -1,16 +1,16 @@ import org.kde.qt.*; /** The KBaseView class provides the view widget for the KBase instance. - * The View instance inherits QWidget as a base class and represents the view object of a KTMainWindow. As KBaseView is part of the + * The View instance inherits TQWidget as a base class and represents the view object of a KTMainWindow. As KBaseView is part of the * docuement-view model, it needs a reference to the document object connected with it by the KBase class to manipulate and display * the document structure provided by the KBaseDoc class. * * @author Source Framework Automatically Generated by KDevelop, (c) The KDevelop Team. * @version KDevelop version 0.4 code generation */ -public class KBaseView extends QWidget { +public class KBaseView extends TQWidget { -public KBaseView(QWidget parent, String name) +public KBaseView(TQWidget parent, String name) { super(parent, name); setBackgroundMode(PaletteBase); @@ -23,9 +23,9 @@ public KBaseDoc getDocument() return theApp.getDocument(); } -public void print(QPrinter pPrinter) +public void print(TQPrinter pPrinter) { - QPainter printpainter = new QPainter(); + TQPainter printpainter = new TQPainter(); printpainter.begin(pPrinter); // TODO: add your printing code here |