mirror of
https://github.com/NohamR/Reclass.git
synced 2026-05-10 19:59:21 +00:00
fix: commit missing selectPage() for OptionsDialog
This commit is contained in:
@@ -207,6 +207,16 @@ OptionsDialog::OptionsDialog(const OptionsResult& current, QWidget* parent)
|
||||
|
||||
}
|
||||
|
||||
void OptionsDialog::selectPage(int index) {
|
||||
for (auto it = m_itemPageIndex.begin(); it != m_itemPageIndex.end(); ++it) {
|
||||
if (it.value() == index) {
|
||||
m_tree->setCurrentItem(it.key());
|
||||
m_pages->setCurrentIndex(index);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
OptionsResult OptionsDialog::result() const {
|
||||
OptionsResult r;
|
||||
r.themeIndex = m_themeCombo->currentIndex();
|
||||
|
||||
@@ -27,6 +27,7 @@ public:
|
||||
explicit OptionsDialog(const OptionsResult& current, QWidget* parent = nullptr);
|
||||
|
||||
OptionsResult result() const;
|
||||
void selectPage(int index);
|
||||
|
||||
private:
|
||||
void filterTree(const QString& text);
|
||||
|
||||
Reference in New Issue
Block a user