diff --git a/src/plugins/qmlprofiler/qmlprofilereventview.cpp b/src/plugins/qmlprofiler/qmlprofilereventview.cpp index ddf2365e031ea226f65f5f7d62db66ed158fb8c1..ed8d6bb1c8e493c59b2addc88ae27b7baa1f0219 100644 --- a/src/plugins/qmlprofiler/qmlprofilereventview.cpp +++ b/src/plugins/qmlprofiler/qmlprofilereventview.cpp @@ -381,7 +381,7 @@ QmlProfilerEventsMainView::QmlProfilerEventsMainView(QWidget *parent, d->m_model = new QStandardItemModel(this); setModel(d->m_model); - connect(this,SIGNAL(clicked(QModelIndex)), this,SLOT(jumpToItem(QModelIndex))); + connect(this, SIGNAL(activated(QModelIndex)), this, SLOT(jumpToItem(QModelIndex))); d->modelProxy = modelProxy; connect(d->modelProxy,SIGNAL(dataAvailable()), this, SLOT(buildModel())); @@ -831,7 +831,7 @@ QmlProfilerEventRelativesView::QmlProfilerEventRelativesView(QmlProfilerModelMan setRootIsDecorated(false); updateHeader(); - connect(this,SIGNAL(clicked(QModelIndex)), this,SLOT(jumpToItem(QModelIndex))); + connect(this,SIGNAL(activated(QModelIndex)), this,SLOT(jumpToItem(QModelIndex))); // Clear when new data available as the selection may be invalid now. connect(d->modelProxy, SIGNAL(dataAvailable()), this, SLOT(clear())); diff --git a/src/plugins/qmlprofiler/qmlprofilertreeview.cpp b/src/plugins/qmlprofiler/qmlprofilertreeview.cpp index bacc8ceb2a308a9d25d2b4278abcea2295fe3366..a85c168b40361bc855a033ae9b3fcbe7a14a97b7 100644 --- a/src/plugins/qmlprofiler/qmlprofilertreeview.cpp +++ b/src/plugins/qmlprofiler/qmlprofilertreeview.cpp @@ -28,6 +28,7 @@ ****************************************************************************/ #include "qmlprofilertreeview.h" +#include <utils/itemviews.h> #include <QCoreApplication> #include <QHeaderView> @@ -35,7 +36,7 @@ namespace QmlProfiler { namespace Internal { QmlProfilerTreeView::QmlProfilerTreeView(QWidget *parent) - : QTreeView(parent) + : Utils::TreeView(parent) { setFrameStyle(QFrame::NoFrame); header()->setResizeMode(QHeaderView::Interactive); diff --git a/src/plugins/qmlprofiler/qmlprofilertreeview.h b/src/plugins/qmlprofiler/qmlprofilertreeview.h index 6b80b1ee61a639588659f68ce841e9bcf6fd4938..5d71bd14b5960db730e42719f39b21c696dcdf2e 100644 --- a/src/plugins/qmlprofiler/qmlprofilertreeview.h +++ b/src/plugins/qmlprofiler/qmlprofilertreeview.h @@ -30,12 +30,12 @@ #ifndef QMLPROFILERTREEVIEW #define QMLPROFILERTREEVIEW -#include <QTreeView> +#include <utils/itemviews.h> namespace QmlProfiler { namespace Internal { -class QmlProfilerTreeView : public QTreeView +class QmlProfilerTreeView : public Utils::TreeView { Q_OBJECT diff --git a/src/plugins/qmlprofiler/qv8profilereventview.cpp b/src/plugins/qmlprofiler/qv8profilereventview.cpp index 92d9f188b59862e055df7402cee866f6eb9c11b7..0ab78cb01e12a41916c44e683da1032a434ccf99 100644 --- a/src/plugins/qmlprofiler/qv8profilereventview.cpp +++ b/src/plugins/qmlprofiler/qv8profilereventview.cpp @@ -291,7 +291,7 @@ QV8ProfilerEventsMainView::QV8ProfilerEventsMainView(QWidget *parent, d->m_model = new QStandardItemModel(this); setModel(d->m_model); - connect(this,SIGNAL(clicked(QModelIndex)), this,SLOT(jumpToItem(QModelIndex))); + connect(this, SIGNAL(activated(QModelIndex)), this, SLOT(jumpToItem(QModelIndex))); d->m_v8Model = v8Model; connect(d->m_v8Model, SIGNAL(changed()), this, SLOT(buildModel())); @@ -631,7 +631,7 @@ QV8ProfilerEventRelativesView::QV8ProfilerEventRelativesView(QV8ProfilerDataMode updateHeader(); setSortingEnabled(false); - connect(this, SIGNAL(clicked(QModelIndex)), this, SLOT(jumpToItem(QModelIndex))); + connect(this, SIGNAL(activated(QModelIndex)), this, SLOT(jumpToItem(QModelIndex))); } QV8ProfilerEventRelativesView::~QV8ProfilerEventRelativesView()