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

George Staikos staikos at kde.org
Wed Jul 18 08:17:14 CEST 2007


SVN commit 689380 by staikos:

how to make toolbars work


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


--- branches/work/kst/portto4/kst/src/libkstapp/mainwindow.cpp #689379:689380
@@ -58,7 +58,7 @@
 
   createActions();
   createMenus();
-//   createToolBars();
+  createToolBars();
   createStatusBar();
 
   readSettings();
@@ -391,6 +391,7 @@
   connect(_aboutQtAct, SIGNAL(triggered()), qApp, SLOT(aboutQt()));
 }
 
+
 void MainWindow::createMenus() {
   _fileMenu = menuBar()->addMenu(tr("&File"));
   _fileMenu->addAction(_newTabAct);
@@ -441,6 +442,10 @@
 void MainWindow::createToolBars() {
   _fileToolBar = addToolBar(tr("File"));
   _editToolBar = addToolBar(tr("Edit"));
+  _kstToolBar = addToolBar(tr("Kst"));
+
+  // Hook up the kst toolbar
+  _kstToolBar->addAction(_dataManagerAct);
 }
 
 
--- branches/work/kst/portto4/kst/src/libkstapp/mainwindow.h #689379:689380
@@ -108,6 +108,7 @@
     // Do we need these?  I don't think so...
     QToolBar *_fileToolBar;
     QToolBar *_editToolBar;
+    QToolBar *_kstToolBar;
 
     QAction *_undoAct;
     QAction *_redoAct;


More information about the Kst mailing list