0
0
mirror of https://github.com/yse/easy_profiler.git synced 2024-12-28 01:04:41 +08:00

(EasyGraphicsItem) Changed sync events minimum size

This commit is contained in:
Victor Zarubkin 2016-12-01 21:53:06 +03:00
parent 02349afe8b
commit a2ae2dd051

View File

@ -63,6 +63,7 @@ enum BlockItemState : int8_t
////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////
const int MIN_SYNC_SPACING = 1; const int MIN_SYNC_SPACING = 1;
const int MIN_SYNC_SIZE = 3;
const QRgb BORDERS_COLOR = ::profiler::colors::Grey600 & 0x00ffffff;// 0x00686868; const QRgb BORDERS_COLOR = ::profiler::colors::Grey600 & 0x00ffffff;// 0x00686868;
inline QRgb selectedItemBorderColor(::profiler::color_t _color) { inline QRgb selectedItemBorderColor(::profiler::color_t _color) {
@ -642,8 +643,8 @@ void EasyGraphicsItem::paint(QPainter* _painter, const QStyleOptionGraphicsItem*
left = prevRight; left = prevRight;
} }
if (width < EASY_GLOBALS.blocks_size_min) if (width < MIN_SYNC_SIZE)
width = EASY_GLOBALS.blocks_size_min; width = MIN_SYNC_SIZE;
const bool self_thread = item.node->id() != 0 && EASY_GLOBALS.profiler_blocks.find(item.node->id()) != EASY_GLOBALS.profiler_blocks.end(); const bool self_thread = item.node->id() != 0 && EASY_GLOBALS.profiler_blocks.find(item.node->id()) != EASY_GLOBALS.profiler_blocks.end();
::profiler::color_t color = 0; ::profiler::color_t color = 0;