Skip to content

Commit

Permalink
Qt: fix frame around time in toolbar editor
Browse files Browse the repository at this point in the history
Close #12888
  • Loading branch information
jbkempf committed Dec 13, 2014
1 parent 776ea95 commit 9ecbe11
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/gui/qt4/dialogs/toolbar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand All @@ -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 );
Expand Down

0 comments on commit 9ecbe11

Please sign in to comment.