Skip to content

Commit

Permalink
Make QgsOptionsDialogBase's slots virtual for overriding in derived c…
Browse files Browse the repository at this point in the history
…lases with non-standard tabs (fixes broken tab behaviour in Plugin manager)
  • Loading branch information
borysiasty committed Nov 6, 2017
1 parent 17aa88c commit 966e2d6
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
7 changes: 4 additions & 3 deletions python/gui/qgsoptionsdialogbase.sip
Expand Up @@ -127,9 +127,10 @@ class QgsOptionsDialogBase : QDialog
%End %End


protected slots: protected slots:
void updateOptionsListVerticalTabs(); virtual void updateOptionsListVerticalTabs();
void optionsStackedWidget_CurrentChanged( int indx ); virtual void optionsStackedWidget_CurrentChanged( int indx );
void optionsStackedWidget_WidgetRemoved( int indx ); virtual void optionsStackedWidget_WidgetRemoved( int indx );

void warnAboutMissingObjects(); void warnAboutMissingObjects();


protected: protected:
Expand Down
2 changes: 1 addition & 1 deletion src/app/pluginmanager/qgspluginmanager.h
Expand Up @@ -172,7 +172,7 @@ class QgsPluginManager : public QgsOptionsDialogBase, private Ui::QgsPluginManag
void showHelp(); void showHelp();


//! Reimplement QgsOptionsDialogBase method to prevent modifying the tab list by signals from the stacked widget //! Reimplement QgsOptionsDialogBase method to prevent modifying the tab list by signals from the stacked widget
void optionsStackedWidget_CurrentChanged( int indx ) { Q_UNUSED( indx ) } void optionsStackedWidget_CurrentChanged( int indx ) override { Q_UNUSED( indx ) };


//! Only show plugins from selected repository (e.g. for inspection) //! Only show plugins from selected repository (e.g. for inspection)
void setRepositoryFilter(); void setRepositoryFilter();
Expand Down
7 changes: 4 additions & 3 deletions src/gui/qgsoptionsdialogbase.h
Expand Up @@ -158,9 +158,10 @@ class GUI_EXPORT QgsOptionsDialogBase : public QDialog
void searchText( const QString &text ); void searchText( const QString &text );


protected slots: protected slots:
void updateOptionsListVerticalTabs(); virtual void updateOptionsListVerticalTabs();
void optionsStackedWidget_CurrentChanged( int indx ); virtual void optionsStackedWidget_CurrentChanged( int indx );
void optionsStackedWidget_WidgetRemoved( int indx ); virtual void optionsStackedWidget_WidgetRemoved( int indx );

void warnAboutMissingObjects(); void warnAboutMissingObjects();


protected: protected:
Expand Down

0 comments on commit 966e2d6

Please sign in to comment.