Kit config widget: Prevent horizontal scrollbar

...by using Utils::ElidingLabel rather than a plain QLabel in
QbsKitInformation.

Change-Id: I4014ee918f0ea712a2975ffb4638c495fd8e0c71
Fixes: QTCREATORBUG-21102
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Christian Kandeler
2018-10-01 17:54:12 +02:00
parent efc39304a1
commit 0776659503

View File

@@ -30,11 +30,11 @@
#include <projectexplorer/kitconfigwidget.h>
#include <projectexplorer/kitmanager.h>
#include <utils/elidinglabel.h>
#include <utils/qtcassert.h>
#include <qbs.h>
#include <QLabel>
#include <QPushButton>
using namespace ProjectExplorer;
@@ -48,7 +48,7 @@ class ConfigWidget final : public KitConfigWidget
public:
ConfigWidget(Kit *kit, const KitInformation *kitInfo)
: KitConfigWidget(kit, kitInfo),
m_contentLabel(new QLabel),
m_contentLabel(new Utils::ElidingLabel),
m_changeButton(new QPushButton(tr("Change...")))
{
connect(m_changeButton, &QPushButton::clicked, this, &ConfigWidget::changeProperties);