Skip to content
Permalink
Browse files

Fix building with QT 5.5

  • Loading branch information
stev-0 authored and nyalldawson committed Sep 17, 2018
1 parent 0296c27 commit d99d506e75e47173c63a34f62486565d7bbbcc98
Showing with 5 additions and 3 deletions.
  1. +4 −2 src/app/qgsvectorlayerproperties.cpp
  2. +1 −1 src/app/qgsvectorlayerproperties.h
@@ -117,8 +117,10 @@ QgsVectorLayerProperties::QgsVectorLayerProperties(

mBtnStyle = new QPushButton( tr( "Style" ), this );
QMenu *menuStyle = new QMenu( this );
mActionLoadStyle = menuStyle->addAction( tr( "Load Style…" ), this, &QgsVectorLayerProperties::loadStyle );
menuStyle->addAction( tr( "Save Style…" ), this, &QgsVectorLayerProperties::saveStyleAs );
mActionLoadStyle = menuStyle->addAction( tr( "Load Style…" ) );
connect( mActionLoadStyle, &QAction::triggered, this, &QgsVectorLayerProperties::loadStyle );
mActionSaveStyle = menuStyle->addAction( tr( "Save Style…" ) );
connect( mActionSaveStyle, &QAction::triggered, this, &QgsVectorLayerProperties::saveStyleAs );
menuStyle->addSeparator();
menuStyle->addAction( tr( "Save as Default" ), this, SLOT( saveDefaultStyle_clicked() ) );
menuStyle->addAction( tr( "Restore Default" ), this, SLOT( loadDefaultStyle_clicked() ) );
@@ -195,7 +195,7 @@ class APP_EXPORT QgsVectorLayerProperties : public QgsOptionsDialogBase, private
QMenu *mLoadStyleMenu = nullptr;

QAction *mActionLoadStyle = nullptr;
QAction *mActionSaveStyleAs = nullptr;
QAction *mActionSaveStyle = nullptr;

//! Renderer dialog which is shown
QgsRendererPropertiesDialog *mRendererDialog = nullptr;

0 comments on commit d99d506

Please sign in to comment.
You can’t perform that action at this time.