Commit 4ef8bd53 authored by J-P Nurmi's avatar J-P Nurmi
Browse files

FolderNavigationWidget: use Utils::ElidingLabel as title



Otherwise, when entering a folder with a long name, the long title
causes the whole side bar to be expanded (and it cannot be even
resized smaller by hand).

Change-Id: I1611d2ca62e6260aeaed47dd993efa0a4243266d
Reviewed-by: default avatarDaniel Teske <daniel.teske@digia.com>
parent 4fdc0daa
......@@ -47,6 +47,7 @@
#include <utils/environment.h>
#include <utils/pathchooser.h>
#include <utils/qtcassert.h>
#include <utils/elidinglabel.h>
#include <QDebug>
#include <QSize>
......@@ -135,7 +136,7 @@ FolderNavigationWidget::FolderNavigationWidget(QWidget *parent)
m_fileSystemModel(new FolderNavigationModel(this)),
m_filterHiddenFilesAction(new QAction(tr("Show Hidden Files"), this)),
m_filterModel(new DotRemovalFilter(this)),
m_title(new QLabel(this)),
m_title(new Utils::ElidingLabel(this)),
m_autoSync(false),
m_toggleSync(new QToolButton(this))
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment