[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [massif-visualizer] app: Update detailed graph view when changing selection in the tree view.
From:       Milian Wolff <mail () milianw ! de>
Date:       2014-05-07 10:22:19
Message-ID: E1WhyzT-0001bI-Qf () scm ! kde ! org
[Download RAW message or body]

Git commit 28ba154f269d707bea0e135de8d3fe27029be7b9 by Milian Wolff.
Committed on 07/05/2014 at 10:22.
Pushed by mwolff into branch 'master'.

Update detailed graph view when changing selection in the tree view.

M  +1    -0    app/documentwidget.cpp
M  +4    -1    app/documentwidget.h

http://commits.kde.org/massif-visualizer/28ba154f269d707bea0e135de8d3fe2702=
9be7b9

diff --git a/app/documentwidget.cpp b/app/documentwidget.cpp
index 14485b5..3f074a0 100644
--- a/app/documentwidget.cpp
+++ b/app/documentwidget.cpp
@@ -580,6 +580,7 @@ void DocumentWidget::showDotGraph(const QPair<TreeLeafI=
tem*, SnapshotItem*>& ite
         m_dotGenerator.reset(new DotGraphGenerator(item.first, m_data->tim=
eUnit(), this));
     }
     m_dotGenerator->start();
+    connect(m_dotGenerator.data(), SIGNAL(finished()), this, SLOT(showDotG=
raph()));
 }
 =

 void DocumentWidget::showDotGraph()
diff --git a/app/documentwidget.h b/app/documentwidget.h
index b3a3a3b..4b2e1ed 100644
--- a/app/documentwidget.h
+++ b/app/documentwidget.h
@@ -90,7 +90,6 @@ public:
 #ifdef HAVE_KGRAPHVIEWER
     KGraphViewer::KGraphViewerInterface* graphViewer();
     void showDotGraph(const QPair<Massif::TreeLeafItem*, Massif::SnapshotI=
tem*>& item);
-    void showDotGraph();
     void focusExpensiveGraphNode();
     int currentIndex();
 #endif
@@ -117,6 +116,10 @@ public slots:
 =

     void showError(const QString& title, const QString& error);
 =

+#ifdef HAVE_KGRAPHVIEWER
+    void showDotGraph();
+#endif
+
 private slots:
 #ifdef HAVE_KGRAPHVIEWER
     void slotTabChanged(int index);
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic