[Pkg-owncloud-commits] [owncloud-client] 279/484: Account: Show local path in tooltip

Sandro Knauß hefee-guest at moszumanska.debian.org
Wed Dec 16 00:37:53 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 81e3a623601e9d18b20ecd61233c7d218b0744fa
Author: Markus Goetz <markus at woboq.com>
Date:   Mon Nov 9 16:38:48 2015 +0100

    Account: Show local path in tooltip
---
 src/gui/folderstatusmodel.cpp | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)

diff --git a/src/gui/folderstatusmodel.cpp b/src/gui/folderstatusmodel.cpp
index fd52a38..fc8277c 100644
--- a/src/gui/folderstatusmodel.cpp
+++ b/src/gui/folderstatusmodel.cpp
@@ -185,11 +185,16 @@ QVariant FolderStatusModel::data(const QModelIndex &index, int role) const
     case FolderStatusDelegate::FolderAliasRole        : return  f->alias();
     case FolderStatusDelegate::FolderSyncPaused       : return  f->syncPaused();
     case FolderStatusDelegate::FolderAccountConnected : return  accountConnected;
-    case Qt::ToolTipRole:
+    case Qt::ToolTipRole: {
+        QString toolTip;
         if ( accountConnected )
-            return Theme::instance()->statusHeaderText(f->syncResult().status());
+            toolTip = Theme::instance()->statusHeaderText(f->syncResult().status());
         else
-            return tr("Signed out");
+            toolTip = tr("Signed out");
+        toolTip += "\n";
+        toolTip += folderInfo._folder->path();
+        return toolTip;
+    }
     case FolderStatusDelegate::FolderStatusIconRole:
         if ( accountConnected ) {
             auto theme = Theme::instance();

-- 
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