[Kst] branches/work/kst/portto4/kst/src/libkstapp

Adam Treat treat at kde.org
Thu Sep 6 23:20:19 CEST 2007


SVN commit 709220 by treat:

* Get rid of unneeded demo now.


 M  +0 -28     mainwindow.cpp  
 M  +0 -1      mainwindow.h  


--- branches/work/kst/portto4/kst/src/libkstapp/mainwindow.cpp #709219:709220
@@ -39,8 +39,6 @@
 #include "kstdataobjectcollection.h"
 #include "kstequation.h"
 
-#include "viewgridlayout.h"
-
 namespace Kst {
 
 MainWindow::MainWindow() {
@@ -355,28 +353,6 @@
 }
 
 
-void MainWindow::demoPlotLayout() {
-
-  View *v = tabWidget()->currentView();
-
-  ViewItem *viewItem = new ViewItem(v);
-  v->scene()->addItem(viewItem);
-  viewItem->setZValue(1);
-
-  ViewGridLayout *layout = new ViewGridLayout(viewItem);
-
-  int r = 0; int c = 0;
-  foreach (QGraphicsItem *item, v->items()) {
-    if (PlotItem *plotItem = qgraphicsitem_cast<PlotItem*>(item)) {
-      plotItem->setParentItem(viewItem);
-      layout->addViewItem(plotItem, r++, c++);
-    }
-  }
-
-  viewItem->setViewRect(QRectF(0,0,300,300));
-}
-
-
 void MainWindow::demoModel() {
   KstVectorPtr v = new KstVector;
   v->resize(999999);
@@ -570,10 +546,6 @@
   // FIXME: remove this later.
   QMenu *demoMenu = menuBar()->addMenu("&Demo");
 
-  QAction *demoLayout = new QAction("Plot layout", this);
-  connect(demoLayout, SIGNAL(triggered()), this, SLOT(demoPlotLayout()));
-  demoMenu->addAction(demoLayout);
-
   QAction *demoModel = new QAction("Vector model", this);
   connect(demoModel, SIGNAL(triggered()), this, SLOT(demoModel()));
   demoMenu->addAction(demoModel);
--- branches/work/kst/portto4/kst/src/libkstapp/mainwindow.h #709219:709220
@@ -71,7 +71,6 @@
     void createLayout();
     void breakLayout();
 
-    void demoPlotLayout();
     void demoModel();
 
     void performHeavyStartupActions();


More information about the Kst mailing list