summaryrefslogtreecommitdiff
path: root/src/analyze
diff options
context:
space:
mode:
authorAlexey Chernobaev <achernobaev@dev.rtsoft.ru>2018-03-11 23:55:08 +0300
committerAlexey Chernobaev <achernobaev@dev.rtsoft.ru>2018-03-11 23:55:08 +0300
commit7b47374d152f8aa2dda0c2d4a817958508346f86 (patch)
tree6a35ef90efc1cdeb3b92f1e4f9a73890f6950963 /src/analyze
parent335f9ae513fe7037aed1ad81178ad46090a737c6 (diff)
downloadheaptrack-7b47374d152f8aa2dda0c2d4a817958508346f86.tar.gz
heaptrack-7b47374d152f8aa2dda0c2d4a817958508346f86.tar.bz2
heaptrack-7b47374d152f8aa2dda0c2d4a817958508346f86.zip
fix for Qt below 5.10
Diffstat (limited to 'src/analyze')
-rw-r--r--src/analyze/gui/chartwidget.cpp6
1 files changed, 3 insertions, 3 deletions
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);