[qet] [3318] Diagram context widget: fix minor wrong behavior ( tabwidget will be wrong init at construction)

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


Revision: 3318
Author:   blacksun
Date:     2014-09-21 00:54:46 +0200 (Sun, 21 Sep 2014)
Log Message:
-----------
Diagram context widget: fix minor wrong behavior (tabwidget will be wrong init at construction)

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

Modified: trunk/sources/diagramcontextwidget.cpp
===================================================================
--- trunk/sources/diagramcontextwidget.cpp	2014-09-20 20:04:02 UTC (rev 3317)
+++ trunk/sources/diagramcontextwidget.cpp	2014-09-20 22:54:46 UTC (rev 3318)
@@ -20,6 +20,7 @@
 #include <QLabel>
 #include <QTableWidget>
 #include <QVBoxLayout>
+#include <QDebug>
 
 /**
 	Constructor
@@ -171,7 +172,7 @@
 	format_label -> setWordWrap(true);
 	format_label -> setAlignment(Qt::AlignJustify);
 	
-	table_ = new QTableWidget(0, 2);
+	table_ = new QTableWidget(1, 2);
 	table_ -> setSelectionMode(QAbstractItemView::SingleSelection);
 	table_ -> setHorizontalHeaderLabels(QStringList() << tr("Nom", "table header") << tr("Valeur", "table header"));
 	table_ -> horizontalHeader() -> setStretchLastSection(true);


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