diff --git a/saoriwindow.cpp b/saoriwindow.cpp index 515021b..6387050 100644 --- a/saoriwindow.cpp +++ b/saoriwindow.cpp @@ -136,3 +136,13 @@ openView(QStringList() << item->text(1) << item->text(2)); } } + +void SaoriWindow::on_actionTabbedView_mode_toggled(bool arg1) +{ + if (ui->mdiArea->viewMode() == QMdiArea::TabbedView) { + if (arg1 == false) ui->mdiArea->setViewMode(QMdiArea::SubWindowView); + } else { + if (arg1 == true) ui->mdiArea->setViewMode(QMdiArea::TabbedView); + } + return; +} diff --git a/saoriwindow.h b/saoriwindow.h index 50a86cb..6b3cdfe 100644 --- a/saoriwindow.h +++ b/saoriwindow.h @@ -56,6 +56,8 @@ private slots: void on_timelineTree_itemDoubleClicked(QTreeWidgetItem *item, int); + void on_actionTabbedView_mode_toggled(bool arg1); + private: Ui::SaoriWindow *ui; };