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
4c4aae84
Commit
4c4aae84
authored
Jun 19, 2009
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt: cosmetics and comments.
parent
df20afd7
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
6 deletions
+10
-6
modules/gui/qt4/components/open_panels.cpp
modules/gui/qt4/components/open_panels.cpp
+3
-2
modules/gui/qt4/qt4.cpp
modules/gui/qt4/qt4.cpp
+2
-2
modules/gui/qt4/recents.cpp
modules/gui/qt4/recents.cpp
+5
-2
No files found.
modules/gui/qt4/components/open_panels.cpp
View file @
4c4aae84
...
...
@@ -165,7 +165,7 @@ FileOpenPanel::~FileOpenPanel()
void
FileOpenPanel
::
browseFile
()
{
QStringList
files
=
QFileDialog
::
getOpenFileNames
(
this
);
foreach
(
const
QString
&
file
,
files
)
foreach
(
const
QString
&
file
,
files
)
{
QListWidgetItem
*
item
=
new
QListWidgetItem
(
toNativeSeparators
(
file
),
ui
.
fileListWidg
);
...
...
@@ -244,7 +244,8 @@ void FileOpenPanel::updateMRL()
/* Function called by Open Dialog when clicke on Play/Enqueue */
void
FileOpenPanel
::
accept
()
{
p_intf
->
p_sys
->
filepath
=
dialogBox
->
directory
().
absolutePath
();
if
(
dialogBox
)
p_intf
->
p_sys
->
filepath
=
dialogBox
->
directory
().
absolutePath
();
ui
.
fileListWidg
->
clear
();
}
...
...
modules/gui/qt4/qt4.cpp
View file @
4c4aae84
...
...
@@ -449,7 +449,7 @@ static void *Thread( void *obj )
{
char
*
psz_path
=
config_GetPsz
(
p_intf
,
"qt-filedialog-path"
);
p_intf
->
p_sys
->
filepath
=
EMPTY_STR
(
psz_path
)
?
config_GetHomeDir
()
:
qfu
(
psz_path
);
EMPTY_STR
(
psz_path
)
?
config_GetHomeDir
()
:
qfu
(
psz_path
);
free
(
psz_path
);
}
...
...
@@ -491,7 +491,7 @@ static void *Thread( void *obj )
/* Save the path */
config_PutPsz
(
p_intf
,
"qt-filedialog-path"
,
qtu
(
p_intf
->
p_sys
->
filepath
)
);
qtu
(
p_intf
->
p_sys
->
filepath
)
);
/* Delete the application automatically */
#ifdef Q_WS_X11
...
...
modules/gui/qt4/recents.cpp
View file @
4c4aae84
...
...
@@ -70,10 +70,14 @@ void RecentsMRL::addRecent( const QString &mrl )
{
if
(
!
isActive
||
(
filter
&&
filter
->
indexIn
(
mrl
)
>=
0
)
)
return
;
msg_Dbg
(
p_intf
,
"Adding a new MRL to recent ones: %s"
,
qtu
(
mrl
)
);
#ifdef WIN32
/* Add to the Windows 7 default list in taskbar */
SHAddToRecentDocs
(
0x00000002
,
qtu
(
mrl
)
);
#endif
msg_Dbg
(
p_intf
,
"Adding a new MRL to recent ones: %s"
,
qtu
(
mrl
)
);
int
i_index
=
stack
->
indexOf
(
mrl
);
if
(
0
<=
i_index
)
{
...
...
@@ -88,7 +92,6 @@ void RecentsMRL::addRecent( const QString &mrl )
}
QVLCMenu
::
updateRecents
(
p_intf
);
save
();
}
void
RecentsMRL
::
clear
()
...
...
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