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
Steve Lhomme
VLC
Commits
ccacddbd
Commit
ccacddbd
authored
Jun 03, 2006
by
zorglub
Browse files
* Fix crash
* Add a prefs button
parent
04e52ef4
Changes
2
Hide whitespace changes
Inline
Side-by-side
modules/gui/qt4/dialogs/prefs_dialog.cpp
View file @
ccacddbd
...
...
@@ -60,7 +60,6 @@ PrefsDialog::PrefsDialog( intf_thread_t *_p_intf ) : QVLCFrame( _p_intf )
types
->
setLayout
(
tl
);
layout
->
addLayout
(
vertical
,
1
);
setAll
();
all
->
setChecked
(
true
);
...
...
@@ -68,6 +67,8 @@ PrefsDialog::PrefsDialog( intf_thread_t *_p_intf ) : QVLCFrame( _p_intf )
adv_chk
=
new
QCheckBox
(
"Advanced options"
);
main_layout
->
addWidget
(
adv_chk
);
setAll
();
QObject
::
connect
(
adv_chk
,
SIGNAL
(
toggled
(
bool
)
),
this
,
SLOT
(
setAdvanced
(
bool
)
)
);
setLayout
(
main_layout
);
...
...
modules/gui/qt4/main_interface.cpp
View file @
ccacddbd
...
...
@@ -26,6 +26,7 @@
#include "dialogs_provider.hpp"
#include <QCloseEvent>
#include <assert.h>
#include <QPushButton>
MainInterface
::
MainInterface
(
intf_thread_t
*
_p_intf
)
:
QWidget
(
NULL
),
p_intf
(
_p_intf
)
...
...
@@ -36,6 +37,12 @@ MainInterface::MainInterface( intf_thread_t *_p_intf ) :
/* Init input manager */
p_input
=
NULL
;
main_input_manager
=
new
InputManager
(
this
,
p_intf
);
QPushButton
*
button
=
new
QPushButton
(
"prefs"
,
this
);
QObject
::
connect
(
button
,
SIGNAL
(
clicked
()
),
DialogsProvider
::
getInstance
(
p_intf
),
SLOT
(
prefsDialog
()
)
);
}
void
MainInterface
::
init
()
...
...
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