mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-26 00:02:08 -05:00
Added icon to spit menu.
Minor comment revisions git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@1257 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
parent
6616618ae2
commit
22da6ac3db
@ -71,7 +71,7 @@ void QgsSpitPlugin::initGui()
|
||||
// add a menu with 2 items
|
||||
QPopupMenu *pluginMenu = new QPopupMenu(qgisMainWindow);
|
||||
|
||||
pluginMenu->insertItem("&Import Shapefiles to PostgreSQL", this, SLOT(spit()));
|
||||
pluginMenu->insertItem(QIconSet(spitIcon),"&Import Shapefiles to PostgreSQL", this, SLOT(spit()));
|
||||
// pluginMenu->insertItem("&Unload SPIT Plugin", this, SLOT(unload()));
|
||||
|
||||
menu = ((QMainWindow *) qgisMainWindow)->menuBar();
|
||||
@ -81,12 +81,12 @@ void QgsSpitPlugin::initGui()
|
||||
// Create the action for tool
|
||||
QAction *spitAction = new QAction("Import Shapefiles to PostgreSQL", QIconSet(spitIcon), "&SPIT",
|
||||
0, this, "spit");
|
||||
// Connect the action to the zoomPrevous slot
|
||||
// Connect the action to the spit slot
|
||||
connect(spitAction, SIGNAL(activated()), this, SLOT(spit()));
|
||||
// Add the toolbar
|
||||
toolBar = new QToolBar((QMainWindow *) qgisMainWindow, "spit");
|
||||
toolBar->setLabel("SPIT");
|
||||
// Add the zoom previous tool to the toolbar
|
||||
// Add the spit tool to the toolbar
|
||||
spitAction->addTo(toolBar);
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user