From: Alexey Chernobaev Date: Sun, 11 Mar 2018 20:55:08 +0000 (+0300) Subject: fix for Qt below 5.10 X-Git-Tag: submit/tizen/20180620.112952^2^2~65 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7b47374d152f8aa2dda0c2d4a817958508346f86;p=sdk%2Ftools%2Fheaptrack.git fix for Qt below 5.10 --- diff --git a/src/analyze/gui/chartwidget.cpp b/src/analyze/gui/chartwidget.cpp index 5b19944..5a584eb 100644 --- a/src/analyze/gui/chartwidget.cpp +++ b/src/analyze/gui/chartwidget.cpp @@ -166,12 +166,12 @@ ChartWidget::ChartWidget(QWidget* parent) m_showLegendAction->setShortcut(QKeySequence(Qt::ALT | Qt::Key_L)); m_showSymbolsAction->setShortcut(QKeySequence(Qt::ALT | Qt::Key_S)); m_showVLinesAction->setShortcut(QKeySequence(Qt::ALT | Qt::Key_V)); - +#if QT_VERSION >= 0x050A00 m_showTotalAction->setShortcutVisibleInContextMenu(true); m_showLegendAction->setShortcutVisibleInContextMenu(true); m_showSymbolsAction->setShortcutVisibleInContextMenu(true); m_showVLinesAction->setShortcutVisibleInContextMenu(true); - +#endif setFocusPolicy(Qt::StrongFocus); #endif #ifdef SHOW_TABLES @@ -518,7 +518,7 @@ void ChartWidget::updateQwtChart() { column += 2; } - for (; column < columns ; column += 2) + for (; column < columns; column += 2) { auto curve = new QwtPlotCurve(getCurveTitle(m_model->getColumnLabel(column))); curve->setRenderHint(QwtPlotItem::RenderAntialiased, true);