[Kst] branches/work/kst/kst1kde4/kst/src/libkstapp
Zongyi Zhang
freebody.kst at gmail.com
Sat Apr 24 01:54:10 CEST 2010
SVN commit 1118124 by zhang:
continue kst1kde4
M +8 -4 kst.cpp
M +1 -1 kst.h
--- branches/work/kst/kst1kde4/kst/src/libkstapp/kst.cpp #1118123:1118124
@@ -129,6 +129,7 @@
_updateThread = 0L;
_layoutToolBarMenu = new QToolButton(this);
+ _mouseToolBarMenu = new QToolButton(this);
mouseModeMenu = new QMenu(this);
//
@@ -348,7 +349,11 @@
_toolBar->addAction(_actionTiedZoom);
_toolBar->addAction(_actionDataMode);
- _layoutToolBarMenu->setMenu(mouseModeMenu);
+ _mouseToolBarMenu->setMenu(mouseModeMenu);
+ _mouseToolBarMenu->setPopupMode(QToolButton::InstantPopup);
+ _toolBar->addWidget(_mouseToolBarMenu);
+
+ _layoutToolBarMenu->setMenu(_menuLayoutMode);
_layoutToolBarMenu->setPopupMode(QToolButton::InstantPopup);
_toolBar->addWidget(_layoutToolBarMenu);
}
@@ -404,7 +409,8 @@
_actionZoomXY->setIcon(QIcon((":/kst_zoomxy.png")));
_actionTiedZoom->setIcon(QIcon((":/kst_zoomtie.png")));
_actionDataMode->setIcon(QIcon((":/kst_datamode.png")));
- _layoutToolBarMenu->setIcon(QIcon((":/kst_zoomxy.png")));
+ _layoutToolBarMenu->setIcon(QIcon((":/kst_layoutmode.png")));
+ _mouseToolBarMenu->setIcon(QIcon((":/kst_zoomxy.png")));
_actionGfxArrow->setIcon(QIcon((":/kst_gfx_arrow.png")));
_actionGfxRectangle->setIcon(QIcon((":/kst_gfx_rectangle.png")));
@@ -520,8 +526,6 @@
mouseModeMenu->addAction(_actionZoomXY);
mouseModeMenu->addAction(_actionZoomX);
mouseModeMenu->addAction(_actionZoomY);
- mouseModeMenu->addSeparator();
- mouseModeMenu->addMenu(_menuLayoutMode);
/* xxx
toolBar()->insertButton("thumbnail", MODE_BUTTON_ID, mouseModeMenu, true, QObject::tr("Select the desired mode"));
--- branches/work/kst/kst1kde4/kst/src/libkstapp/kst.h #1118123:1118124
@@ -322,7 +322,7 @@
QToolBar *_toolBar;
QMenuBar *_menuBar;
QMdiArea *_mdiArea;
- QToolButton *_layoutToolBarMenu;
+ QToolButton *_layoutToolBarMenu, *_mouseToolBarMenu;
QMenu *mouseModeMenu;
// xxx KstIfaceImpl *_dcopIface;
More information about the Kst
mailing list