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
bc2e3249
Commit
bc2e3249
authored
Aug 25, 2008
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix some playlist start showing/non-showing bug.
Still errors present, but too latE.
parent
958d8f0b
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
27 additions
and
6 deletions
+27
-6
modules/gui/qt4/components/playlist/playlist.cpp
modules/gui/qt4/components/playlist/playlist.cpp
+12
-0
modules/gui/qt4/components/playlist/playlist.hpp
modules/gui/qt4/components/playlist/playlist.hpp
+3
-2
modules/gui/qt4/dialogs_provider.cpp
modules/gui/qt4/dialogs_provider.cpp
+2
-0
modules/gui/qt4/dialogs_provider.hpp
modules/gui/qt4/dialogs_provider.hpp
+2
-0
modules/gui/qt4/main_interface.cpp
modules/gui/qt4/main_interface.cpp
+8
-4
No files found.
modules/gui/qt4/components/playlist/playlist.cpp
View file @
bc2e3249
...
...
@@ -156,3 +156,15 @@ void PlaylistWidget::dragEnterEvent(QDragEnterEvent *event)
event
->
acceptProposedAction
();
}
void
PlaylistWidget
::
closeEvent
(
QCloseEvent
*
event
)
{
if
(
THEDP
->
isDying
()
)
{
close
();
}
else
{
if
(
p_intf
->
p_sys
->
p_mi
)
p_intf
->
p_sys
->
p_mi
->
togglePlaylist
();
}
}
modules/gui/qt4/components/playlist/playlist.hpp
View file @
bc2e3249
...
...
@@ -56,8 +56,9 @@ private:
QWidget
*
parent
;
protected:
intf_thread_t
*
p_intf
;
void
dropEvent
(
QDropEvent
*
);
void
dragEnterEvent
(
QDragEnterEvent
*
);
virtual
void
dropEvent
(
QDropEvent
*
);
virtual
void
dragEnterEvent
(
QDragEnterEvent
*
);
virtual
void
closeEvent
(
QCloseEvent
*
);
private
slots
:
void
setArt
(
QString
);
...
...
modules/gui/qt4/dialogs_provider.cpp
View file @
bc2e3249
...
...
@@ -57,6 +57,7 @@ DialogsProvider* DialogsProvider::instance = NULL;
DialogsProvider
::
DialogsProvider
(
intf_thread_t
*
_p_intf
)
:
QObject
(
NULL
),
p_intf
(
_p_intf
)
{
b_isDying
=
false
;
fixed_timer
=
new
QTimer
(
this
);
fixed_timer
->
start
(
150
/* milliseconds */
);
...
...
@@ -92,6 +93,7 @@ DialogsProvider::~DialogsProvider()
void
DialogsProvider
::
quit
()
{
b_isDying
=
true
;
vlc_object_kill
(
p_intf
->
p_libvlc
);
QApplication
::
closeAllWindows
();
QApplication
::
quit
();
...
...
modules/gui/qt4/dialogs_provider.hpp
View file @
bc2e3249
...
...
@@ -116,6 +116,7 @@ public:
EXT_FILTER_VIDEO
|
EXT_FILTER_AUDIO
|
EXT_FILTER_PLAYLIST
,
QString
path
=
QString
()
);
bool
isDying
()
{
return
b_isDying
;
}
protected:
QSignalMapper
*
menusMapper
;
QSignalMapper
*
menusUpdateMapper
;
...
...
@@ -127,6 +128,7 @@ private:
intf_thread_t
*
p_intf
;
static
DialogsProvider
*
instance
;
void
addFromSimple
(
bool
,
bool
);
bool
b_isDying
;
public
slots
:
void
doInteraction
(
intf_dialog_args_t
*
);
...
...
modules/gui/qt4/main_interface.cpp
View file @
bc2e3249
...
...
@@ -218,10 +218,12 @@ MainInterface::MainInterface( intf_thread_t *_p_intf ) : QVLCMW( _p_intf )
QVLCTools
::
restoreWidgetPosition
(
settings
,
this
,
QSize
(
380
,
60
)
);
/* Playlist */
if
(
settings
->
value
(
"playlist-visible"
,
0
).
toInt
()
)
togglePlaylist
();
bool
b_visible
=
settings
->
value
(
"playlist-visible"
,
0
).
toInt
();
settings
->
endGroup
();
/* Playlist */
if
(
b_visible
)
togglePlaylist
();
/* Final sizing and showing */
setMinimumWidth
(
__MAX
(
controls
->
sizeHint
().
width
(),
menuBar
()
->
sizeHint
().
width
()
)
);
...
...
@@ -740,8 +742,10 @@ void MainInterface::togglePlaylist()
{
playlistWidget
=
new
PlaylistWidget
(
p_intf
,
this
);
i_pl_dock
=
(
pl_dock_e
)
getSettings
()
->
value
(
"pl-dock-status"
,
PL_UNDOCKED
).
toInt
();
i_pl_dock
=
PL_UNDOCKED
;
/* i_pl_dock = (pl_dock_e)getSettings()
->value( "pl-dock-status", PL_UNDOCKED ).toInt(); */
if
(
i_pl_dock
==
PL_UNDOCKED
)
{
playlistWidget
->
setWindowFlags
(
Qt
::
Window
);
...
...
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