forked from qt-creator/qt-creator
CMakePM: Display current value in CMake settings as tooltip
If you change the value of a CMake parameter in CMake settings the new value was not displayed in the tooltip, the old value was. Change-Id: Ie182ef42f8bf48651d170da8054d7f60f9080088 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
@@ -526,10 +526,9 @@ QString ConfigModelTreeItem::toolTip() const
|
||||
tooltip << QCoreApplication::translate("CMakeProjectManager", "<p>Kit: <b>%1</b></p>")
|
||||
.arg(dataItem->kitValue);
|
||||
|
||||
if (dataItem->value != dataItem->newValue)
|
||||
tooltip << QCoreApplication::translate("CMakeProjectManager",
|
||||
"<p>Initial Configuration: <b>%1</b></p>")
|
||||
.arg(dataItem->value);
|
||||
.arg(dataItem->currentValue());
|
||||
} else {
|
||||
if (!dataItem->initialValue.isEmpty())
|
||||
tooltip << QCoreApplication::translate("CMakeProjectManager",
|
||||
@@ -537,10 +536,9 @@ QString ConfigModelTreeItem::toolTip() const
|
||||
.arg(dataItem->initialValue);
|
||||
|
||||
if (dataItem->inCMakeCache) {
|
||||
if (dataItem->value != dataItem->newValue)
|
||||
tooltip << QCoreApplication::translate("CMakeProjectManager",
|
||||
"<p>Current Configuration: <b>%1</b></p>")
|
||||
.arg(dataItem->value);
|
||||
.arg(dataItem->currentValue());
|
||||
} else {
|
||||
tooltip << QCoreApplication::translate("CMakeProjectManager",
|
||||
"<p>Not in CMakeCache.txt</p>");
|
||||
|
||||
Reference in New Issue
Block a user