mirror of
https://github.com/huderlem/porymap.git
synced 2026-08-19 23:25:09 -05:00
change main tab for every click
This commit is contained in:
@@ -1208,6 +1208,8 @@ void MainWindow::on_action_Exit_triggered()
|
||||
|
||||
void MainWindow::on_mainTabBar_tabBarClicked(int index)
|
||||
{
|
||||
ui->mainTabBar->setCurrentIndex(index);
|
||||
|
||||
int tabIndexToStackIndex[5] = {0, 0, 1, 2, 3};
|
||||
ui->mainStackedWidget->setCurrentIndex(tabIndexToStackIndex[index]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user