Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
46be9840
Commit
46be9840
authored
Nov 17, 2011
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt: consistency on QSettings value for OpenDialog
parent
78df4901
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
modules/gui/qt4/components/open_panels.cpp
modules/gui/qt4/components/open_panels.cpp
+2
-2
modules/gui/qt4/dialogs/open.cpp
modules/gui/qt4/dialogs/open.cpp
+4
-4
No files found.
modules/gui/qt4/components/open_panels.cpp
View file @
46be9840
...
...
@@ -591,7 +591,7 @@ NetOpenPanel::NetOpenPanel( QWidget *_parent, intf_thread_t *_p_intf ) :
if
(
var_InheritBool
(
p_intf
,
"qt-recentplay"
)
)
{
b_recentList
=
true
;
ui
.
urlComboBox
->
addItems
(
getSettings
()
->
value
(
"Open/netMRL"
).
toStringList
()
);
ui
.
urlComboBox
->
addItems
(
getSettings
()
->
value
(
"Open
Dialog
/netMRL"
).
toStringList
()
);
ui
.
urlComboBox
->
setMaxCount
(
10
);
}
else
...
...
@@ -614,7 +614,7 @@ NetOpenPanel::~NetOpenPanel()
/* Clean the list... */
mrlList
.
removeDuplicates
();
/* ...and save the 8 last entries */
getSettings
()
->
setValue
(
"Open/netMRL"
,
mrlList
);
getSettings
()
->
setValue
(
"Open
Dialog
/netMRL"
,
mrlList
);
}
void
NetOpenPanel
::
clear
()
...
...
modules/gui/qt4/dialogs/open.cpp
View file @
46be9840
...
...
@@ -166,7 +166,7 @@ OpenDialog::OpenDialog( QWidget *parent,
BUTTONACT
(
cancelButton
,
cancel
()
);
/* Hide the advancedPanel */
if
(
!
getSettings
()
->
value
(
"
opendialog-
advanced"
,
false
).
toBool
())
if
(
!
getSettings
()
->
value
(
"
OpenDialog/
advanced"
,
false
).
toBool
())
{
ui
.
advancedFrame
->
hide
();
ui
.
advancedFrame
->
setEnabled
(
false
);
...
...
@@ -183,7 +183,7 @@ OpenDialog::OpenDialog( QWidget *parent,
setMinimumSize
(
sizeHint
()
);
setMaximumWidth
(
900
);
resize
(
getSettings
()
->
value
(
"
opendialog-
size"
,
QSize
(
500
,
400
)
).
toSize
()
);
resize
(
getSettings
()
->
value
(
"
OpenDialog/
size"
,
QSize
(
500
,
400
)
).
toSize
()
);
}
/* Finish the dialog and decide if you open another one after */
...
...
@@ -219,10 +219,10 @@ void OpenDialog::setMenuAction()
OpenDialog
::~
OpenDialog
()
{
getSettings
()
->
setValue
(
"
opendialog-
size"
,
size
()
-
getSettings
()
->
setValue
(
"
OpenDialog/
size"
,
size
()
-
(
ui
.
advancedFrame
->
isEnabled
()
?
QSize
(
0
,
ui
.
advancedFrame
->
height
())
:
QSize
(
0
,
0
)
)
);
getSettings
()
->
setValue
(
"
opendialog-
advanced"
,
ui
.
advancedFrame
->
isVisible
()
);
getSettings
()
->
setValue
(
"
OpenDialog/
advanced"
,
ui
.
advancedFrame
->
isVisible
()
);
}
/* Used by VLM dialog and inputSlave selection */
...
...
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