From: Alexey Chernobaev Date: Mon, 26 Mar 2018 18:29:33 +0000 (+0300) Subject: minor fixes X-Git-Tag: submit/tizen/20180620.112952^2^2~39 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fcddab9f9368775652b0553c30326c54fc1c5586;p=sdk%2Ftools%2Fheaptrack.git minor fixes --- diff --git a/src/analyze/gui/chartwidgetqwtplot.cpp b/src/analyze/gui/chartwidgetqwtplot.cpp index 08cefeb..5d4dfde 100644 --- a/src/analyze/gui/chartwidgetqwtplot.cpp +++ b/src/analyze/gui/chartwidgetqwtplot.cpp @@ -58,7 +58,7 @@ protected: return {}; } QwtText text; - text.setRenderFlags(text.renderFlags() & ~Qt::AlignHorizontal_Mask | Qt::AlignLeft); + text.setRenderFlags((text.renderFlags() & ~Qt::AlignHorizontal_Mask) | Qt::AlignLeft); text.setBorderRadius(6); QString tooltip; if (m_plot->getCurveTooltip(pos, tooltip)) diff --git a/src/analyze/gui/contextmenuqwt.cpp b/src/analyze/gui/contextmenuqwt.cpp index d844803..db1e1c7 100644 --- a/src/analyze/gui/contextmenuqwt.cpp +++ b/src/analyze/gui/contextmenuqwt.cpp @@ -174,6 +174,7 @@ void ContextMenuQwt::handleKeyPress(QKeyEvent *event) { m_showVLinesAction->activate(QAction::Trigger); } + break; case Qt::Key_B: if (m_showCurveBordersAction) { diff --git a/src/analyze/gui/histogramwidgetqwtplot.cpp b/src/analyze/gui/histogramwidgetqwtplot.cpp index 13a692e..d037725 100644 --- a/src/analyze/gui/histogramwidgetqwtplot.cpp +++ b/src/analyze/gui/histogramwidgetqwtplot.cpp @@ -160,7 +160,7 @@ protected: return {}; } QwtText text("

" + s + "

"); - text.setRenderFlags(text.renderFlags() & ~Qt::AlignHorizontal_Mask | Qt::AlignLeft); + text.setRenderFlags((text.renderFlags() & ~Qt::AlignHorizontal_Mask) | Qt::AlignLeft); text.setColor(Qt::white); // QColor c(Qt::darkGreen); QColor c(0, 0x60, 0); diff --git a/src/analyze/gui/mainwindow.cpp b/src/analyze/gui/mainwindow.cpp index 2cbf6f5..9537d07 100644 --- a/src/analyze/gui/mainwindow.cpp +++ b/src/analyze/gui/mainwindow.cpp @@ -732,7 +732,7 @@ void MainWindow::setupStacks() static void selectFile(QWidget *parent, QLineEdit *fileNameEdit) { QString fileName = QFileDialog::getOpenFileName(parent, "Select Data File", - "", "GZ (*.gz);; All files (*)"); + "", "GZip files (*.gz);; All files (*)"); if (!fileName.isEmpty()) { fileNameEdit->setText(fileName);