Commit 3dcf9aca authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt, controller: cosmetics

parent 0f3df12e
...@@ -26,9 +26,9 @@ ...@@ -26,9 +26,9 @@
# include "config.h" # include "config.h"
#endif #endif
#include <vlc_vout.h> #include <vlc_vout.h> /* vout_thread_t for FSC */
#include <vlc_keys.h>
/* Widgets */
#include "components/controller.hpp" #include "components/controller.hpp"
#include "components/controller_widget.hpp" #include "components/controller_widget.hpp"
#include "components/interface_widgets.hpp" #include "components/interface_widgets.hpp"
...@@ -736,8 +736,8 @@ FullscreenControllerWidget::FullscreenControllerWidget( intf_thread_t *_p_i, QWi ...@@ -736,8 +736,8 @@ FullscreenControllerWidget::FullscreenControllerWidget( intf_thread_t *_p_i, QWi
/* hiding timer */ /* hiding timer */
p_hideTimer = new QTimer( this ); p_hideTimer = new QTimer( this );
CONNECT( p_hideTimer, timeout(), this, hideFSC() );
p_hideTimer->setSingleShot( true ); p_hideTimer->setSingleShot( true );
CONNECT( p_hideTimer, timeout(), this, hideFSC() );
/* slow hiding timer */ /* slow hiding timer */
#if HAVE_TRANSPARENCY #if HAVE_TRANSPARENCY
......
/***************************************************************************** /*****************************************************************************
* ToolbarEdit.hpp : ToolbarEdit dialogs * ToolbarEdit.hpp : ToolbarEdit dialogs
**************************************************************************** ****************************************************************************
* Copyright (C) 2008-2009 the VideoLAN team * Copyright (C) 2008-2011 the VideoLAN team
* $Id$ * $Id$
* *
* Authors: Jean-Baptiste Kempf <jb (at) videolan.org> * Authors: Jean-Baptiste Kempf <jb (at) videolan.org>
...@@ -24,8 +24,8 @@ ...@@ -24,8 +24,8 @@
#ifndef QVLC_TOOLBAREDIT_DIALOG_H_ #ifndef QVLC_TOOLBAREDIT_DIALOG_H_
#define QVLC_TOOLBAREDIT_DIALOG_H_ 1 #define QVLC_TOOLBAREDIT_DIALOG_H_ 1
#include "util/qvlcframe.hpp" #include "util/qvlcframe.hpp" /* QVLCDialog */
#include "components/controller.hpp" #include "components/controller.hpp" /* AbstractController */
#include <QListWidget> #include <QListWidget>
#include <QCheckBox> #include <QCheckBox>
...@@ -43,7 +43,6 @@ ...@@ -43,7 +43,6 @@
class ToolbarEditDialog; class ToolbarEditDialog;
class DroppingController; class DroppingController;
class QCheckBox;
class QComboBox; class QComboBox;
class QRubberBand; class QRubberBand;
...@@ -67,8 +66,8 @@ public: ...@@ -67,8 +66,8 @@ public:
bigBox->isChecked() * WIDGET_BIG + bigBox->isChecked() * WIDGET_BIG +
!shinyBox->isChecked() * WIDGET_SHINY; } !shinyBox->isChecked() * WIDGET_SHINY; }
virtual ~ToolbarEditDialog(); virtual ~ToolbarEditDialog();
private:
private:
QCheckBox *flatBox, *bigBox, *shinyBox; QCheckBox *flatBox, *bigBox, *shinyBox;
QComboBox *positionCombo, *profileCombo; QComboBox *positionCombo, *profileCombo;
...@@ -103,7 +102,8 @@ protected: ...@@ -103,7 +102,8 @@ protected:
virtual void doAction( int ); virtual void doAction( int );
bool eventFilter( QObject *, QEvent * ); virtual bool eventFilter( QObject *, QEvent * );
private: private:
struct doubleInt struct doubleInt
{ {
...@@ -112,12 +112,11 @@ private: ...@@ -112,12 +112,11 @@ private:
}; };
QRubberBand *rubberband; QRubberBand *rubberband;
QList <doubleInt *> widgetList; QList <doubleInt *> widgetList;
int i_dragIndex;
int getParentPosInLayout( QPoint point);
int i_dragIndex;
bool b_draging; bool b_draging;
int getParentPosInLayout( QPoint point);
}; };
#endif #endif
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