summary refs log tree commit diff
path: root/src/ui/FlatButton.cc
diff options
context:
space:
mode:
authorKonstantinos Sideris <sideris.konstantin@gmail.com>2017-06-02 18:04:51 +0300
committerKonstantinos Sideris <sideris.konstantin@gmail.com>2017-06-02 18:04:51 +0300
commitb8c8fed655bd54b9bc805fd599577e87a239788d (patch)
tree070faafcc3921f2e14db26d882df83d65ee4e811 /src/ui/FlatButton.cc
parentDon't mark messages from local user as unread (diff)
downloadnheko-b8c8fed655bd54b9bc805fd599577e87a239788d.tar.xz
Show confirmation dialog on logout
Minor stylistic refactoring

closes #29
Diffstat (limited to '')
-rw-r--r--src/ui/FlatButton.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ui/FlatButton.cc b/src/ui/FlatButton.cc
index a4f42a5d..183b2294 100644
--- a/src/ui/FlatButton.cc
+++ b/src/ui/FlatButton.cc
@@ -29,6 +29,7 @@ void FlatButton::init()
 	setStyle(&ThemeManager::instance());
 	setAttribute(Qt::WA_Hover);
 	setMouseTracking(true);
+	setCursor(QCursor(Qt::PointingHandCursor));
 
 	QPainterPath path;
 	path.addRoundedRect(rect(), corner_radius_, corner_radius_);
@@ -336,7 +337,7 @@ void FlatButton::mousePressEvent(QMouseEvent *event)
 		ripple->setOpacityStartValue(0.35);
 		ripple->setColor(foregroundColor());
 		ripple->radiusAnimation()->setDuration(250);
-		ripple->opacityAnimation()->setDuration(400);
+		ripple->opacityAnimation()->setDuration(250);
 
 		ripple_overlay_->addRipple(ripple);
 	}