From 5daa13890ba8e50eb2ccf80e883df55df45885a8 Mon Sep 17 00:00:00 2001 From: blacksun Date: Sat, 20 Sep 2014 22:54:46 +0000 Subject: [PATCH] Diagram context widget: fix minor wrong behavior (tabwidget will be wrong init at construction) git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@3318 bfdf4180-ca20-0410-9c96-a3a8aa849046 --- sources/diagramcontextwidget.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sources/diagramcontextwidget.cpp b/sources/diagramcontextwidget.cpp index e2b5afcf7..b03d4bd04 100644 --- a/sources/diagramcontextwidget.cpp +++ b/sources/diagramcontextwidget.cpp @@ -20,6 +20,7 @@ #include #include #include +#include /** Constructor @@ -171,7 +172,7 @@ void DiagramContextWidget::initWidgets() { 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);