|
|
@ -46,9 +46,21 @@ ZoneItem::~ZoneItem() |
|
|
|
{ |
|
|
|
} |
|
|
|
|
|
|
|
void ZoneItem::mousePressEvent(QMouseEvent* event) |
|
|
|
{ |
|
|
|
Q_UNUSED(event); |
|
|
|
|
|
|
|
m_click_chrono.start(); |
|
|
|
} |
|
|
|
|
|
|
|
void ZoneItem::mouseReleaseEvent(QMouseEvent* event) { |
|
|
|
(void)event; |
|
|
|
emit clicked(); |
|
|
|
Q_UNUSED(event); |
|
|
|
|
|
|
|
if (m_click_chrono.elapsed() > 1000) { |
|
|
|
emit long_clicked(); |
|
|
|
} else { |
|
|
|
emit clicked(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
void ZoneItem::refresh(void) |
|
|
|