[Kst] kdeextragear-2/kst/kst
George Staikos
staikos at kde.org
Wed Apr 28 21:34:59 CEST 2004
CVS commit by staikos:
allow access to the view from the window
M +5 -2 kstviewwindow.cpp 1.2
M +5 -0 kstviewwindow.h 1.4
M +1 -0 testview.h 1.7
--- kdeextragear-2/kst/kst/kstviewwindow.cpp #1.1:1.2
@@ -69,5 +69,5 @@ KstViewWindow::KstViewWindow(QWidget *pa
QVBoxLayout *vb = new QVBoxLayout(this);
vb->setAutoAdd(true);
- new TestView(this);
+ _view = new TestView(this);
}
@@ -131,4 +130,8 @@ void KstViewWindow::slotCopy() {
}
+KstTopLevelView *KstViewWindow::view() const {
+ return _view->view();
+}
+
#include "kstviewwindow.moc"
// vim: ts=2 sw=2 et
--- kdeextragear-2/kst/kst/kstviewwindow.h #1.3:1.4
@@ -29,4 +29,6 @@
#include "kstdataobject.h"
+#include "ksttoplevelview.h"
+#include "testview.h"
class QLabel;
@@ -44,4 +46,6 @@ class KstViewWindow : public KMdiChildVi
void togglePaused();
+ KstTopLevelView *view() const;
+
protected:
/** save options to the configuration file
@@ -106,4 +110,5 @@ class KstViewWindow : public KMdiChildVi
/** the configuration object of the application */
KConfig *config;
+ TestView *_view;
};
--- kdeextragear-2/kst/kst/testview.h #1.6:1.7
@@ -25,4 +25,5 @@ class TestView : public QWidget {
virtual ~TestView();
+ KstTopLevelView *view() const { return _view; }
private slots:
void new2dPlot();
More information about the Kst
mailing list