Skip to content

Commit

Permalink
Gui: make tab position of combo view configurable and set it back to …
Browse files Browse the repository at this point in the history
…North by default
  • Loading branch information
wwmayer committed Oct 13, 2023
1 parent 46f8ad3 commit 19fcb32
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/Gui/MainWindow.cpp
Expand Up @@ -553,6 +553,15 @@ void MainWindow::setupDockWindows()
setupTaskView();

initDockWindows(false);

std::vector<QTabWidget::TabPosition> tabPos = {QTabWidget::North,
QTabWidget::South,
QTabWidget::West,
QTabWidget::East};
long value = d->hGrp->GetInt("LeftDockWidgetAreaTabPos", long(tabPos.front()));
if (value >= 0 && value < long(tabPos.size())) {
setTabPosition(Qt::LeftDockWidgetArea, tabPos[value]);
}
}

bool MainWindow::setupTaskView()
Expand Down

0 comments on commit 19fcb32

Please sign in to comment.