@@ -84,11 +84,11 @@ QgsVectorLayerProperties::QgsVectorLayerProperties(
84
84
85
85
QPushButton* b = new QPushButton ( tr ( " Style" ) );
86
86
QMenu* m = new QMenu ( this );
87
- mActionLoadStyle = m->addAction ( tr ( " Load Style..." ), this , SLOT ( on_pbnLoadStyle_clicked () ) );
88
- mActionSaveStyleAs = m->addAction ( tr ( " Save Style..." ), this , SLOT ( on_pbnSaveStyleAs_clicked () ) );
87
+ mActionLoadStyle = m->addAction ( tr ( " Load Style..." ), this , SLOT ( loadStyle_clicked () ) );
88
+ mActionSaveStyleAs = m->addAction ( tr ( " Save Style..." ), this , SLOT ( saveStyleAs_clicked () ) );
89
89
m->addSeparator ();
90
- m->addAction ( tr ( " Save As Default" ), this , SLOT ( on_pbnSaveDefaultStyle_clicked () ) );
91
- m->addAction ( tr ( " Restore Default" ), this , SLOT ( on_pbnLoadDefaultStyle_clicked () ) );
90
+ m->addAction ( tr ( " Save As Default" ), this , SLOT ( saveDefaultStyle_clicked () ) );
91
+ m->addAction ( tr ( " Restore Default" ), this , SLOT ( loadDefaultStyle_clicked () ) );
92
92
b->setMenu ( m );
93
93
connect ( m, SIGNAL ( aboutToShow () ), this , SLOT ( aboutToShowStyleMenu () ) );
94
94
buttonBox->addButton ( b, QDialogButtonBox::ResetRole );
@@ -669,7 +669,7 @@ void QgsVectorLayerProperties::on_mCrsSelector_crsChanged( QgsCoordinateReferenc
669
669
layer->setCrs ( crs );
670
670
}
671
671
672
- void QgsVectorLayerProperties::on_pbnLoadDefaultStyle_clicked ()
672
+ void QgsVectorLayerProperties::loadDefaultStyle_clicked ()
673
673
{
674
674
QString msg;
675
675
bool defaultLoadedFlag = false ;
@@ -727,7 +727,7 @@ void QgsVectorLayerProperties::on_pbnLoadDefaultStyle_clicked()
727
727
}
728
728
}
729
729
730
- void QgsVectorLayerProperties::on_pbnSaveDefaultStyle_clicked ()
730
+ void QgsVectorLayerProperties::saveDefaultStyle_clicked ()
731
731
{
732
732
apply ();
733
733
QString errorMsg;
@@ -766,7 +766,7 @@ void QgsVectorLayerProperties::on_pbnSaveDefaultStyle_clicked()
766
766
}
767
767
768
768
769
- void QgsVectorLayerProperties::on_pbnLoadStyle_clicked ()
769
+ void QgsVectorLayerProperties::loadStyle_clicked ()
770
770
{
771
771
QSettings myQSettings; // where we keep last used filter in persistent state
772
772
QString myLastUsedDir = myQSettings.value ( " style/lastStyleDir" , " ." ).toString ();
@@ -809,7 +809,7 @@ void QgsVectorLayerProperties::on_pbnLoadStyle_clicked()
809
809
}
810
810
811
811
812
- void QgsVectorLayerProperties::on_pbnSaveStyleAs_clicked ()
812
+ void QgsVectorLayerProperties::saveStyleAs_clicked ()
813
813
{
814
814
saveStyleAs ( QML );
815
815
}
@@ -937,11 +937,11 @@ void QgsVectorLayerProperties::loadStyleMenuTriggered( QAction *action )
937
937
938
938
if ( index == 0 ) // Load from filesystem
939
939
{
940
- this -> on_pbnLoadStyle_clicked ();
940
+ loadStyle_clicked ();
941
941
}
942
942
else if ( index == 1 ) // Load from database
943
943
{
944
- this -> showListOfStylesFromDatabase ();
944
+ showListOfStylesFromDatabase ();
945
945
}
946
946
947
947
}
@@ -1117,7 +1117,7 @@ void QgsVectorLayerProperties::updateSymbologyPage()
1117
1117
// display the menu to choose the output format (fix #5136)
1118
1118
mActionSaveStyleAs ->setText ( tr ( " Save Style" ) );
1119
1119
mActionSaveStyleAs ->setMenu ( mSaveAsMenu );
1120
- QObject::disconnect ( mActionSaveStyleAs , SIGNAL ( triggered () ), this , SLOT ( on_pbnSaveStyleAs_clicked () ) );
1120
+ QObject::disconnect ( mActionSaveStyleAs , SIGNAL ( triggered () ), this , SLOT ( saveStyleAs_clicked () ) );
1121
1121
}
1122
1122
else
1123
1123
{
0 commit comments