Skip to content

Commit 73f2d0d

Browse files
committedDec 20, 2011
move database plugins buttons to the Database toolbar
1 parent 4dc50e7 commit 73f2d0d

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed
 

‎src/plugins/offline_editing/offline_editing_plugin.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,14 +57,14 @@ void QgsOfflineEditingPlugin::initGui()
5757
// Connect the action to the run
5858
connect( mActionConvertProject, SIGNAL( triggered() ), this, SLOT( convertProject() ) );
5959
// Add the icon to the toolbar
60-
mQGisIface->addToolBarIcon( mActionConvertProject );
60+
mQGisIface->addDatabaseToolBarIcon( mActionConvertProject );
6161
mQGisIface->addPluginToDatabaseMenu( tr( "&Offline Editing" ), mActionConvertProject );
6262
mActionConvertProject->setEnabled( false );
6363

6464
mActionSynchronize = new QAction( QIcon( ":/offline_editing/offline_editing_sync.png" ), tr( "Synchronize" ), this );
6565
mActionSynchronize->setWhatsThis( tr( "Synchronize offline project with remote layers" ) );
6666
connect( mActionSynchronize, SIGNAL( triggered() ), this, SLOT( synchronize() ) );
67-
mQGisIface->addToolBarIcon( mActionSynchronize );
67+
mQGisIface->addDatabaseToolBarIcon( mActionSynchronize );
6868
mQGisIface->addPluginToDatabaseMenu( tr( "&Offline Editing" ), mActionSynchronize );
6969
mActionSynchronize->setEnabled( false );
7070

@@ -116,9 +116,9 @@ void QgsOfflineEditingPlugin::unload()
116116

117117
// remove the GUI
118118
mQGisIface->removePluginDatabaseMenu( tr( "&Offline Editing" ), mActionConvertProject );
119-
mQGisIface->removeToolBarIcon( mActionConvertProject );
119+
mQGisIface->removeDatabaseToolBarIcon( mActionConvertProject );
120120
mQGisIface->removePluginDatabaseMenu( tr( "&Offline Editing" ), mActionSynchronize );
121-
mQGisIface->removeToolBarIcon( mActionSynchronize );
121+
mQGisIface->removeDatabaseToolBarIcon( mActionSynchronize );
122122
delete mActionConvertProject;
123123
delete mActionSynchronize;
124124
}

‎src/plugins/spit/qgsspitplugin.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ void QgsSpitPlugin::initGui()
6969
// Connect the action to the spit slot
7070
connect( spitAction, SIGNAL( triggered() ), this, SLOT( spit() ) );
7171
// Add the icon to the toolbar and to the plugin menu
72-
qI->addToolBarIcon( spitAction );
72+
qI->addDatabaseToolBarIcon( spitAction );
7373
qI->addPluginToDatabaseMenu( tr( "&Spit" ), spitAction );
7474

7575
// this is called when the icon theme is changed
@@ -89,7 +89,7 @@ void QgsSpitPlugin::spit()
8989
void QgsSpitPlugin::unload()
9090
{
9191
// remove the GUI
92-
qI->removeToolBarIcon( spitAction );
92+
qI->removeDatabaseToolBarIcon( spitAction );
9393
qI->removePluginDatabaseMenu( tr( "&Spit" ), spitAction );
9494
delete spitAction;
9595
}

0 commit comments

Comments
 (0)
Please sign in to comment.