Qt4 - Include fix
authorJean-Baptiste Kempf <jb@videolan.org>
Fri, 8 Feb 2008 04:40:32 +0000 (04:40 +0000)
committerJean-Baptiste Kempf <jb@videolan.org>
Fri, 8 Feb 2008 04:40:32 +0000 (04:40 +0000)
modules/gui/qt4/components/interface_widgets.cpp
modules/gui/qt4/components/interface_widgets.hpp
modules/gui/qt4/components/playlist/playlist_item.cpp
modules/gui/qt4/components/playlist/playlist_model.cpp

index c021e2c..3b51c48 100644 (file)
@@ -828,6 +828,12 @@ SpeedControlWidget::SpeedControlWidget( intf_thread_t *_p_i ) :
 SpeedControlWidget::~SpeedControlWidget()
 {}
 
+void SpeedControlWidget::mouseDoubleClickEvent( QMouseEvent * event )
+{
+    msg_Dbg( p_intf, "coin coin" );
+    resetRate();
+}
+
 #define RATE_SLIDER_MAXIMUM 3.0
 #define RATE_SLIDER_MINIMUM 0.3
 #define RATE_SLIDER_LENGTH 100.0
index 268b53e..ce8e31d 100644 (file)
@@ -247,6 +247,8 @@ public:
     SpeedControlWidget( intf_thread_t *);
     virtual ~SpeedControlWidget();
     void updateControls( int );
+protected:
+    virtual void mouseDoubleClickEvent( QMouseEvent * event );
 private:
     intf_thread_t *p_intf;
     QSlider *speedSlider;
index 3d52abd..bb6745f 100644 (file)
@@ -34,6 +34,8 @@
 
 #include "pixmaps/type_unknown.xpm"
 
+#include <QSettings>
+
 /*************************************************************************
  * Playlist item implementation
  *************************************************************************/
index e77e7d7..d75eefd 100644 (file)
 # include "config.h"
 #endif
 
-#include <assert.h>
-#include <QIcon>
-#include <QFont>
-#include <QMenu>
-#include <QApplication>
-
 #include "qt4.hpp"
 #include "components/playlist/playlist_model.hpp"
 #include "dialogs/mediainfo.hpp"
 
 #include "pixmaps/type_unknown.xpm"
 
+#include <assert.h>
+#include <QIcon>
+#include <QFont>
+#include <QMenu>
+#include <QApplication>
+#include <QSettings>
+
 QIcon PLModel::icons[ITEM_TYPE_NUMBER];
 
 static int PlaylistChanged( vlc_object_t *, const char *,