aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexis La Goutte <alexis.lagoutte@gmail.com>2013-07-26 16:26:04 +0000
committerAlexis La Goutte <alexis.lagoutte@gmail.com>2013-07-26 16:26:04 +0000
commitaa27f065a1bd8ec46d2cbcc89f9eaf395e99be3e (patch)
tree1c62ae26a903b7a7988e43914d797c1310f0e4ae
parente442680f48004a1fa58218c58c60428aef11682e (diff)
From Thomas ERSFELD (GSoC13)
Automatic resize the content of UAT window dialog svn path=/trunk/; revision=50916
-rw-r--r--ui/qt/uat_dialog.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/ui/qt/uat_dialog.cpp b/ui/qt/uat_dialog.cpp
index 2aa24d694b..60b93dbaa6 100644
--- a/ui/qt/uat_dialog.cpp
+++ b/ui/qt/uat_dialog.cpp
@@ -65,6 +65,12 @@ UatDialog::UatDialog(QWidget *parent, uat_t *uat) :
setUat(uat);
+#if (QT_VERSION < QT_VERSION_CHECK(5, 0, 0))
+ ui->uatTreeWidget->header()->setResizeMode(QHeaderView::ResizeToContents);
+#else
+ ui->uatTreeWidget->header()->setSectionResizeMode(QHeaderView::ResizeToContents);
+#endif
+
// Need to add uat_move or uat_insert to the UAT API.
ui->uatTreeWidget->setDragEnabled(false);
qDebug() << "FIX Add drag reordering to UAT dialog";