Commit 2890aa1b authored by Ludovic Fauvet's avatar Ludovic Fauvet

GUI: fullscreen mode

parent ed59ed1e
...@@ -187,3 +187,11 @@ void MainWindow::zoomOut() ...@@ -187,3 +187,11 @@ void MainWindow::zoomOut()
{ {
m_zoomSlider->setValue( m_zoomSlider->value() + 1 ); m_zoomSlider->setValue( m_zoomSlider->value() + 1 );
} }
void MainWindow::on_actionFullscreen_triggered( bool checked )
{
if ( checked )
showFullScreen();
else
showNormal();
}
...@@ -60,6 +60,7 @@ private: ...@@ -60,6 +60,7 @@ private:
Timeline* m_timeline; Timeline* m_timeline;
private slots: private slots:
void on_actionFullscreen_triggered( bool checked );
void on_actionQuit_triggered(); void on_actionQuit_triggered();
void on_actionAbout_triggered(); void on_actionAbout_triggered();
void on_actionPreferences_triggered(); void on_actionPreferences_triggered();
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
<string>VideoLAN Movie Creator</string> <string>VideoLAN Movie Creator</string>
</property> </property>
<property name="windowIcon"> <property name="windowIcon">
<iconset resource="../../../ressources.qrc"> <iconset>
<normaloff>:/images/images/vlmc.png</normaloff>:/images/images/vlmc.png</iconset> <normaloff>:/images/images/vlmc.png</normaloff>:/images/images/vlmc.png</iconset>
</property> </property>
<property name="dockNestingEnabled"> <property name="dockNestingEnabled">
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>800</width> <width>800</width>
<height>27</height> <height>26</height>
</rect> </rect>
</property> </property>
<widget class="QMenu" name="menuFile"> <widget class="QMenu" name="menuFile">
...@@ -49,6 +49,7 @@ ...@@ -49,6 +49,7 @@
<property name="title"> <property name="title">
<string>View</string> <string>View</string>
</property> </property>
<addaction name="actionFullscreen"/>
</widget> </widget>
<widget class="QMenu" name="menuEffets"> <widget class="QMenu" name="menuEffets">
<property name="title"> <property name="title">
...@@ -147,9 +148,18 @@ ...@@ -147,9 +148,18 @@
<string>Ctrl+O</string> <string>Ctrl+O</string>
</property> </property>
</action> </action>
<action name="actionFullscreen">
<property name="checkable">
<bool>true</bool>
</property>
<property name="text">
<string>Fullscreen</string>
</property>
<property name="shortcut">
<string>F</string>
</property>
</action>
</widget> </widget>
<resources> <resources/>
<include location="../../../ressources.qrc"/>
</resources>
<connections/> <connections/>
</ui> </ui>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment