[vlmc-devel] commit: Reordering methods (Ludovic Fauvet )

git at videolan.org git at videolan.org
Tue Apr 13 12:44:39 CEST 2010


vlmc | branch: master | Ludovic Fauvet <etix at l0cal.com> | Tue Apr 13 12:40:33 2010 +0200| [d9a9e34b3c383778d6130487236ab7e63a493d98] | committer: Ludovic Fauvet 

Reordering methods

> http://git.videolan.org/gitweb.cgi/vlmc.git/?a=commit;h=d9a9e34b3c383778d6130487236ab7e63a493d98
---

 src/Gui/DockWidgetManager.cpp |   37 ++++++++++++++++++-------------------
 src/Gui/DockWidgetManager.h   |    3 ---
 2 files changed, 18 insertions(+), 22 deletions(-)

diff --git a/src/Gui/DockWidgetManager.cpp b/src/Gui/DockWidgetManager.cpp
index 239ff11..bf80281 100644
--- a/src/Gui/DockWidgetManager.cpp
+++ b/src/Gui/DockWidgetManager.cpp
@@ -27,6 +27,24 @@
 #include "DockWidgetManager.h"
 #include "MainWindow.h"
 
+DockWidgetManager::DockWidgetManager( QObject *parent )
+    : QObject( parent )
+{
+    QObject::connect( qApp,
+                      SIGNAL( aboutToQuit() ),
+                      this,
+                      SLOT( deleteLater() ) );
+}
+
+DockWidgetManager::~DockWidgetManager()
+{
+    QList<QDockWidget*> widgets = m_dockWidgets.values();
+    QDockWidget* dockWidget;
+
+    foreach( dockWidget, widgets )
+        delete dockWidget;
+}
+
 void DockWidgetManager::setMainWindow( MainWindow *mainWin )
 {
     m_mainWin = mainWin;
@@ -53,22 +71,3 @@ QDockWidget* DockWidgetManager::addDockedWidget( QWidget *widget,
     widget->show();
     return dock;
 }
-
-
-DockWidgetManager::DockWidgetManager( QObject *parent )
-    : QObject( parent )
-{
-    QObject::connect( qApp,
-                      SIGNAL( aboutToQuit() ),
-                      this,
-                      SLOT( deleteLater() ) );
-}
-
-DockWidgetManager::~DockWidgetManager()
-{
-    QList<QDockWidget*> widgets = m_dockWidgets.values();
-    QDockWidget* dockWidget;
-
-    foreach( dockWidget, widgets )
-        delete dockWidget;
-}
diff --git a/src/Gui/DockWidgetManager.h b/src/Gui/DockWidgetManager.h
index e46d2a5..8c75d66 100644
--- a/src/Gui/DockWidgetManager.h
+++ b/src/Gui/DockWidgetManager.h
@@ -46,9 +46,6 @@ class DockWidgetManager : public QObject, public QSingleton<DockWidgetManager>
                               QDockWidget::DockWidgetFeature features,
                               Qt::DockWidgetArea startArea );
 
-    protected:
-        //virtual void changeEvent( QEvent *e );
-
     private:
         explicit DockWidgetManager( QObject *parent = 0 );
         virtual ~DockWidgetManager();



More information about the Vlmc-devel mailing list