Commit 1b6b699c authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt: fix frame around time in toolbar editor

Close #12888

(cherry picked from commit 9ecbe11b0d2a1c709b3bd8067450a007600ef6ca)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 4ab77b9d
...@@ -673,7 +673,7 @@ void DroppingController::createAndAddWidget( QBoxLayout *newControlLayout, ...@@ -673,7 +673,7 @@ void DroppingController::createAndAddWidget( QBoxLayout *newControlLayout,
widg->installEventFilter( this ); widg->installEventFilter( this );
/* We are in a complex widget, we need to stop events on children too */ /* We are in a complex widget, we need to stop events on children too */
if( i_type >= VOLUME && i_type < SPECIAL_MAX ) if( i_type >= TIME_LABEL && i_type < SPECIAL_MAX )
{ {
QList<QObject *>children = widg->children(); QList<QObject *>children = widg->children();
...@@ -690,7 +690,7 @@ void DroppingController::createAndAddWidget( QBoxLayout *newControlLayout, ...@@ -690,7 +690,7 @@ void DroppingController::createAndAddWidget( QBoxLayout *newControlLayout,
/* Decorating the frames when possible */ /* Decorating the frames when possible */
QFrame *frame; QFrame *frame;
if( i_type >= MENU_BUTTONS /* Don't bother to check for volume */ if( (i_type >= MENU_BUTTONS || i_type == TIME_LABEL) /* Don't bother to check for volume */
&& ( frame = qobject_cast<QFrame *>( widg ) ) != NULL ) && ( frame = qobject_cast<QFrame *>( widg ) ) != NULL )
{ {
frame->setFrameStyle( QFrame::Panel | QFrame::Raised ); frame->setFrameStyle( QFrame::Panel | QFrame::Raised );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment