[SCM] ktp-contact-list packaging branch, master, updated. debian/15.12.1-2-1070-g6c56f91
Maximiliano Curia
maxy at moszumanska.debian.org
Sat May 28 00:10:00 UTC 2016
Gitweb-URL: http://git.debian.org/?p=pkg-kde/applications/ktp-contact-list.git;a=commitdiff;h=a57ea96
The following commit has been merged in the master branch:
commit a57ea96a82598efd6ce267cb43125d3f40c31985
Author: Martin Klapetek <martin.klapetek at gmail.com>
Date: Wed Mar 14 10:32:49 2012 +0100
Always hide the overlay buttons when mouse leaves the widget
This makes sure that the presence message is always shown for contacts
when you don't hover over them
Reviewed-by: Dominik Cermak
REVIEW: 104184
BUG: 291820
---
contact-list-widget.cpp | 11 +++++++++++
contact-list-widget.h | 1 +
2 files changed, 12 insertions(+)
diff --git a/contact-list-widget.cpp b/contact-list-widget.cpp
index 514a5d9..5dc1f17 100644
--- a/contact-list-widget.cpp
+++ b/contact-list-widget.cpp
@@ -548,6 +548,17 @@ void ContactListWidget::setDropIndicatorRect(const QRect &rect)
}
}
+bool ContactListWidget::event(QEvent *event)
+{
+ Q_D(ContactListWidget);
+ if (event->type() == QEvent::Leave && d->delegate) {
+ d->delegate->reshowStatusMessageSlot();
+ return true;
+ }
+
+ return QTreeView::event(event);
+}
+
void ContactListWidget::mousePressEvent(QMouseEvent *event)
{
Q_D(ContactListWidget);
diff --git a/contact-list-widget.h b/contact-list-widget.h
index 154fc8f..9688c0c 100644
--- a/contact-list-widget.h
+++ b/contact-list-widget.h
@@ -78,6 +78,7 @@ Q_SIGNALS:
protected:
void setDropIndicatorRect(const QRect &rect);
+ virtual bool event(QEvent *event);
virtual void mousePressEvent(QMouseEvent *event);
virtual void mouseMoveEvent(QMouseEvent *event);
virtual void paintEvent(QPaintEvent *event);
--
ktp-contact-list packaging
More information about the pkg-kde-commits
mailing list