fix QWT plot legend on Linux
authorAlexey Chernobaev <achernobaev@dev.rtsoft.ru>
Sun, 11 Mar 2018 23:58:48 +0000 (02:58 +0300)
committerAlexey Chernobaev <achernobaev@dev.rtsoft.ru>
Sun, 11 Mar 2018 23:58:48 +0000 (02:58 +0300)
src/analyze/gui/chartwidget.cpp
src/heaptrack_gui.pro

index 5a584eb2bd27c0a45825302aa26e85fa4244b69b..191255b3fd8f6911c862121fdb7760a6c7654c1f 100644 (file)
@@ -492,8 +492,6 @@ static QString getCurveTitle(QString label)
 
 void ChartWidget::updateQwtChart()
 {
-    setUpdatesEnabled(false);
-
     int columns = m_model->columnCount();
     int rows = m_model->rowCount();
 
@@ -553,9 +551,6 @@ void ChartWidget::updateQwtChart()
     }
 
     m_plot->replot();
-
-    setUpdatesEnabled(true);
-    update();
 }
 #endif // QWT_FOUND
 
index 76042ceaa7f10d3a45603eafb2f09a00fae58545..c0216007083e77a42d214415db8e8f8dff955497 100644 (file)
@@ -25,7 +25,7 @@ unix {
     DEFINES *= USE_CHART
 
 #   uncomment the next line to use QWT instead of KChart
-#   CONFIG += QWT_CHART
+   CONFIG += QWT_CHART
 
     QWT_CHART {
         CONFIG *= NO_K_LIB NO_K_CHART QWT_CHART