Commit 10fef33c authored by Christophe Courtaut's avatar Christophe Courtaut

Integrating Preferences call in Mainwindow menu

parent 3471d454
......@@ -84,3 +84,9 @@ void MainWindow::on_actionQuit_triggered()
{
QApplication::quit();
}
void MainWindow::on_actionPreferences_triggered()
{
Preferences* pref = new Preferences();\
pref->show();
}
......@@ -28,6 +28,7 @@
#include "LibraryWidget.h"
#include "PreviewWidget.h"
#include "DockWidgetManager.h"
#include "Preferences.h"
class MainWindow : public QMainWindow
{
......@@ -49,6 +50,8 @@ private:
private slots:
void on_actionQuit_triggered();
};
void on_actionPreferences_triggered();
}
;
#endif // MAINWINDOW_H
......@@ -13,6 +13,9 @@
<property name="windowTitle">
<string>VideoLAN Movie Creator</string>
</property>
<property name="locale">
<locale language="French" country="France"/>
</property>
<property name="dockNestingEnabled">
<bool>true</bool>
</property>
......@@ -23,7 +26,7 @@
<x>0</x>
<y>0</y>
<width>800</width>
<height>26</height>
<height>23</height>
</rect>
</property>
<widget class="QMenu" name="menuFile">
......@@ -36,6 +39,7 @@
<property name="title">
<string>Edit</string>
</property>
<addaction name="actionPreferences"/>
</widget>
<widget class="QMenu" name="menuView">
<property name="title">
......@@ -89,6 +93,11 @@
<string>Help</string>
</property>
</action>
<action name="actionPreferences">
<property name="text">
<string>Preferences</string>
</property>
</action>
</widget>
<resources/>
<connections/>
......
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