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
This commit is contained in:
blacksun
2014-09-20 22:54:46 +00:00
parent 0f40e173ef
commit 5daa13890b

View File

@@ -20,6 +20,7 @@
#include <QLabel>
#include <QTableWidget>
#include <QVBoxLayout>
#include <QDebug>
/**
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);