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

(EasyDescWidget) refactoring

This commit is contained in:
Victor Zarubkin 2016-09-18 20:21:07 +03:00
parent 89ff53c3c8
commit 70bdd755f5

View File

@ -45,7 +45,6 @@
#include <thread>
#include "descriptors_tree_widget.h"
#include "globals.h"
#include "../src/hashed_cstr.h"
#ifdef _WIN32
#include <Windows.h>
@ -492,7 +491,7 @@ int EasyDescTreeWidget::findNext(const QString& _str)
for (auto item : itemsList)
{
if (item->parent() != nullptr) for (int i = 0; i < DESC_COL_COLUMNS_NUMBER; ++i)
item->setBackgroundColor(i, Qt::yellow);
item->setBackgroundColor(i, QColor::fromRgba(0x80000000 | (0x00ffffff & ::profiler::colors::Yellow)));
}
}
@ -558,7 +557,7 @@ int EasyDescTreeWidget::findPrev(const QString& _str)
for (auto item : itemsList)
{
if (item->parent() != nullptr) for (int i = 0; i < DESC_COL_COLUMNS_NUMBER; ++i)
item->setBackgroundColor(i, Qt::yellow);
item->setBackgroundColor(i, QColor::fromRgba(0x80000000 | (0x00ffffff & ::profiler::colors::Yellow)));
}
}