[Kst] branches/work/kst/portto4/kst/src/libkstapp
Adam Treat
treat at kde.org
Thu May 24 23:21:04 CEST 2007
SVN commit 668038 by treat:
* Break out
M +1 -0 CMakeLists.txt
M +1 -0 kstplotcommands.cpp
M +2 -2 kstplotcommands.h
A kstplotitems.cpp [License: GPL (v2+)]
A kstplotitems.h [License: GPL (v2+)]
M +0 -16 kstplotview.cpp
M +1 -14 kstplotview.h
--- branches/work/kst/portto4/kst/src/libkstapp/CMakeLists.txt #668037:668038
@@ -4,6 +4,7 @@
kstapplication.cpp
kstmainwindow.cpp
kstplotview.cpp
+ kstplotitems.cpp
kstplotcommands.cpp
)
--- branches/work/kst/portto4/kst/src/libkstapp/kstplotcommands.cpp #668037:668038
@@ -12,6 +12,7 @@
#include "kstplotcommands.h"
#include "kstapplication.h"
#include "kstplotview.h"
+#include "kstplotitems.h"
#include <QObject>
#include <QInputDialog>
--- branches/work/kst/portto4/kst/src/libkstapp/kstplotcommands.h #668037:668038
@@ -9,8 +9,8 @@
* *
***************************************************************************/
-#ifndef KSTPLOTCOMMAND_H
-#define KSTPLOTCOMMAND_H
+#ifndef KSTPLOTCOMMANDS_H
+#define KSTPLOTCOMMANDS_H
#include <QPointer>
#include <QUndoCommand>
--- branches/work/kst/portto4/kst/src/libkstapp/kstplotview.cpp #668037:668038
@@ -14,24 +14,8 @@
#include "kstapplication.h"
#include <QUndoStack>
-#include <QGraphicsItem>
#include <QGraphicsScene>
-
-KstPlotItem::KstPlotItem(KstPlotView *parent)
- : QObject(parent) {
-}
-
-
-KstPlotItem::~KstPlotItem() {
-}
-
-
-KstPlotView *KstPlotItem::parentView() const {
- return qobject_cast<KstPlotView*>(parent());
-}
-
-
KstPlotView::KstPlotView()
: QGraphicsView(kstApp->mainWindow()), _currentPlotItem(0) {
--- branches/work/kst/portto4/kst/src/libkstapp/kstplotview.h #668037:668038
@@ -12,26 +12,13 @@
#ifndef KSTPLOTVIEW_H
#define KSTPLOTVIEW_H
-#include <QObject>
#include <QGraphicsView>
#include "kst_export.h"
class QUndoStack;
-class KstPlotView;
+class KstPlotItem;
-class KST_EXPORT KstPlotItem : public QObject
-{
- Q_OBJECT
-public:
- KstPlotItem(KstPlotView *parent);
- virtual ~KstPlotItem();
-
- KstPlotView *parentView() const;
-
- virtual QGraphicsItem *graphicsItem() const = 0;
-};
-
class KST_EXPORT KstPlotView : public QGraphicsView
{
Q_OBJECT
More information about the Kst
mailing list