Commit 92a639ec authored by Daniel Teske's avatar Daniel Teske

PluginView: Use double click on all platforms for details

Change-Id: Ia48fd5ba352503dbc2686f961afee9754275fa55
Reviewed-by: default avatarChristian Kandeler <christian.kandeler@digia.com>
Reviewed-by: default avatarEike Ziller <eike.ziller@digia.com>
parent f674af8b
......@@ -11,6 +11,7 @@ QtcLibrary {
Depends { name: "Qt"; submodules: ["core", "widgets"] }
Depends { name: "Aggregation" }
Depends { name: "Utils" }
files: [
"extensionsystem_global.h",
......
QTC_LIB_NAME = ExtensionSystem
QTC_LIB_DEPENDS += \
aggregation
aggregation \
utils
......@@ -31,6 +31,7 @@
#include "pluginmanager.h"
#include "pluginspec.h"
#include "plugincollection.h"
#include <utils/itemviews.h>
#include <QDebug>
#include <QDir>
......@@ -78,7 +79,7 @@ PluginView::PluginView(QWidget *parent)
m_allowCheckStateUpdate(true),
C_LOAD(1)
{
m_categoryWidget = new QTreeWidget(this);
m_categoryWidget = new Utils::TreeWidget(this);
m_categoryWidget->setAlternatingRowColors(true);
m_categoryWidget->setIndentation(20);
m_categoryWidget->setUniformRowHeights(true);
......@@ -87,6 +88,7 @@ PluginView::PluginView(QWidget *parent)
m_categoryWidget->setColumnWidth(C_LOAD, 40);
m_categoryWidget->header()->setDefaultSectionSize(120);
m_categoryWidget->header()->setMinimumSectionSize(35);
m_categoryWidget->setActivationMode(Utils::DoubleClickActivation);
QTreeWidgetItem *headerItem = m_categoryWidget->headerItem();
headerItem->setText(0, tr("Name"));
......
......@@ -37,10 +37,11 @@
#include <QIcon>
QT_BEGIN_NAMESPACE
class QTreeWidget;
class QTreeWidgetItem;
QT_END_NAMESPACE
namespace Utils { class TreeWidget; }
namespace ExtensionSystem {
class PluginManager;
......@@ -74,7 +75,7 @@ private:
void updatePluginDependencies();
int parsePluginSpecs(QTreeWidgetItem *parentItem, Qt::CheckState &groupState, QList<PluginSpec*> plugins);
QTreeWidget *m_categoryWidget;
Utils::TreeWidget *m_categoryWidget;
QList<QTreeWidgetItem*> m_items;
QHash<PluginSpec*, QTreeWidgetItem*> m_specToItem;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment