Merge remote-tracking branch 'origin/4.14'

Change-Id: Ib9512b4fc5e17b04ca4be79fc315e79a52d06497
This commit is contained in:
Eike Ziller
2021-02-22 12:19:58 +01:00
8 changed files with 60 additions and 1 deletions

View File

@@ -152,6 +152,25 @@ else()
) )
endif() endif()
# install qmake support files
install(
FILES
qtcreator.pri
qtcreatordata.pri
qtcreator_ide_branding.pri
DESTINATION include
COMPONENT Devel EXCLUDE_FROM_ALL
)
install(
FILES
src/qtcreatorlibrary.pri
src/qtcreatorplugin.pri
src/qtcreatortool.pri
src/rpath.pri
DESTINATION include/src
COMPONENT Devel EXCLUDE_FROM_ALL
)
feature_summary(INCLUDE_QUIET_PACKAGES WHAT feature_summary(INCLUDE_QUIET_PACKAGES WHAT
PACKAGES_FOUND PACKAGES_NOT_FOUND PACKAGES_FOUND PACKAGES_NOT_FOUND
ENABLED_FEATURES DISABLED_FEATURES ENABLED_FEATURES DISABLED_FEATURES

View File

@@ -161,7 +161,14 @@ function(add_qtc_library name)
add_library(${name} ${library_type} ${_arg_SOURCES}) add_library(${name} ${library_type} ${_arg_SOURCES})
add_library(QtCreator::${name} ALIAS ${name}) add_library(QtCreator::${name} ALIAS ${name})
set_public_headers(${name} "${_arg_SOURCES}") set_public_headers(${name} "${_arg_SOURCES}")
# transitional qmake plugin build support
string(TOLOWER "${name}" lowername)
set(dependencies_pri "${CMAKE_CURRENT_SOURCE_DIR}/${lowername}_dependencies.pri")
if(EXISTS ${dependencies_pri})
qtc_add_public_header(${dependencies_pri})
endif()
# TODO remove, see above # TODO remove, see above
if (_arg_SOURCES_PREFIX) if (_arg_SOURCES_PREFIX)
@@ -412,7 +419,14 @@ function(add_qtc_plugin target_name)
add_library(${target_name} SHARED ${_arg_SOURCES}) add_library(${target_name} SHARED ${_arg_SOURCES})
add_library(QtCreator::${target_name} ALIAS ${target_name}) add_library(QtCreator::${target_name} ALIAS ${target_name})
set_public_headers(${target_name} "${_arg_SOURCES}") set_public_headers(${target_name} "${_arg_SOURCES}")
# transitional qmake plugin build support
string(TOLOWER "${target_name}" lowername)
set(dependencies_pri "${CMAKE_CURRENT_SOURCE_DIR}/${lowername}_dependencies.pri")
if(EXISTS ${dependencies_pri})
qtc_add_public_header(${dependencies_pri})
endif()
### Generate EXPORT_SYMBOL ### Generate EXPORT_SYMBOL
string(TOUPPER "${name}_LIBRARY" EXPORT_SYMBOL) string(TOUPPER "${name}_LIBRARY" EXPORT_SYMBOL)

View File

@@ -50,6 +50,11 @@ Projects
* Fixed crash in environment settings (QTCREATORBUG-25170) * Fixed crash in environment settings (QTCREATORBUG-25170)
### CMake
* Fixed that CMake version support was not re-checked when changing its path in
settings (QTCREATORBUG-25250)
### qmake ### qmake
* Fixed unnecessary `qmake` run if `separate_debug_info` is force-disabled * Fixed unnecessary `qmake` run if `separate_debug_info` is force-disabled
@@ -57,6 +62,10 @@ Projects
* Fixed wrong messages in `Issues` pane from cumulative parsing * Fixed wrong messages in `Issues` pane from cumulative parsing
(QTCREATORBUG-25201) (QTCREATORBUG-25201)
### Meson
* Fixed crash when switching build type
Debugging Debugging
--------- ---------
@@ -86,13 +95,16 @@ Platforms
Credits for these changes go to: Credits for these changes go to:
-------------------------------- --------------------------------
Alessandro Portale Alessandro Portale
Alexis Jeandet
Andre Hartmann Andre Hartmann
André Pönitz André Pönitz
Björn Schäpers Björn Schäpers
Christiaan Janssen
Christian Kandeler Christian Kandeler
Christian Stenger Christian Stenger
Cristian Adam Cristian Adam
David Schulz David Schulz
Denis Shienkov
Eike Ziller Eike Ziller
Henning Gruendl Henning Gruendl
Ivan Komissarov Ivan Komissarov
@@ -105,6 +117,7 @@ Lukasz Ornatek
Mahmoud Badri Mahmoud Badri
Marco Bubke Marco Bubke
Michael Winkelmann Michael Winkelmann
Miikka Heikkinen
Orgad Shaneh Orgad Shaneh
Thomas Hartmann Thomas Hartmann
Tim Jenssen Tim Jenssen

View File

@@ -787,6 +787,8 @@ class Dumper(DumperBase):
def removeTypePrefix(self, name): def removeTypePrefix(self, name):
return re.sub('^(struct|class|union|enum|typedef) ', '', name) return re.sub('^(struct|class|union|enum|typedef) ', '', name)
__funcSignature_Regex__ = re.compile(r'^.+\(.*\)')
def lookupNativeType(self, name): def lookupNativeType(self, name):
#DumperBase.warn('LOOKUP TYPE NAME: %s' % name) #DumperBase.warn('LOOKUP TYPE NAME: %s' % name)
typeobj = self.typeCache.get(name) typeobj = self.typeCache.get(name)
@@ -807,6 +809,9 @@ class Dumper(DumperBase):
# Note that specifying a prefix like enum or typedef or class will make the call fail to # Note that specifying a prefix like enum or typedef or class will make the call fail to
# find the type, thus the prefix is stripped. # find the type, thus the prefix is stripped.
nonPrefixedName = self.canonicalTypeName(self.removeTypePrefix(name)) nonPrefixedName = self.canonicalTypeName(self.removeTypePrefix(name))
if __funcSignature_Regex__.match(nonPrefixedName) is not None:
return lldb.SBType()
typeobjlist = self.target.FindTypes(nonPrefixedName) typeobjlist = self.target.FindTypes(nonPrefixedName)
if typeobjlist.IsValid(): if typeobjlist.IsValid():
for typeobj in typeobjlist: for typeobj in typeobjlist:

View File

@@ -43,6 +43,9 @@ add_qtc_library(KSyntaxHighlighting SHARED
src/lib/xml_p.h src/lib/xml_p.h
) )
qtc_add_public_header(autogenerated/src/lib/State) qtc_add_public_header(autogenerated/src/lib/State)
# transitional qmake plugin build support
qtc_add_public_header(${CMAKE_CURRENT_SOURCE_DIR}/../../../shared/syntax/syntax_shared.pri)
qtc_add_public_header(syntax-highlighting_dependencies.pri)
if(TARGET KSyntaxHighlighting) if(TARGET KSyntaxHighlighting)
install( install(

View File

@@ -20,3 +20,5 @@ add_qtc_library(QtcSsh
sshremoteprocessrunner.cpp sshremoteprocessrunner.h sshremoteprocessrunner.cpp sshremoteprocessrunner.h
sshsettings.cpp sshsettings.h sshsettings.cpp sshsettings.h
) )
# transitional qmake plugin build support
qtc_add_public_header(ssh_dependencies.pri)

View File

@@ -206,3 +206,6 @@ if ((NOT WIN32) AND (NOT APPLE))
) )
endforeach() endforeach()
endif() endif()
# transitional qmake plugin build support
qtc_add_public_header(coreplugin_dependencies.pri)

View File

@@ -186,7 +186,7 @@ FormEditorItem *FormEditorScene::addFormEditorItem(const QmlItemNode &qmlItemNod
else else
formEditorItem = new FormEditorItem(qmlItemNode, this); formEditorItem = new FormEditorItem(qmlItemNode, this);
Q_ASSERT(!m_qmlItemNodeItemHash.contains(qmlItemNode)); QTC_ASSERT(!m_qmlItemNodeItemHash.contains(qmlItemNode), ;);
m_qmlItemNodeItemHash.insert(qmlItemNode, formEditorItem); m_qmlItemNodeItemHash.insert(qmlItemNode, formEditorItem);
if (qmlItemNode.isRootNode()) { if (qmlItemNode.isRootNode()) {