[Pkg-owncloud-commits] [owncloud-client] 318/484: ActivityDelegate: Gray out font if account is not connected.

Sandro Knauß hefee-guest at moszumanska.debian.org
Wed Dec 16 00:37:58 UTC 2015


This is an automated email from the git hooks/post-receive script.

hefee-guest pushed a commit to branch master
in repository owncloud-client.

commit ddcec2971e18128f2999e320a8abc6edea1442fc
Author: Klaas Freitag <freitag at owncloud.com>
Date:   Fri Nov 13 12:48:25 2015 +0100

    ActivityDelegate: Gray out font if account is not connected.
    
    This gives a visual indication of the account not being connected
    and as a result maybe outdated activity data.
---
 src/gui/activityitemdelegate.cpp | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/src/gui/activityitemdelegate.cpp b/src/gui/activityitemdelegate.cpp
index e0953ee..868f74e 100644
--- a/src/gui/activityitemdelegate.cpp
+++ b/src/gui/activityitemdelegate.cpp
@@ -75,11 +75,6 @@ void ActivityItemDelegate::paint(QPainter *painter, const QStyleOptionViewItem &
     QFontMetrics fm( font );
     int margin = fm.height()/4;
 
-    // awesome to detect the timeline entry
-    // if (index.data(Timeline).toBool()) {
-    //        return;
-    // }
-
     painter->save();
 
     QIcon actionIcon      = qvariant_cast<QIcon>(index.data(ActionIconRole));
@@ -137,7 +132,7 @@ void ActivityItemDelegate::paint(QPainter *painter, const QStyleOptionViewItem &
     QString timeStr = tr("%1 on %2").arg(timeText).arg(accountRole);
     if( !accountOnline ) {
         QPalette p = option.palette;
-        painter->setBrush(p.brush(QPalette::Inactive, QPalette::WindowText));
+        painter->setPen(p.color(QPalette::Disabled, QPalette::Text));
         timeStr.append(" ");
         timeStr.append(tr("(disconnected)"));
     }

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud-client.git



More information about the Pkg-owncloud-commits mailing list