const int ViewItem::HighlightRadius = 3;
ViewItem::ViewItem() :
- context_parent_(NULL),
+ context_parent_(nullptr),
drag_point_(INT_MIN, INT_MIN),
selected_(false)
{
return new QMenu(parent);
}
+widgets::Popup* ViewItem::create_popup(QWidget *parent)
+{
+ (void)parent;
+ return nullptr;
+}
+
void ViewItem::delete_pressed()
{
}
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