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

Peter Kümmel syntheticpp at gmx.net
Thu Sep 2 17:22:25 CEST 2010


SVN commit 1171059 by kuemmel:

remove "Create Layout" toolbutton

CCBUG:249799

 M  +0 -19     mainwindow.cpp  
 M  +0 -2      mainwindow.h  


--- branches/work/kst/portto4/kst/src/libkstapp/mainwindow.cpp #1171058:1171059
@@ -606,19 +606,6 @@
   }
 }
 
-
-void MainWindow::createLayout() {
-  View *view = tabWidget()->currentView();
-  QList<QGraphicsItem*> selectedItems = view->scene()->selectedItems();
-  if (!selectedItems.isEmpty()) {
-    ViewItem *viewItem = qgraphicsitem_cast<ViewItem*>(selectedItems.first());
-    Q_ASSERT(viewItem);
-    viewItem->createAutoLayout();
-  } else {
-    view->createLayout();
-  }
-}
-
 void MainWindow::createCurve() {
   DialogLauncher::self()->showCurveDialog();
 }
@@ -712,11 +699,6 @@
   _createSvgAct->setCheckable(true);
   connect(_createSvgAct, SIGNAL(triggered()), this, SLOT(createSvg()));
 
-  _createLayoutAct = new QAction(tr("&Layout"), this);
-  _createLayoutAct->setStatusTip(tr("Create a layout for the current item"));
-  _createLayoutAct->setIcon(QPixmap(":kst_gfx_layout.png"));
-//   _createLayoutAct->setEnabled(false);
-  connect(_createLayoutAct, SIGNAL(triggered()), this, SLOT(createLayout()));
 
   _createSharedAxisBoxAct = new QAction(tr("&Shared Axis Box"), this);
   _createSharedAxisBoxAct->setStatusTip(tr("Create a shared axis box for the current item"));
@@ -1019,7 +1001,6 @@
 
   _layoutToolBar->addSeparator();
 
-  _layoutToolBar->addAction(_createLayoutAct);
   _zoomToolBar->setVisible(true);
   _layoutToolBar->setVisible(true);
 
--- branches/work/kst/portto4/kst/src/libkstapp/mainwindow.h #1171058:1171059
@@ -109,7 +109,6 @@
     void createPicture();
     void createPlot();
     void createSvg();
-    void createLayout();
     void createSharedAxisBox();
 
     void createCurve();
@@ -187,7 +186,6 @@
     QAction *_createPictureAct;
     QAction *_createPlotAct;
     QAction *_createSvgAct;
-    QAction *_createLayoutAct;
     QAction *_createSharedAxisBoxAct;
 
     QAction *_aboutAct;


More information about the Kst mailing list