[qet] [1903] Project tabs now have a close button.

[ Thread Index | Date Index | More lists.tuxfamily.org/qet Archives ]


Revision: 1903
Author:   xavier
Date:     2012-07-08 15:32:38 +0200 (Sun, 08 Jul 2012)
Log Message:
-----------
Project tabs now have a close button.

Modified Paths:
--------------
    trunk/sources/qetdiagrameditor.cpp

Modified: trunk/sources/qetdiagrameditor.cpp
===================================================================
--- trunk/sources/qetdiagrameditor.cpp	2012-07-08 13:00:14 UTC (rev 1902)
+++ trunk/sources/qetdiagrameditor.cpp	2012-07-08 13:32:38 UTC (rev 1903)
@@ -46,6 +46,10 @@
 	workspace.setBackground(QBrush(Qt::NoBrush));
 	workspace.setObjectName("mdiarea");
 	
+#if QT_VERSION >= 0x040800
+	workspace.setTabsClosable(true);
+#endif
+	
 	// mise en place du signalmapper
 	connect(&windowMapper, SIGNAL(mapped(QWidget *)), this, SLOT(activateWidget(QWidget *)));
 	


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/