]> git.sesse.net Git - vlc/commitdiff
Qt: fix frame around time in toolbar editor
authorJean-Baptiste Kempf <jb@videolan.org>
Sat, 13 Dec 2014 16:09:49 +0000 (17:09 +0100)
committerJean-Baptiste Kempf <jb@videolan.org>
Sat, 13 Dec 2014 16:09:49 +0000 (17:09 +0100)
Close #12888

modules/gui/qt4/dialogs/toolbar.cpp

index f102133aa1e266ea89ad178b11c860d56852cf02..c1e667ae807669003978d03ac12c3d6be493ee51 100644 (file)
@@ -673,7 +673,7 @@ void DroppingController::createAndAddWidget( QBoxLayout *newControlLayout,
         widg->installEventFilter( this );
 
         /* 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();
 
@@ -690,7 +690,7 @@ void DroppingController::createAndAddWidget( QBoxLayout *newControlLayout,
 
             /* Decorating the frames when possible */
             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->setFrameStyle( QFrame::Panel | QFrame::Raised );