@@ -55,20 +55,20 @@ DiffViewWidget::DiffViewWidget(QWidget* parent)
5555 , m_filterAndZoomStackA(new FilterAndZoomStack(this ))
5656 , m_filterAndZoomStackB(new FilterAndZoomStack(this ))
5757 , m_filterMenu(new QMenu(this ))
58- , m_model(new DiffViewModel(this ))
58+ // , m_model(new DiffViewModel(this))
5959 , m_contents(createDockingArea(QStringLiteral(" diffview" ), this))
6060 , m_timelineA(new TimeLineWidget(m_parserA, m_filterMenu, m_filterAndZoomStackA, this ))
6161 , m_timelineB(new TimeLineWidget(m_parserB, m_filterMenu, m_filterAndZoomStackB, this ))
6262{
6363 ui->setupUi (this );
64- auto diffProxy = new DiffViewProxy (this );
64+ /* auto diffProxy = new DiffViewProxy(this);
6565 diffProxy->setSourceModel(m_model);
6666
6767 ResultsUtil::setupTreeView(ui->diffTreeView, ui->diffSearch, diffProxy, DiffViewModel::InitialSortColumn,
6868 DiffViewModel::SortRole);
6969 ui->diffTreeView->sortByColumn(DiffViewModel::InitialSortColumn, Qt::DescendingOrder);
7070 ResultsUtil::setupCostDelegate<DiffViewModel>(m_model, ui->diffTreeView);
71-
71+ */
7272 auto dockify = [](QWidget* widget, const QString& id, const QString& title, const QString& shortcut) {
7373 auto * dock = new KDDockWidgets::DockWidget (id);
7474 dock->setWidget (widget);
@@ -90,9 +90,9 @@ DiffViewWidget::DiffViewWidget(QWidget* parent)
9090 costThreshold->setSuffix (QStringLiteral (" %" ));
9191 costThreshold->setValue (0.01 );
9292 costThreshold->setSingleStep (0.01 );
93- connect (costThreshold, static_cast <void (QDoubleSpinBox::*)(double )>(&QDoubleSpinBox::valueChanged), this ,
93+ /* connect(costThreshold, static_cast<void (QDoubleSpinBox::*)(double)>(&QDoubleSpinBox::valueChanged), this,
9494 [diffProxy](double threshold) { diffProxy->setThreshold(threshold); });
95-
95+ */
9696 ui->bottomUpVerticalLayout ->addWidget (costThreshold);
9797 ui->bottomUpVerticalLayout ->addWidget (m_contents);
9898
@@ -127,7 +127,7 @@ DiffViewWidget::DiffViewWidget(QWidget* parent)
127127 }
128128 });
129129
130- connect (m_parserA, &PerfParser::topDownDataAvailable, this , [this ](const Data::TopDownResults& results) {
130+ /* connect(m_parserA, &PerfParser::topDownDataAvailable, this, [this](const Data::TopDownResults& results) {
131131 m_resultsA = results;
132132
133133 const auto data = Data::DiffViewResults::fromTopDown(m_resultsA, m_resultsB);
@@ -145,7 +145,7 @@ DiffViewWidget::DiffViewWidget(QWidget* parent)
145145 if (data.costsA.numTypes() > 0 && data.costsB.numTypes() > 0) {
146146 m_model->setData(data);
147147 }
148- });
148+ });*/
149149
150150 connect (m_filterAndZoomStackA, &FilterAndZoomStack::filterChanged, this , [this ](const Data::FilterAction& action) {
151151 m_bFinished = true ;
@@ -176,9 +176,6 @@ DiffViewWidget::~DiffViewWidget() = default;
176176
177177void DiffViewWidget::open (const QString& a, const QString& b)
178178{
179- auto settings = Settings::instance ();
180- m_parserA->startParseFile (a, settings->sysroot (), settings->kallsyms (), settings->debugPaths (),
181- settings->extraLibPaths (), settings->appPath (), settings->arch ());
182- m_parserB->startParseFile (b, settings->sysroot (), settings->kallsyms (), settings->debugPaths (),
183- settings->extraLibPaths (), settings->appPath (), settings->arch ());
179+ m_parserA->startParseFile (a);
180+ m_parserB->startParseFile (b);
184181}
0 commit comments