diff options
author | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
---|---|---|
committer | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
commit | 90825e2392b2d70e43c7a25b8a3752299a933894 (patch) | |
tree | e33aa27f02b74604afbfd0ea4f1cfca8833d882a /kdejava/koala/test/kbase/KBaseView.java | |
download | tdebindings-90825e2392b2d70e43c7a25b8a3752299a933894.tar.gz tdebindings-90825e2392b2d70e43c7a25b8a3752299a933894.zip |
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebindings@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kdejava/koala/test/kbase/KBaseView.java')
-rw-r--r-- | kdejava/koala/test/kbase/KBaseView.java | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/kdejava/koala/test/kbase/KBaseView.java b/kdejava/koala/test/kbase/KBaseView.java new file mode 100644 index 00000000..2b745b11 --- /dev/null +++ b/kdejava/koala/test/kbase/KBaseView.java @@ -0,0 +1,36 @@ +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 + * 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 KBaseView(QWidget parent, String name) +{ + super(parent, name); + setBackgroundMode(PaletteBase); +} + +public KBaseDoc getDocument() +{ + KBase theApp=(KBase) parentWidget(); + + return theApp.getDocument(); +} + +public void print(QPrinter pPrinter) +{ + QPainter printpainter = new QPainter(); + printpainter.begin(pPrinter); + + // TODO: add your printing code here + + printpainter.end(); +} + +} |