diff options
author | Olivier Goffart <ogoffart@woboq.com> | 2015-03-23 18:28:42 +0300 |
---|---|---|
committer | Olivier Goffart <ogoffart@woboq.com> | 2015-03-23 18:32:41 +0300 |
commit | 653a00d63d1639bb3ebe784e25e8f126f8b4aca7 (patch) | |
tree | 18c7a26272ac73446551eeb2857b687f4c58edf6 /src/gui/folderwizard.cpp | |
parent | 3c9acdf724e3bc01be2da1ea0d6467a8f42c6ae6 (diff) |
Add-folder wizard: Make sure there is a scrollbar if folder names are too long
Fixes #2962
Diffstat (limited to 'src/gui/folderwizard.cpp')
-rw-r--r-- | src/gui/folderwizard.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gui/folderwizard.cpp b/src/gui/folderwizard.cpp index 6326194cd..88097f679 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() |