Merge remote-tracking branch 'origin/4.5' into 4.6

Conflicts:
	src/shared/qbs

Change-Id: Ib734825a302efe41021307d7d64eb7b453262dc4
This commit is contained in:
Eike Ziller
2018-01-25 10:16:46 +01:00
10 changed files with 24 additions and 19 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 24 KiB

After

Width:  |  Height:  |  Size: 85 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 18 KiB

After

Width:  |  Height:  |  Size: 62 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 24 KiB

After

Width:  |  Height:  |  Size: 37 KiB

View File

@@ -193,7 +193,7 @@
</property> </property>
<property name="icon"> <property name="icon">
<iconset resource="resources.qrc"> <iconset resource="resources.qrc">
<normaloff>:/qmldesigner/images/tile-icon-hor - scale.png</normaloff>:/qmldesigner/images/tile-icon-hor - scale.png</iconset> <normaloff>:/qmldesigner/images/tile-icon-hor-scale.png</normaloff>:/qmldesigner/images/tile-icon-hor-scale.png</iconset>
</property> </property>
<property name="iconSize"> <property name="iconSize">
<size> <size>

View File

Before

Width:  |  Height:  |  Size: 270 B

After

Width:  |  Height:  |  Size: 270 B

View File

@@ -35,7 +35,7 @@
<file>images/aspect-crop-icon.png</file> <file>images/aspect-crop-icon.png</file>
<file>images/tile-icon-vert-crop.png</file> <file>images/tile-icon-vert-crop.png</file>
<file>images/tile-icon-hor-crop.png</file> <file>images/tile-icon-hor-crop.png</file>
<file>images/tile-icon-hor - scale.png</file> <file>images/tile-icon-hor-scale.png</file>
<file>images/tile-icon-vert-scale.png</file> <file>images/tile-icon-vert-scale.png</file>
<file>images/anchor_bottom.png</file> <file>images/anchor_bottom.png</file>
<file>images/anchor_bottom@2x.png</file> <file>images/anchor_bottom@2x.png</file>

View File

@@ -51,6 +51,27 @@ namespace ProjectExplorer {
// Helpers // Helpers
// -------------------------------------------------------------------------- // --------------------------------------------------------------------------
static Abi::Architecture architectureFromQt()
{
const QString arch = QSysInfo::buildCpuArchitecture();
if (arch.startsWith("arm"))
return Abi::ArmArchitecture;
if (arch.startsWith("x86") || arch == "i386")
return Abi::X86Architecture;
if (arch == "ia64")
return Abi::ItaniumArchitecture;
if (arch.startsWith("mips"))
return Abi::MipsArchitecture;
if (arch.startsWith("power"))
return Abi::PowerPCArchitecture;
if (arch.startsWith("sh")) // Not in Qt documentation!
return Abi::ShArchitecture;
if (arch.startsWith("avr")) // Not in Qt documentation!
return Abi::AvrArchitecture;
return Abi::UnknownArchitecture;
}
static quint8 getUint8(const QByteArray &data, int pos) static quint8 getUint8(const QByteArray &data, int pos)
{ {
return static_cast<quint8>(data.at(pos)); return static_cast<quint8>(data.at(pos));
@@ -840,7 +861,7 @@ Abi::OSFlavor Abi::flavorForMsvcVersion(int version)
Abi Abi::hostAbi() Abi Abi::hostAbi()
{ {
Architecture arch = QTC_CPU; // define set by qmake Architecture arch = architectureFromQt();
OS os = UnknownOS; OS os = UnknownOS;
OSFlavor subos = UnknownFlavor; OSFlavor subos = UnknownFlavor;
BinaryFormat format = UnknownFormat; BinaryFormat format = UnknownFormat;

View File

@@ -332,11 +332,4 @@ journald {
RESOURCES += projectexplorer.qrc RESOURCES += projectexplorer.qrc
# Some way to override the architecture used in Abi:
!isEmpty($$(QTC_CPU)) {
DEFINES += QTC_CPU=$$(QTC_CPU)
} else {
DEFINES += QTC_CPU=X86Architecture
}
DEFINES += PROJECTEXPLORER_LIBRARY DEFINES += PROJECTEXPLORER_LIBRARY

View File

@@ -15,8 +15,6 @@ Project {
Depends { name: "TextEditor" } Depends { name: "TextEditor" }
Depends { name: "app_version_header" } Depends { name: "app_version_header" }
cpp.defines: base.concat("QTC_CPU=X86Architecture")
Group { Group {
name: "General" name: "General"
files: [ files: [

View File

@@ -25,13 +25,6 @@
\" <comment>Linguist compiled translations</comment>\", \" <comment>Linguist compiled translations</comment>\",
\" <glob pattern=\'*.qm\'/>\", \" <glob pattern=\'*.qm\'/>\",
\" </mime-type>\", \" </mime-type>\",
\" <mime-type type=\'application/x-linguist\'>\",
\" <comment>Linguist source translations</comment>\",
\" <magic>\",
\" <match value=\'&lt;TS\' type=\'string\' offset=\'0:256\'/>\",
\" </magic>\",
\" <glob pattern=\'*.ts\' weight=\'70\'/>\",
\" </mime-type>\",
\" <mime-type type=\'application/scxml+xml\'>\", \" <mime-type type=\'application/scxml+xml\'>\",
\" <comment>SCXML State Chart</comment>\", \" <comment>SCXML State Chart</comment>\",
\" <sub-class-of type=\'application/xml\'/>\", \" <sub-class-of type=\'application/xml\'/>\",