summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <montel@kde.org>2016-09-25 06:12:10 (GMT)
committerMontel Laurent <montel@kde.org>2016-09-25 06:12:10 (GMT)
commit93a8c7c103bbd1666a41b9c1a062daa7f56c31ac (patch)
treeaec7f067d2ae4e3a7380c93d73011a78010828e6
parent75fb78308c03799cef2d4304e3b0dafbf05aba1f (diff)
Fix setSectionResizeMode
-rw-r--r--src/configureplugins/configurepluginslistwidget.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/configureplugins/configurepluginslistwidget.cpp b/src/configureplugins/configurepluginslistwidget.cpp
index 69aa312..c28100f 100644
--- a/src/configureplugins/configurepluginslistwidget.cpp
+++ b/src/configureplugins/configurepluginslistwidget.cpp
@@ -109,10 +109,8 @@ void ConfigurePluginsListWidget::savePlugins(const QString &groupName, const QSt
void ConfigurePluginsListWidget::fillTopItems(const QVector<PimCommon::PluginUtilData> &lst, const QString &topLevelItemName,
const QString &groupName, const QString &prefixKey, QList<PluginItem *> &itemsList, const QString &configureGroupName)
{
- //TODO need to fix it.
mListWidget->setColumnCount(2);
- mListWidget->header()->resizeSection(0, 300);
-
+ mListWidget->header()->setSectionResizeMode(0, QHeaderView::ResizeToContents);
itemsList.clear();
if (!lst.isEmpty()) {
QTreeWidgetItem *topLevel = new QTreeWidgetItem(mListWidget, QStringList() << topLevelItemName);