| 687 | } |
| 688 | |
| 689 | void MainWindow::on_actionFull_screen_F_triggered() |
| 690 | { |
| 691 | if(m_pView) |
| 692 | { |
| 693 | m_pView->SetFullScreen(!isFullScreen()); |
| 694 | } |
| 695 | |
| 696 | if(isFullScreen()) |
| 697 | { |
| 698 | qDebug(log) << "Exit full screen"; |
| 699 | ui->actionFull_screen_F->setIcon(QIcon::fromTheme("view-fullscreen")); |
| 700 | ui->actionFull_screen_F->setText(tr("Full screen")); |
| 701 | ui->actionFull_screen_F->setToolTip(tr("Full screen")); |
| 702 | ui->actionFull_screen_F->setStatusTip(tr("Full screen")); |
| 703 | ui->actionFull_screen_F->setWhatsThis(tr("Full screen")); |
| 704 | |
| 705 | ui->toolBar->setVisible(m_FullState.toolBar); |
| 706 | ui->statusbar->setVisible(m_FullState.statusbar); |
| 707 | ui->menubar->setVisible(m_FullState.menubar); |
| 708 | |
| 709 | m_pDockActive->setVisible(m_FullState.dockListActive); |
| 710 | m_pDockRecent->setVisible(m_FullState.dockListRecent); |
| 711 | m_pDockFavorite->setVisible(m_FullState.dockFavorite); |
| 712 | // TODO: This is hade code. it is in RabbitCommon |
| 713 | QDockWidget* pDockDebugLog = findChild<QDockWidget*>("dockDebugLog"); |
| 714 | if(pDockDebugLog) |
| 715 | { |
| 716 | pDockDebugLog->setVisible(m_FullState.dockDebugLog); |
| 717 | } |
| 718 | |
| 719 | if(m_pFullScreenToolBar) |
| 720 | { |
| 721 | // Delete it when the widget is close |
| 722 | m_pFullScreenToolBar->close(); |
| 723 | m_pFullScreenToolBar = nullptr; |
| 724 | } |
| 725 | |
| 726 | emit sigShowNormal(); |
| 727 | this->showNormal(); |
| 728 | this->activateWindow(); |
| 729 | |
| 730 | emit sigFullScreen(false); |
| 731 | return; |
| 732 | } |
| 733 | |
| 734 | qDebug(log) << "Entry full screen"; |
| 735 | |
| 736 | //setWindowFlags(Qt::FramelessWindowHint | windowFlags()); |
| 737 | this->showFullScreen(); |
| 738 | emit sigFullScreen(true); |
| 739 | |
| 740 | ui->actionFull_screen_F->setIcon(QIcon::fromTheme("view-restore")); |
| 741 | ui->actionFull_screen_F->setText(tr("Exit full screen")); |
| 742 | ui->actionFull_screen_F->setToolTip(tr("Exit full screen")); |
| 743 | ui->actionFull_screen_F->setStatusTip(tr("Exit full screen")); |
| 744 | ui->actionFull_screen_F->setWhatsThis(tr("Exit full screen")); |
| 745 | |
| 746 | m_FullState.toolBar = ui->toolBar->isVisible(); |
nothing calls this directly
no test coverage detected