forked from qt-creator/qt-creator
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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user