Make QgsOptionsDialogBase's slots virtual for overriding in derived clases with non-standard tabs (fixes broken tab behaviour in Plugin manager)

This commit is contained in:
Borys Jurgiel 2017-11-06 14:26:43 +01:00
parent 17aa88cdec
commit 966e2d6639
3 changed files with 9 additions and 7 deletions

View File

@ -127,9 +127,10 @@ class QgsOptionsDialogBase : QDialog
%End
protected slots:
void updateOptionsListVerticalTabs();
void optionsStackedWidget_CurrentChanged( int indx );
void optionsStackedWidget_WidgetRemoved( int indx );
virtual void updateOptionsListVerticalTabs();
virtual void optionsStackedWidget_CurrentChanged( int indx );
virtual void optionsStackedWidget_WidgetRemoved( int indx );
void warnAboutMissingObjects();
protected:

View File

@ -172,7 +172,7 @@ class QgsPluginManager : public QgsOptionsDialogBase, private Ui::QgsPluginManag
void showHelp();
//! 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)
void setRepositoryFilter();

View File

@ -158,9 +158,10 @@ class GUI_EXPORT QgsOptionsDialogBase : public QDialog
void searchText( const QString &text );
protected slots:
void updateOptionsListVerticalTabs();
void optionsStackedWidget_CurrentChanged( int indx );
void optionsStackedWidget_WidgetRemoved( int indx );
virtual void updateOptionsListVerticalTabs();
virtual void optionsStackedWidget_CurrentChanged( int indx );
virtual void optionsStackedWidget_WidgetRemoved( int indx );
void warnAboutMissingObjects();
protected: