CMakeprojectManager: Use Utils::ElidingLabel in GeneratorKitAspect

Don't stretch the kit options page horizontally more than required.

Change-Id: I8eb3855ae48a8a172741b1c42f79b9e05cc7eb42
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
Alessandro Portale
2019-11-21 22:06:38 +01:00
parent 7a46dc620e
commit b619c60ff7

View File

@@ -318,7 +318,7 @@ class CMakeGeneratorKitAspectWidget : public KitAspectWidget
public:
CMakeGeneratorKitAspectWidget(Kit *kit, const ::KitAspect *ki)
: KitAspectWidget(kit, ki),
m_label(new QLabel),
m_label(new Utils::ElidingLabel),
m_changeButton(new QPushButton)
{
m_label->setToolTip(ki->description());
@@ -459,7 +459,7 @@ private:
}
bool m_ignoreChange = false;
QLabel *m_label;
Utils::ElidingLabel *m_label;
QPushButton *m_changeButton;
CMakeTool *m_currentTool = nullptr;
};