aboutsummaryrefslogtreecommitdiffstats
path: root/QtVsTools.Core
diff options
context:
space:
mode:
authorKarsten Heimrich <karsten.heimrich@qt.io>2021-12-16 15:24:15 +0100
committerKarsten Heimrich <karsten.heimrich@qt.io>2021-12-17 15:49:14 +0000
commit2802dc9ea8131da90e101749dbe6df3cfe2a84b7 (patch)
tree22e1cd840bfd0b7b9a99482a748aacf7700d2582 /QtVsTools.Core
parent987a0f695eb4e3399414f0a67f2eede5c40cff55 (diff)
Fix "Finish" button always disabled in Qt Class Wizard
* Calm down som warnings in VS2022. * Make the wizard message more generic. Fixes: QTVSADDINBUG-930 Change-Id: I821706fb89a649079baa72edd7fd57a5273529fb Reviewed-by: Miguel Costa <miguel.costa@qt.io>
Diffstat (limited to 'QtVsTools.Core')
-rw-r--r--QtVsTools.Core/QtModule.cs19
1 files changed, 0 insertions, 19 deletions
diff --git a/QtVsTools.Core/QtModule.cs b/QtVsTools.Core/QtModule.cs
index 941d3dd3..5452b252 100644
--- a/QtVsTools.Core/QtModule.cs
+++ b/QtVsTools.Core/QtModule.cs
@@ -106,24 +106,5 @@ namespace QtVsTools.Core
return AdditionalLibrariesDebug;
return AdditionalLibraries;
}
-
- public static bool IsInstalled(string moduleName)
- {
- var qtVersion = QtVersionManager.The().GetDefaultVersion();
- if (qtVersion == null) {
- throw new QtVSException("Unable to find a Qt build!" + Environment.NewLine
- + "To solve this problem specify a Qt build.");
- }
-
- var installPath = QtVersionManager.The().GetInstallPath(qtVersion);
- if (moduleName.StartsWith("Qt", StringComparison.Ordinal))
- moduleName = "Qt5" + moduleName.Substring(2);
-
- var qtVersionInfo = QtVersionManager.The().GetVersionInfo(qtVersion);
- var libPath = Path.Combine(installPath, "lib",
- string.Format("{0}{1}.lib", moduleName, qtVersionInfo.LibInfix()));
-
- return File.Exists(libPath);
- }
}
}