forked from qt-creator/qt-creator
Move some knowledge from KitAspectWidget to KitAspect
The authoritative source of information about a KitAspect is the KitAspect itself, not the associated widget. Change-Id: I72d3d0425b845457846a940350bab59f1ff0cc2c Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -61,15 +61,8 @@ public:
|
||||
|
||||
private:
|
||||
QWidget *mainWidget() const override { return m_lineEdit; }
|
||||
QString displayName() const override { return tr("Qt mkspec"); }
|
||||
void makeReadOnly() override { m_lineEdit->setEnabled(false); }
|
||||
|
||||
QString toolTip() const override
|
||||
{
|
||||
return tr("The mkspec to use when building the project with qmake.<br>"
|
||||
"This setting is ignored when using other build systems.");
|
||||
}
|
||||
|
||||
void refresh() override
|
||||
{
|
||||
if (!m_ignoreChange)
|
||||
@@ -92,6 +85,9 @@ QmakeKitAspect::QmakeKitAspect()
|
||||
{
|
||||
setObjectName(QLatin1String("QmakeKitAspect"));
|
||||
setId(QmakeKitAspect::id());
|
||||
setDisplayName(tr("Qt mkspec"));
|
||||
setDescription(tr("The mkspec to use when building the project with qmake.<br>"
|
||||
"This setting is ignored when using other build systems."));
|
||||
setPriority(24000);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user