Diff of /trunk/src/qjackctlConnect.cpp [r741] .. [r742] Maximize Restore

  Switch to side-by-side view

--- a/trunk/src/qjackctlConnect.cpp
+++ b/trunk/src/qjackctlConnect.cpp
@@ -1,7 +1,7 @@
 // qjackctlConnect.cpp
 //
 /****************************************************************************
-   Copyright (C) 2003-2011, rncbc aka Rui Nuno Capela. All rights reserved.
+   Copyright (C) 2003-2012, rncbc aka Rui Nuno Capela. All rights reserved.
 
    This program is free software; you can redistribute it and/or
    modify it under the terms of the GNU General Public License
@@ -35,6 +35,12 @@
 
 #include <QDragEnterEvent>
 #include <QDragMoveEvent>
+
+#if QT_VERSION >= 0x050000
+#include <QMimeData>
+#include <QDrag>
+#endif
+
 
 //----------------------------------------------------------------------
 // class qjackctlPortItem -- Port list item.
@@ -659,8 +665,10 @@
 //	pHeader->setResizeMode(QHeaderView::Custom);
 	pHeader->setDefaultAlignment(Qt::AlignLeft);
 //	pHeader->setDefaultSectionSize(120);
+#if QT_VERSION < 0x050000
 	pHeader->setMovable(false);
 	pHeader->setClickable(true);
+#endif
 	pHeader->setSortIndicatorShown(true);
 	pHeader->setStretchLastSection(true);