const int ViewItem::HighlightRadius = 3;
ViewItem::ViewItem() :
- context_parent_(NULL),
+ context_parent_(nullptr),
drag_point_(INT_MIN, INT_MIN),
selected_(false)
{
QColor ViewItem::select_text_colour(QColor background)
{
- return (background.lightness() > 64) ? Qt::black : Qt::white;
+ return (background.lightness() > 110) ? Qt::black : Qt::white;
}
} // namespace view