added full screen mode #171
This commit is contained in:
@@ -223,6 +223,7 @@ MainWindow::MainWindow(QWidget *parent) :
|
||||
connect(ui->actionCop_y, SIGNAL(triggered(bool)), this, SLOT(copy()));
|
||||
connect(ui->action_Paste, SIGNAL(triggered(bool)), this, SLOT(paste()));
|
||||
connect(ui->actionProject, SIGNAL(triggered(bool)), this, SLOT(new_project()));
|
||||
connect(ui->actionFull_Screen, SIGNAL(triggered(bool)), this, SLOT(toggle_full_screen()));
|
||||
}
|
||||
|
||||
MainWindow::~MainWindow() {
|
||||
@@ -677,6 +678,8 @@ void MainWindow::viewMenu_About_To_Be_Shown() {
|
||||
ui->action4_3->setChecked(config.show_title_safe_area && config.use_custom_title_safe_ratio && config.custom_title_safe_ratio == 4.0/3.0);
|
||||
ui->action16_9->setChecked(config.show_title_safe_area && config.use_custom_title_safe_ratio && config.custom_title_safe_ratio == 16.0/9.0);
|
||||
ui->actionCustom->setChecked(config.show_title_safe_area && config.use_custom_title_safe_ratio && !ui->action4_3->isChecked() && !ui->action16_9->isChecked());
|
||||
|
||||
ui->actionFull_Screen->setChecked(windowState() == Qt::WindowFullScreen);
|
||||
}
|
||||
|
||||
void MainWindow::on_actionFrames_triggered()
|
||||
@@ -826,6 +829,14 @@ void MainWindow::on_actionClear_In_Out_triggered() {
|
||||
}
|
||||
}
|
||||
|
||||
void MainWindow::toggle_full_screen() {
|
||||
if (windowState() == Qt::WindowFullScreen) {
|
||||
setWindowState(Qt::WindowMaximized);
|
||||
} else {
|
||||
setWindowState(Qt::WindowFullScreen);
|
||||
}
|
||||
}
|
||||
|
||||
void MainWindow::on_actionDelete_In_Out_triggered()
|
||||
{
|
||||
if (panel_timeline->focused()) {
|
||||
|
||||
@@ -32,6 +32,7 @@ public slots:
|
||||
void autorecover_interval();
|
||||
void on_actionNest_triggered();
|
||||
void on_actionClear_In_Out_triggered();
|
||||
void toggle_full_screen();
|
||||
|
||||
protected:
|
||||
void closeEvent(QCloseEvent *);
|
||||
|
||||
@@ -147,6 +147,8 @@
|
||||
<addaction name="actionMilliseconds"/>
|
||||
<addaction name="separator"/>
|
||||
<addaction name="menuTitle_Action_Safe_Area"/>
|
||||
<addaction name="separator"/>
|
||||
<addaction name="actionFull_Screen"/>
|
||||
</widget>
|
||||
<widget class="QMenu" name="menuPlayback">
|
||||
<property name="title">
|
||||
@@ -934,6 +936,17 @@
|
||||
<string>Enable Hover Focus for Zooming</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionFull_Screen">
|
||||
<property name="checkable">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Full Screen</string>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string>F11</string>
|
||||
</property>
|
||||
</action>
|
||||
</widget>
|
||||
<layoutdefault spacing="6" margin="11"/>
|
||||
<resources/>
|
||||
|
||||
Reference in New Issue
Block a user