Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
fd8a9517
Commit
fd8a9517
authored
Mar 29, 2007
by
Yoann Peronneau
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* qt: don't hide the file browser on double click
parent
01c453a9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
6 deletions
+16
-6
modules/gui/qt4/components/open.cpp
modules/gui/qt4/components/open.cpp
+3
-3
modules/gui/qt4/components/open.hpp
modules/gui/qt4/components/open.hpp
+13
-3
No files found.
modules/gui/qt4/components/open.cpp
View file @
fd8a9517
...
...
@@ -55,7 +55,7 @@ FileOpenPanel::FileOpenPanel( QWidget *_parent, intf_thread_t *_p_intf ) :
fileTypes
.
replace
(
QString
(
";*"
),
QString
(
" *"
));
// Make this QFileDialog a child of tempWidget from the ui.
dialogBox
=
new
QFileDialog
(
ui
.
tempWidget
,
NULL
,
dialogBox
=
new
FileOpenBox
(
ui
.
tempWidget
,
NULL
,
qfu
(
p_intf
->
p_libvlc
->
psz_homedir
),
fileTypes
);
dialogBox
->
setFileMode
(
QFileDialog
::
ExistingFiles
);
/* We don't want to see a grip in the middle of the window, do we? */
...
...
@@ -196,8 +196,8 @@ bool FileOpenPanel::eventFilter(QObject *object, QEvent *event)
{
if
(
(
object
==
dialogBox
)
&&
(
event
->
type
()
==
QEvent
::
Hide
)
)
{
event
->
ignore
();
return
true
;
event
->
ignore
();
return
true
;
}
// standard event processing
else
...
...
modules/gui/qt4/components/open.hpp
View file @
fd8a9517
...
...
@@ -28,12 +28,12 @@
#include <vlc/vlc.h>
#include <QWidget>
#include <QString>
#include <QFileDialog>
#include "ui/open_file.h"
#include "ui/open_disk.h"
#include "ui/open_net.h"
#include "ui/open_capture.h"
class
QFileDialog
;
class
QLineEdit
;
class
OpenPanel
:
public
QWidget
...
...
@@ -55,6 +55,17 @@ signals:
void
methodChanged
(
QString
method
);
};
class
FileOpenBox
:
public
QFileDialog
{
Q_OBJECT
;
public:
FileOpenBox
(
QWidget
*
parent
,
const
QString
&
caption
,
const
QString
&
directory
,
const
QString
&
filter
)
:
QFileDialog
(
parent
,
caption
,
directory
,
filter
)
{}
public
slots
:
void
accept
()
{}
};
class
FileOpenPanel
:
public
OpenPanel
{
Q_OBJECT
;
...
...
@@ -66,7 +77,7 @@ public:
private:
Ui
::
OpenFile
ui
;
QStringList
browse
(
QString
);
QFileDialog
*
dialogBox
;
FileOpenBox
*
dialogBox
;
QLineEdit
*
lineFileEdit
;
bool
eventFilter
(
QObject
*
,
QEvent
*
);
public
slots
:
...
...
@@ -75,7 +86,6 @@ private slots:
void
browseFile
();
void
browseFileSub
();
void
toggleSubtitleFrame
();
};
class
NetOpenPanel
:
public
OpenPanel
...
...
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