Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
VideoLAN
VLMC
Commits
10fef33c
Commit
10fef33c
authored
Mar 26, 2009
by
Christophe Courtaut
Browse files
Integrating Preferences call in Mainwindow menu
parent
3471d454
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/gui/MainWindow.cpp
View file @
10fef33c
...
...
@@ -84,3 +84,9 @@ void MainWindow::on_actionQuit_triggered()
{
QApplication
::
quit
();
}
void
MainWindow
::
on_actionPreferences_triggered
()
{
Preferences
*
pref
=
new
Preferences
();
\
pref
->
show
();
}
src/gui/MainWindow.h
View file @
10fef33c
...
...
@@ -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
src/gui/ui/MainWindow.ui
View file @
10fef33c
...
...
@@ -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>
2
6
</height>
<height>
2
3
</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/>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment