Commit d41b6e26 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt: factorize again

parent e33c6eee
/***************************************************************************** /*****************************************************************************
* Controller.cpp : Controller for the main interface * Controller.cpp : Controller for the main interface
**************************************************************************** ****************************************************************************
* Copyright (C) 2006-2008 the VideoLAN team * Copyright (C) 2006-2009 the VideoLAN team
* $Id$ * $Id$
* *
* Authors: Jean-Baptiste Kempf <jb@videolan.org> * Authors: Jean-Baptiste Kempf <jb@videolan.org>
...@@ -240,19 +240,11 @@ QWidget *AbstractController::createWidget( buttonType_e button, int options ) ...@@ -240,19 +240,11 @@ QWidget *AbstractController::createWidget( buttonType_e button, int options )
} }
break; break;
case FULLSCREEN_BUTTON:{ case FULLSCREEN_BUTTON:{
case DEFULLSCREEN_BUTTON:{
NORMAL_BUTTON( FULLSCREEN ); NORMAL_BUTTON( FULLSCREEN );
ENABLE_ON_VIDEO( FULLSCREENButton ); ENABLE_ON_VIDEO( FULLSCREENButton );
} }
break; break;
case DEFULLSCREEN_BUTTON:{
QToolButton *fullscreenButton = new QToolButton;
setupButton( fullscreenButton );
CONNECT_MAP_SET( fullscreenButton, FULLSCREEN_ACTION );
BUTTON_SET_BAR( fullscreenButton )
ENABLE_ON_VIDEO( fullscreenButton );
widget = fullscreenButton;
}
break;
case EXTENDED_BUTTON:{ case EXTENDED_BUTTON:{
NORMAL_BUTTON( EXTENDED ); NORMAL_BUTTON( EXTENDED );
} }
......
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