Remove unnecessary wxNotebook::DoSetSelection() from wxQt

Having this method didn't really help, it's simpler and more
straightforward to implement ChangeSelection() as a signal-blocking
wrapper around SetSelection() instead.

No real changes in behaviour, this is a pure refactoring.
This commit is contained in:
Vadim Zeitlin
2019-01-28 17:51:27 +01:00
parent 6b11c372a1
commit 665b5a76a8
2 changed files with 16 additions and 13 deletions

View File

@@ -42,14 +42,13 @@ public:
virtual wxSize CalcSizeFromPage(const wxSize& sizePage) const;
int SetSelection(size_t nPage) { return DoSetSelection(nPage, SetSelection_SendEvent); }
int ChangeSelection(size_t nPage) { return DoSetSelection(nPage); }
int SetSelection(size_t nPage);
int ChangeSelection(size_t nPage);
virtual QWidget *GetHandle() const;
protected:
virtual wxWindow *DoRemovePage(size_t page);
int DoSetSelection(size_t nPage, int flags = 0);
private:
QTabWidget *m_qtTabWidget;