[Pkg-owncloud-commits] [owncloud-client] 17/159: Add-folder wizard: Make sure there is a scrollbar if folder names are too long

Sandro Knauß hefee-guest at moszumanska.debian.org
Fri May 1 13:05:17 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 653a00d63d1639bb3ebe784e25e8f126f8b4aca7
Author: Olivier Goffart <ogoffart at woboq.com>
Date:   Mon Mar 23 16:28:42 2015 +0100

    Add-folder wizard: Make sure there is a scrollbar if folder names are too long
    
    Fixes #2962
---
 src/gui/folderwizard.cpp | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/gui/folderwizard.cpp b/src/gui/folderwizard.cpp
index 6326194..88097f6 100644
--- a/src/gui/folderwizard.cpp
+++ b/src/gui/folderwizard.cpp
@@ -246,6 +246,12 @@ FolderWizardRemotePath::FolderWizardRemotePath(AccountPtr account)
     _lscolTimer.setInterval(500);
     _lscolTimer.setSingleShot(true);
     connect(&_lscolTimer, SIGNAL(timeout()), SLOT(slotLsColFolderEntry()));
+
+#if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0)
+    _ui.folderTreeWidget->header()->setSectionResizeMode(0,QHeaderView::ResizeToContents);
+    // Make sure that there will be a scrollbar when the contents is too wide
+    _ui.folderTreeWidget->header()->setStretchLastSection(false);
+#endif
 }
 
 void FolderWizardRemotePath::slotAddRemoteFolder()

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