[Pkg-owncloud-commits] [owncloud-client] 130/218: UI: Expand folder treeview on single click #3585

Sandro Knauß hefee-guest at moszumanska.debian.org
Sat Oct 17 14:30:57 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 ef607e29deefc4e7d5a07ba8ff8d6483f54498a7
Author: Markus Goetz <markus at woboq.com>
Date:   Tue Sep 15 20:59:27 2015 -0400

    UI: Expand folder treeview on single click #3585
---
 src/gui/accountsettings.cpp | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/gui/accountsettings.cpp b/src/gui/accountsettings.cpp
index 4564d77..6bc0d73 100644
--- a/src/gui/accountsettings.cpp
+++ b/src/gui/accountsettings.cpp
@@ -121,6 +121,11 @@ AccountSettings::AccountSettings(AccountState *accountState, QWidget *parent) :
             this, SLOT(slotUpdateQuota(qint64,qint64)));
 
     connect(ui->deleteButton, SIGNAL(clicked()) , this, SLOT(slotDeleteAccount()));
+
+    // Expand already on single click
+    ui->_folderList->setExpandsOnDoubleClick(false);
+    QObject::connect(ui->_folderList, SIGNAL(clicked(const QModelIndex &)),
+        ui->_folderList, SLOT(expand(const QModelIndex &)));
 }
 
 void AccountSettings::slotCustomContextMenuRequested(const QPoint &pos)

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