[Pkg-owncloud-commits] [owncloud-client] 304/498: Qt4 SelectiveSyncDialog: Give a better size to the column by default

Sandro Knauß hefee-guest at moszumanska.debian.org
Tue Aug 11 14:49:01 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 92dc3047d0ce143b553fd165bff5657a3fd49ac8
Author: Olivier Goffart <ogoffart at woboq.com>
Date:   Tue Jul 14 15:18:55 2015 +0200

    Qt4 SelectiveSyncDialog: Give a better size to the column by default
    
    Issue #3239
    The feature to dynamically resize the column only came with Qt5,
    But give a better default size of the name column so we can read the
    contents.
---
 src/gui/selectivesyncdialog.cpp | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/gui/selectivesyncdialog.cpp b/src/gui/selectivesyncdialog.cpp
index 320342f..251b1c1 100644
--- a/src/gui/selectivesyncdialog.cpp
+++ b/src/gui/selectivesyncdialog.cpp
@@ -65,6 +65,8 @@ SelectiveSyncTreeView::SelectiveSyncTreeView(AccountPtr account, QWidget* parent
 #if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0)
     header()->setSectionResizeMode(0, QHeaderView::QHeaderView::ResizeToContents);
     header()->setSectionResizeMode(1, QHeaderView::QHeaderView::ResizeToContents);
+#else
+    header()->resizeSection(0, sizeHint().width()/2);
 #endif
     header()->setStretchLastSection(true);
     headerItem()->setText(0, tr("Name"));

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