From 5c4904756f73ed4c5593aae2424948b55ce17367 Mon Sep 17 00:00:00 2001 From: Victor Zarubkin Date: Wed, 16 Nov 2016 23:13:43 +0300 Subject: [PATCH] (EasyGraphicsScrollbar) Changed dash-line color to black for better perception --- profiler_gui/easy_graphics_scrollbar.cpp | 5 +---- profiler_gui/globals.h | 1 - 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/profiler_gui/easy_graphics_scrollbar.cpp b/profiler_gui/easy_graphics_scrollbar.cpp index c3560a5..ef6dbf8 100644 --- a/profiler_gui/easy_graphics_scrollbar.cpp +++ b/profiler_gui/easy_graphics_scrollbar.cpp @@ -286,11 +286,8 @@ void EasyMinimapItem::paint(QPainter* _painter, const QStyleOptionGraphicsItem* if (m_minDuration < EASY_GLOBALS.frame_time && EASY_GLOBALS.frame_time < m_maxDuration) { // Draw marker displaying required frame_time step - QPen p(Qt::DashLine); - p.setColor(::profiler_gui::TIMELINE_MARKER_COLOR); - _painter->setPen(p); - const auto h = bottom - (EASY_GLOBALS.frame_time - m_minDuration) * coeff; + _painter->setPen(Qt::DashLine); _painter->drawLine(QLineF(0, h, m_boundingRect.width(), h)); } diff --git a/profiler_gui/globals.h b/profiler_gui/globals.h index 65fd935..3caa706 100644 --- a/profiler_gui/globals.h +++ b/profiler_gui/globals.h @@ -63,7 +63,6 @@ namespace profiler_gui { const QColor CHRONOMETER_COLOR = QColor::fromRgba(0x40000000 | (::profiler::colors::RichBlue & 0x00ffffff));// 0x402020c0); const QColor CHRONOMETER_COLOR2 = QColor::fromRgba(0x40000000 | (::profiler::colors::Dark & 0x00ffffff));// 0x40408040); - const QRgb TIMELINE_MARKER_COLOR = ::profiler::colors::Purple; const QRgb SELECTED_THREAD_BACKGROUND = 0x00e0e060; const QRgb SELECTED_THREAD_FOREGROUND = 0x00ffffff - SELECTED_THREAD_BACKGROUND;