mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-18 13:30:34 +01:00
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:
@@ -20,6 +20,7 @@
|
|||||||
#include <QLabel>
|
#include <QLabel>
|
||||||
#include <QTableWidget>
|
#include <QTableWidget>
|
||||||
#include <QVBoxLayout>
|
#include <QVBoxLayout>
|
||||||
|
#include <QDebug>
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Constructor
|
Constructor
|
||||||
@@ -171,7 +172,7 @@ void DiagramContextWidget::initWidgets() {
|
|||||||
format_label -> setWordWrap(true);
|
format_label -> setWordWrap(true);
|
||||||
format_label -> setAlignment(Qt::AlignJustify);
|
format_label -> setAlignment(Qt::AlignJustify);
|
||||||
|
|
||||||
table_ = new QTableWidget(0, 2);
|
table_ = new QTableWidget(1, 2);
|
||||||
table_ -> setSelectionMode(QAbstractItemView::SingleSelection);
|
table_ -> setSelectionMode(QAbstractItemView::SingleSelection);
|
||||||
table_ -> setHorizontalHeaderLabels(QStringList() << tr("Nom", "table header") << tr("Valeur", "table header"));
|
table_ -> setHorizontalHeaderLabels(QStringList() << tr("Nom", "table header") << tr("Valeur", "table header"));
|
||||||
table_ -> horizontalHeader() -> setStretchLastSection(true);
|
table_ -> horizontalHeader() -> setStretchLastSection(true);
|
||||||
|
|||||||
Reference in New Issue
Block a user