Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-1.1
Commits
c3ce1f59
Commit
c3ce1f59
authored
Mar 13, 2007
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt4 - Preferences : Reset preferences.
parent
d237ad88
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
27 additions
and
8 deletions
+27
-8
modules/gui/qt4/components/simple_preferences.cpp
modules/gui/qt4/components/simple_preferences.cpp
+2
-2
modules/gui/qt4/dialogs/prefs_dialog.cpp
modules/gui/qt4/dialogs/prefs_dialog.cpp
+24
-6
modules/gui/qt4/dialogs/prefs_dialog.hpp
modules/gui/qt4/dialogs/prefs_dialog.hpp
+1
-0
No files found.
modules/gui/qt4/components/simple_preferences.cpp
View file @
c3ce1f59
...
...
@@ -142,8 +142,8 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent,
// Title Label
QLabel
*
panel_label
=
new
QLabel
;
QFont
labelFont
=
QApplication
::
font
(
static_cast
<
QWidget
*>
(
0
)
);
labelFont
.
setPointSize
(
labelFont
.
pointSize
()
+
4
);
labelFont
.
set
Bold
(
true
);
labelFont
.
setPointSize
(
labelFont
.
pointSize
()
+
6
);
labelFont
.
set
Family
(
"Verdana"
);
panel_label
->
setFont
(
labelFont
);
// Title <hr>
...
...
modules/gui/qt4/dialogs/prefs_dialog.cpp
View file @
c3ce1f59
...
...
@@ -36,6 +36,8 @@
#include <QPushButton>
#include <QCheckBox>
#include <QScrollArea>
#include <QMessageBox>
PrefsDialog
*
PrefsDialog
::
instance
=
NULL
;
...
...
@@ -43,9 +45,9 @@ PrefsDialog::PrefsDialog( intf_thread_t *_p_intf ) : QVLCFrame( _p_intf )
{
QGridLayout
*
main_layout
=
new
QGridLayout
(
this
);
setWindowTitle
(
qtr
(
"Preferences"
)
);
resize
(
8
00
,
650
);
resize
(
7
00
,
650
);
setMaximumHeight
(
650
);
setMaximumWidth
(
8
00
);
setMaximumWidth
(
7
00
);
tree_panel
=
new
QWidget
(
0
);
tree_panel_l
=
new
QHBoxLayout
;
...
...
@@ -82,17 +84,18 @@ PrefsDialog::PrefsDialog( intf_thread_t *_p_intf ) : QVLCFrame( _p_intf )
setSmall
();
QPushButton
*
save
,
*
cancel
;
QPushButton
*
save
,
*
cancel
,
*
reset
;
QHBoxLayout
*
buttonsLayout
=
QVLCFrame
::
doButtons
(
this
,
NULL
,
&
save
,
_
(
"Save"
),
&
cancel
,
_
(
"Cancel"
),
NULL
,
NULL
);
&
save
,
_
(
"Save"
),
&
cancel
,
_
(
"Cancel"
),
&
reset
,
_
(
"Reset Preferences"
)
);
main_layout
->
addLayout
(
buttonsLayout
,
4
,
0
,
1
,
3
);
setLayout
(
main_layout
);
BUTTONACT
(
save
,
save
()
);
BUTTONACT
(
cancel
,
cancel
()
);
BUTTONACT
(
reset
,
reset
()
);
BUTTONACT
(
small
,
setSmall
()
);
BUTTONACT
(
all
,
setAll
()
);
...
...
@@ -250,3 +253,18 @@ void PrefsDialog::cancel()
}
hide
();
}
void
PrefsDialog
::
reset
()
{
int
ret
=
QMessageBox
::
question
(
this
,
qtr
(
"Reset Preferences"
),
qtr
(
"This will reset your VLC media player preferences.
\n
"
"Are you sure you want to continue?"
),
QMessageBox
::
Ok
|
QMessageBox
::
Cancel
,
QMessageBox
::
Ok
);
if
(
ret
==
QMessageBox
::
Ok
)
{
config_ResetAll
(
p_intf
);
// TODO reset changes ?
config_SaveConfigFile
(
p_intf
,
NULL
);
}
}
modules/gui/qt4/dialogs/prefs_dialog.hpp
View file @
c3ce1f59
...
...
@@ -85,6 +85,7 @@ private slots:
void
setSmall
();
void
save
();
void
cancel
();
void
reset
();
};
#endif
Write
Preview
Markdown
is supported
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