Merge remote-tracking branch 'origin/4.1'

Change-Id: Ie96fa53a88bcd06fa688a579c1d84aaf6f5e905f
This commit is contained in:
Orgad Shaneh
2016-07-29 16:12:02 +03:00
289 changed files with 1567 additions and 698 deletions

View File

@@ -38,10 +38,12 @@ indexes += $QDOC_INDEX_DIR/qtwidgets/qtwidgets.index \
$QDOC_INDEX_DIR/qtgui/qtgui.index \ $QDOC_INDEX_DIR/qtgui/qtgui.index \
$QDOC_INDEX_DIR/qthelp/qthelp.index \ $QDOC_INDEX_DIR/qthelp/qthelp.index \
$QDOC_INDEX_DIR/qtquickcontrols/qtquickcontrols.index \ $QDOC_INDEX_DIR/qtquickcontrols/qtquickcontrols.index \
$QDOC_INDEX_DIR/qtquickcontrols2/qtquickcontrols2.index \
$QDOC_INDEX_DIR/qtquickextras/qtquickextras.index \ $QDOC_INDEX_DIR/qtquickextras/qtquickextras.index \
$QDOC_INDEX_DIR/qtquicklayouts/qtquicklayouts.index \ $QDOC_INDEX_DIR/qtquicklayouts/qtquicklayouts.index \
$QDOC_INDEX_DIR/qtlinguist/qtlinguist.index \ $QDOC_INDEX_DIR/qtlinguist/qtlinguist.index \
$QDOC_INDEX_DIR/qtscript/qtscript.index \ $QDOC_INDEX_DIR/qtscript/qtscript.index \
$QDOC_INDEX_DIR/qtscxml/qtscxml.index \
$QDOC_INDEX_DIR/qtsensors/qtsensors.index \ $QDOC_INDEX_DIR/qtsensors/qtsensors.index \
$QDOC_INDEX_DIR/qttestlib/qttestlib.index \ $QDOC_INDEX_DIR/qttestlib/qttestlib.index \
$QDOC_INDEX_DIR/qtuitools/qtuitools.index \ $QDOC_INDEX_DIR/qtuitools/qtuitools.index \

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.7 KiB

After

Width:  |  Height:  |  Size: 4.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.4 KiB

After

Width:  |  Height:  |  Size: 5.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.0 KiB

After

Width:  |  Height:  |  Size: 4.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.9 KiB

After

Width:  |  Height:  |  Size: 3.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.3 KiB

After

Width:  |  Height:  |  Size: 4.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 32 KiB

After

Width:  |  Height:  |  Size: 14 KiB

BIN
doc/images/replace.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 715 B

View File

@@ -137,7 +137,7 @@
On OS X you can use the LLDB version delivered with Xcode or build from source. On OS X you can use the LLDB version delivered with Xcode or build from source.
The minimum supported version is LLDB 320.4. The minimum supported version is LLDB 320.4.
On Linux, the minimum supported version is LLDB 3.7. On Linux, the minimum supported version is LLDB 3.8.
\omit \omit

View File

@@ -2537,6 +2537,11 @@
\key Space. The prefix is usually a single character. Then type the search \key Space. The prefix is usually a single character. Then type the search
string (typically, a filename or class name) or the command to execute. string (typically, a filename or class name) or the command to execute.
You can also double-click a locator filter in the filter list to use it. You
can use the up and down arrow keys or the \key Ctrl+P and \key Ctrl+N
keyboard shortcuts to move up and down the list, and then press \key Enter
to use the selected filter.
For example, to locate symbols matching QDataStream: For example, to locate symbols matching QDataStream:
\list 1 \list 1

View File

@@ -486,9 +486,9 @@
You can change the property values permanently in the code editor. You can change the property values permanently in the code editor.
\section2 To-Do List \section2 To-Do Entries
The \uicontrol {To-Do List Entries} pane lists the BUG, FIXME, NOTE, TODO, and The \uicontrol {To-Do Entries} pane lists the BUG, FIXME, NOTE, TODO, and
WARNING keywords from the current file or from all project files. The WARNING keywords from the current file or from all project files. The
keywords are organized into information, warning, and error categories. keywords are organized into information, warning, and error categories.

View File

@@ -481,7 +481,8 @@
\section4 Working with Branches \section4 Working with Branches
To work with Git branches, select \uicontrol{Branches}. The checked out branch To work with Git branches, select \uicontrol Tools > \uicontrol Git >
\uicontrol {Local Repository} > \uicontrol {Branches}. The checked out branch
is shown in bold and underlined in the list of branches. Double-click branch is shown in bold and underlined in the list of branches. Double-click branch
names to edit them. names to edit them.
@@ -528,6 +529,9 @@
\row \row
\li \uicontrol Rebase \li \uicontrol Rebase
\li Copy local commits to the updated upstream head. \li Copy local commits to the updated upstream head.
\row
\li \uicontrol Reset
\li Hard reset the active branch to the selected branch.
\row \row
\li \uicontrol {Cherry Pick} \li \uicontrol {Cherry Pick}
\li Cherry pick the top commit from the selected branch. \li Cherry pick the top commit from the selected branch.
@@ -540,7 +544,8 @@
Patches are rewriting instructions that can be applied to a set of files. Patches are rewriting instructions that can be applied to a set of files.
To apply a patch file that is open in \QC, select \uicontrol Tools > \uicontrol Git > To apply a patch file that is open in \QC, select \uicontrol Tools > \uicontrol Git >
\uicontrol {Local Repository} > \uicontrol {Apply from Editor}. \uicontrol {Local Repository} > \uicontrol Patch >
\uicontrol {Apply from Editor}.
To select the patch file to apply from the file system, select To select the patch file to apply from the file system, select
\uicontrol {Apply from File}. \uicontrol {Apply from File}.

View File

@@ -241,6 +241,15 @@
information on how version control systems are integrated in information on how version control systems are integrated in
\QC, see \l{Using Version Control Systems} \QC, see \l{Using Version Control Systems}
\li Import as qmake Project
Import an existing project that does not use any of the supported
build systems: qmake, Qbs, CMake, or Autotools. The wizard creates
a qmake .pro file, which enables you to use \QC as a code editor and
as a launcher for debugging and analysis tools. However, if you want
to build the project, you might need to edit the generated .pro
file.
\li Import Existing Project \li Import Existing Project
Import an existing project that does not use any of the supported Import an existing project that does not use any of the supported
@@ -286,6 +295,10 @@
\list \list
\li Qt item model source and header files that you can use to create
classes derived from QAbstractItemModel, QAbstractTableModel, or
QAbstractListModel.
\li \QD forms and \QD form classes, which specify parts of user \li \QD forms and \QD form classes, which specify parts of user
interfaces in Qt widget based projects interfaces in Qt widget based projects
@@ -293,18 +306,32 @@
application executable application executable
\li QML files, which specify items in Qt Quick projects. \li QML files, which specify items in Qt Quick projects.
\uicontrol {Qt Quick 1} creates a QML file that imports Qt Quick 1.1 and \uicontrol {QML File (Qt Quick 2)} creates a QML file that imports
\uicontrol {Qt Quick 2} creates a QML file that imports Qt Quick 2.0. Qt Quick 2.0 and \uicontrol {Qt Quick UI File} creates an UI form
Select \uicontrol {Qt Quick 1} to add files to a Qt Quick 1 application (\e .ui.qml) and the corresponding QML file.
and \uicontrol {Qt Quick 2} to add files to a Qt Quick 2 application.
\uicontrol {Qt Quick UI File} creates an UI form (\e .ui.qml) and
the corresponding QML file.
\li JavaScript files that you can use to write the application logic in \li JavaScript files that you can use to write the application logic in
Qt Quick projects Qt Quick projects
\endlist \endlist
\li Models and state charts
\list
\li Universal Modeling Language (UML) style models with structured
diagrams. However, the model editor uses a variant of UML and
provides only a subset of properties for specifying the
appearance of model elements. For more information, see
\l {Modeling}.
\li State Chart XML (SCXML) files that contain boilerplate code for
state machines. You can use the classes in the \l {Qt SCXML}
module to embed state machines created from the files in Qt
applications.
\endlist
\li GLSL \li GLSL
GLSL files that define fragment and vertex shaders in both Qt Quick GLSL files that define fragment and vertex shaders in both Qt Quick
@@ -322,6 +349,10 @@
\endlist \endlist
\li Java
Java class files that you can use to create Java classes.
\li Python \li Python
Python class and source files that you can use to create Python Python class and source files that you can use to create Python

View File

@@ -52,7 +52,7 @@
\li Select \uicontrol Projects > \uicontrol Editor. \li Select \uicontrol Projects > \uicontrol Editor.
\li In the \uicontrol {Editor Settings} field, select \uicontrol {Custom}. \li In the \uicontrol {Editor settings} field, select \uicontrol {Custom}.
\li Specify text editor settings for the project. \li Specify text editor settings for the project.

View File

@@ -97,7 +97,7 @@
\li \l{Using Clang Static Analyzer}{Clang Static Analyzer} \li \l{Using Clang Static Analyzer}{Clang Static Analyzer}
\li \l{To-Do List}{To-Do} (experimental) \li \l{To-Do Entries}{To-Do} (experimental)
\endlist \endlist

View File

@@ -98,7 +98,7 @@
to reference the rectangle from other places. to reference the rectangle from other places.
\li Select the \uicontrol Layout tab, and then click \li Select the \uicontrol Layout tab, and then click
the \inlineimage anchor-fill-normal.png the \inlineimage anchor_fill.png
(\uicontrol {Fill to Parent}) button to anchor the rectangle (\uicontrol {Fill to Parent}) button to anchor the rectangle
to the item. to the item.

View File

@@ -109,7 +109,7 @@
size. size.
\li In the \uicontrol Color field, click the \li In the \uicontrol Color field, click the
\inlineimage button_color_none_normal.png \inlineimage icon_color_none.png
(\uicontrol Transparent) button to make the rectangle (\uicontrol Transparent) button to make the rectangle
transparent. transparent.
@@ -131,7 +131,7 @@
\uicontrol Library to \e topLeftRect in the navigator. \uicontrol Library to \e topLeftRect in the navigator.
\li Click \uicontrol {Layout}, and then click the \li Click \uicontrol {Layout}, and then click the
\inlineimage anchor-fill-normal.png \inlineimage anchor_fill.png
(\uicontrol {Fill to Parent}) button to anchor the mouse area to the (\uicontrol {Fill to Parent}) button to anchor the mouse area to the
rectangle. rectangle.

View File

@@ -71,7 +71,7 @@
the rectangle and produce rounded corners for the button. the rectangle and produce rounded corners for the button.
\li Select \uicontrol {Layout}, and then select the \li Select \uicontrol {Layout}, and then select the
\inlineimage anchor-fill-normal.png \inlineimage anchor_fill.png
(\uicontrol {Fill to Parent}) button to anchor the rectangle to (\uicontrol {Fill to Parent}) button to anchor the rectangle to
the item. the item.
@@ -198,7 +198,7 @@
for example button_up.png. for example button_up.png.
\li Click \uicontrol {Layout}, and then click the \li Click \uicontrol {Layout}, and then click the
\inlineimage anchor-fill-normal.png \inlineimage anchor_fill.png
(\uicontrol {Fill to Parent}) button to anchor the border image to the (\uicontrol {Fill to Parent}) button to anchor the border image to the
\uicontrol Item. \uicontrol Item.
@@ -248,9 +248,9 @@
\endlist \endlist
\li Click \uicontrol {Layout}, and then click the \li Click \uicontrol {Layout}, and then click the
\inlineimage anchor-vertical-normal.png \inlineimage anchor_vertical.png
(\uicontrol {Set Vertical Anchor}) and (\uicontrol {Set Vertical Anchor}) and
\inlineimage anchor-horizontal-normal.png \inlineimage anchor_horizontal.png
(\uicontrol {Set Horizontal Anchor}) (\uicontrol {Set Horizontal Anchor})
buttons to inherit the vertical and horizontal centering from buttons to inherit the vertical and horizontal centering from
the parent. the parent.

View File

@@ -90,6 +90,9 @@
when compared to Qt Quick Controls, on which the module is based. These when compared to Qt Quick Controls, on which the module is based. These
types work in conjunction with Qt Quick and Qt Quick Layouts. types work in conjunction with Qt Quick and Qt Quick Layouts.
Since Qt 5.7, \l {Qt Quick Controls 2} replace Qt Quick Controls 1 and
Qt Labs Controls.
Some ready-made controls, such as a gauge, dial, status indicator, and Some ready-made controls, such as a gauge, dial, status indicator, and
tumbler, are provided by the \l {Qt Quick Extras} module. tumbler, are provided by the \l {Qt Quick Extras} module.
@@ -104,7 +107,7 @@
\list 1 \list 1
\li Select \uicontrol File > \uicontrol {New File or Project} > \li Select \uicontrol File > \uicontrol {New File or Project} >
\uicontrol {Files and Classes} > \uicontrol Qt > \uicontrol {QML File (Qt Quick 1)} or \uicontrol {Files and Classes} > \uicontrol Qt >
\uicontrol {QML File (Qt Quick 2)} > \uicontrol Choose to create a new .qml \uicontrol {QML File (Qt Quick 2)} > \uicontrol Choose to create a new .qml
file. file.

View File

@@ -108,13 +108,13 @@
\li Select \uicontrol Item to select the target object whose property you want \li Select \uicontrol Item to select the target object whose property you want
to change dynamically. to change dynamically.
\li Select \uicontrol Property to specify the property to bind to a source \li Select \uicontrol Property to select the property to bind to a source
property. property.
\li Select \uicontrol {Source Item} to specify the object whose property you \li Select \uicontrol {Source Item} to select the object whose property you
want to use to determine the behavior of the target object. want to use to determine the behavior of the target object.
\li Select \uicontrol {Source Property} to specify the property to bind the \li Select \uicontrol {Source Property} to select the property to bind the
target property to. target property to.
\endlist \endlist

View File

@@ -92,16 +92,18 @@
\uicontrol {Qt Quick Controls Application}, or \uicontrol {Qt Quick Controls Application}, or
\uicontrol {Qt Labs Controls Application} > \uicontrol Choose. \uicontrol {Qt Labs Controls Application} > \uicontrol Choose.
\li In the \uicontrol {Minimal required Qt version} field, select the Qt \li For some Qt Quick applications, you must select the Qt version to
version to develop with. The Qt version determines the Qt Quick develop with in the \uicontrol {Minimal required Qt version} field.
imports that are used in the QML files. The Qt version determines the Qt Quick imports that are used in the
QML files.
\li Select the \uicontrol {With .ui.qml file} check box to create an UI \li For some Qt Quick applications, you can select the
\uicontrol {With .ui.qml file} check box to create an UI
form that can contain a subset of the QML language. Similarly as form that can contain a subset of the QML language. Similarly as
with the UI forms for \QD, it is recommended that you use \QMLD to with the UI forms for \QD, it is recommended that you use \QMLD to
edit the UI forms. For more information, see \l{Qt Quick UI Forms}. edit the UI forms. For more information, see \l{Qt Quick UI Forms}.
\li For a Qt Quick Controls application, you can also select the \li For some Qt Quick applications, you can also select the
\uicontrol {Enable native styling} check box. \QC adds a dependency \uicontrol {Enable native styling} check box. \QC adds a dependency
to the Qt Widgets module to the \c .pro file. to the Qt Widgets module to the \c .pro file.

View File

@@ -113,7 +113,7 @@
you remove an item, the child items are also removed. you remove an item, the child items are also removed.
You can show and hide items to focus on specific parts of the application. You can show and hide items to focus on specific parts of the application.
Click the \inlineimage button_color_none_normal.png Click the \inlineimage icon_color_none.png
(\uicontrol Transparent) button to change the visibility of an item on the (\uicontrol Transparent) button to change the visibility of an item on the
canvas. To change the canvas. To change the
visibility of an item in the application, select the \uicontrol Visibility visibility of an item in the application, select the \uicontrol Visibility

View File

@@ -57,6 +57,9 @@
when compared to Qt Quick Controls, on which the module is based. These when compared to Qt Quick Controls, on which the module is based. These
types work in conjunction with Qt Quick and Qt Quick Layouts. types work in conjunction with Qt Quick and Qt Quick Layouts.
Since Qt 5.7, \l {Qt Quick Controls 2} replace Qt Quick Controls 1 and
Qt Labs Controls.
\section1 Adding Components to Screens \section1 Adding Components to Screens
\list 1 \list 1

View File

@@ -73,7 +73,7 @@
\li Select the split view in the navigator, then select the \li Select the split view in the navigator, then select the
\uicontrol Layout tab in \uicontrol Properties (4), and then click \uicontrol Layout tab in \uicontrol Properties (4), and then click
the \inlineimage anchor-fill-normal.png the \inlineimage anchor_fill.png
(\uicontrol {Fill to Parent}) button to anchor the split view to the (\uicontrol {Fill to Parent}) button to anchor the split view to the
item. item.

View File

@@ -26,7 +26,7 @@ QtcProduct {
// The following would be conceptually right, but does not work currently as some autotests // The following would be conceptually right, but does not work currently as some autotests
// (e.g. extensionsystem) do not work when installed, because they want hardcoded // (e.g. extensionsystem) do not work when installed, because they want hardcoded
// absolute paths to resources in the build directory. // absolute paths to resources in the build directory.
// cpp.rpaths: qbs.targetOS.contains("osx") // cpp.rpaths: qbs.targetOS.contains("macos")
// ? ["@loader_path/../Frameworks", "@loader_path/../PlugIns"] // ? ["@loader_path/../Frameworks", "@loader_path/../PlugIns"]
// : ["$ORIGIN/../" + qtc.libDirName + "/qtcreator", // : ["$ORIGIN/../" + qtc.libDirName + "/qtcreator",
// "$ORIGIN/../" qtc.libDirName + "/qtcreator/plugins"] // "$ORIGIN/../" qtc.libDirName + "/qtcreator/plugins"]

View File

@@ -28,7 +28,7 @@ Product {
Group { Group {
fileTagsFilter: ["qch"] fileTagsFilter: ["qch"]
qbs.install: !qbs.targetOS.contains("osx") qbs.install: !qbs.targetOS.contains("macos")
qbs.installDir: qtc.ide_doc_path qbs.installDir: qtc.ide_doc_path
} }
} }

View File

@@ -4,7 +4,7 @@ function qtLibraryName(qbs, name)
if (qbs.debugInformation) { if (qbs.debugInformation) {
if (qbs.targetOS.contains("windows")) if (qbs.targetOS.contains("windows"))
return name + "d"; return name + "d";
else if (qbs.targetOS.contains("osx")) else if (qbs.targetOS.contains("macos"))
return name + "_debug"; return name + "_debug";
} }
return name; return name;

View File

@@ -18,14 +18,14 @@ QtcProduct {
var flags = base; var flags = base;
if (qbs.buildVariant == "debug" && qbs.toolchain.contains("msvc")) if (qbs.buildVariant == "debug" && qbs.toolchain.contains("msvc"))
flags.push("/INCREMENTAL:NO"); // Speed up startup time when debugging with cdb flags.push("/INCREMENTAL:NO"); // Speed up startup time when debugging with cdb
if (qbs.targetOS.contains("osx")) if (qbs.targetOS.contains("macos"))
flags.push("-compatibility_version", qtc.qtcreator_compat_version); flags.push("-compatibility_version", qtc.qtcreator_compat_version);
return flags; return flags;
} }
cpp.sonamePrefix: qbs.targetOS.contains("osx") cpp.sonamePrefix: qbs.targetOS.contains("macos")
? "@rpath" ? "@rpath"
: undefined : undefined
cpp.rpaths: qbs.targetOS.contains("osx") cpp.rpaths: qbs.targetOS.contains("macos")
? ["@loader_path/../Frameworks"] ? ["@loader_path/../Frameworks"]
: ["$ORIGIN", "$ORIGIN/.."] : ["$ORIGIN", "$ORIGIN/.."]
property string libIncludeBase: ".." // #include <lib/header.h> property string libIncludeBase: ".." // #include <lib/header.h>

View File

@@ -27,17 +27,17 @@ QtcProduct {
cpp.internalVersion: "" cpp.internalVersion: ""
cpp.defines: base.concat([name.toUpperCase() + "_LIBRARY"]) cpp.defines: base.concat([name.toUpperCase() + "_LIBRARY"])
cpp.sonamePrefix: qbs.targetOS.contains("osx") cpp.sonamePrefix: qbs.targetOS.contains("macos")
? "@rpath" ? "@rpath"
: undefined : undefined
cpp.rpaths: qbs.targetOS.contains("osx") cpp.rpaths: qbs.targetOS.contains("macos")
? ["@loader_path/../Frameworks", "@loader_path/../PlugIns"] ? ["@loader_path/../Frameworks", "@loader_path/../PlugIns"]
: ["$ORIGIN", "$ORIGIN/.."] : ["$ORIGIN", "$ORIGIN/.."]
cpp.linkerFlags: { cpp.linkerFlags: {
var flags = base; var flags = base;
if (qbs.buildVariant == "debug" && qbs.toolchain.contains("msvc")) if (qbs.buildVariant == "debug" && qbs.toolchain.contains("msvc"))
flags.push("/INCREMENTAL:NO"); // Speed up startup time when debugging with cdb flags.push("/INCREMENTAL:NO"); // Speed up startup time when debugging with cdb
if (qbs.targetOS.contains("osx")) if (qbs.targetOS.contains("macos"))
flags.push("-compatibility_version", qtc.qtcreator_compat_version); flags.push("-compatibility_version", qtc.qtcreator_compat_version);
return flags; return flags;
} }

View File

@@ -12,7 +12,7 @@ QtcProduct {
'/' + qtc.ide_library_path); '/' + qtc.ide_library_path);
var relativePathToPlugins = FileInfo.relativePath('/' + qtc.ide_libexec_path, var relativePathToPlugins = FileInfo.relativePath('/' + qtc.ide_libexec_path,
'/' + qtc.ide_plugin_path); '/' + qtc.ide_plugin_path);
var prefix = qbs.targetOS.contains("osx") ? "@executable_path" : "$ORIGIN"; var prefix = qbs.targetOS.contains("macos") ? "@executable_path" : "$ORIGIN";
return [ return [
FileInfo.joinPaths(prefix, relativePathToLibs), FileInfo.joinPaths(prefix, relativePathToLibs),
FileInfo.joinPaths(prefix, relativePathToPlugins) FileInfo.joinPaths(prefix, relativePathToPlugins)

View File

@@ -8,7 +8,7 @@ Module {
property bool enableProjectFileUpdates: true property bool enableProjectFileUpdates: true
property bool installApiHeaders: false property bool installApiHeaders: false
property string libInstallDir: qtc.ide_library_path property string libInstallDir: qtc.ide_library_path
property stringList libRPaths: qbs.targetOS.contains("osx") property stringList libRPaths: qbs.targetOS.contains("macos")
? ["@loader_path/" + FileInfo.relativePath('/' + appInstallDir, '/' + libInstallDir)] ? ["@loader_path/" + FileInfo.relativePath('/' + appInstallDir, '/' + libInstallDir)]
: ["$ORIGIN/..", "$ORIGIN/../" + qtc.ide_library_path] : ["$ORIGIN/..", "$ORIGIN/../" + qtc.ide_library_path]
property string resourcesInstallDir: qtc.ide_data_path + "/qbs" property string resourcesInstallDir: qtc.ide_data_path + "/qbs"

View File

@@ -16,10 +16,10 @@ Module {
+ ide_compat_version_minor + '.' + ide_compat_version_release + ide_compat_version_minor + '.' + ide_compat_version_release
property string libDirName: "lib" property string libDirName: "lib"
property string ide_app_path: qbs.targetOS.contains("osx") ? "" : "bin" property string ide_app_path: qbs.targetOS.contains("macos") ? "" : "bin"
property string ide_app_target: qbs.targetOS.contains("osx") ? "Qt Creator" : "qtcreator" property string ide_app_target: qbs.targetOS.contains("macos") ? "Qt Creator" : "qtcreator"
property string ide_library_path: { property string ide_library_path: {
if (qbs.targetOS.contains("osx")) if (qbs.targetOS.contains("macos"))
return ide_app_target + ".app/Contents/Frameworks" return ide_app_target + ".app/Contents/Frameworks"
else if (qbs.targetOS.contains("windows")) else if (qbs.targetOS.contains("windows"))
return ide_app_path return ide_app_path
@@ -27,24 +27,24 @@ Module {
return libDirName + "/qtcreator" return libDirName + "/qtcreator"
} }
property string ide_plugin_path: { property string ide_plugin_path: {
if (qbs.targetOS.contains("osx")) if (qbs.targetOS.contains("macos"))
return ide_app_target + ".app/Contents/PlugIns" return ide_app_target + ".app/Contents/PlugIns"
else if (qbs.targetOS.contains("windows")) else if (qbs.targetOS.contains("windows"))
return libDirName + "/qtcreator/plugins" return libDirName + "/qtcreator/plugins"
else else
return ide_library_path + "/plugins" return ide_library_path + "/plugins"
} }
property string ide_data_path: qbs.targetOS.contains("osx") property string ide_data_path: qbs.targetOS.contains("macos")
? ide_app_target + ".app/Contents/Resources" ? ide_app_target + ".app/Contents/Resources"
: "share/qtcreator" : "share/qtcreator"
property string ide_libexec_path: qbs.targetOS.contains("osx") property string ide_libexec_path: qbs.targetOS.contains("macos")
? ide_data_path : qbs.targetOS.contains("windows") ? ide_data_path : qbs.targetOS.contains("windows")
? ide_app_path ? ide_app_path
: "libexec/qtcreator" : "libexec/qtcreator"
property string ide_bin_path: qbs.targetOS.contains("osx") property string ide_bin_path: qbs.targetOS.contains("macos")
? ide_app_target + ".app/Contents/MacOS" ? ide_app_target + ".app/Contents/MacOS"
: ide_app_path : ide_app_path
property string ide_doc_path: qbs.targetOS.contains("osx") property string ide_doc_path: qbs.targetOS.contains("macos")
? ide_data_path + "/doc" ? ide_data_path + "/doc"
: "share/doc/qtcreator" : "share/doc/qtcreator"
property string ide_include_path: "include" property string ide_include_path: "include"

View File

@@ -256,11 +256,6 @@ class Dumper(DumperBase):
self.qtNamespaceToReport = None self.qtNamespaceToReport = None
self.interpreterBreakpointResolvers = [] self.interpreterBreakpointResolvers = []
# The guess does not need to be updated during a fetchVariables()
# as the result is fixed during that time (ignoring "active"
# dumpers causing loading of shared objects etc).
self.currentQtNamespaceGuess = None
def prepare(self, args): def prepare(self, args):
self.output = [] self.output = []
self.currentIName = "" self.currentIName = ""
@@ -294,6 +289,11 @@ class Dumper(DumperBase):
#warn("EXPANDED INAMES: %s" % self.expandedINames) #warn("EXPANDED INAMES: %s" % self.expandedINames)
#warn("WATCHERS: %s" % self.watchers) #warn("WATCHERS: %s" % self.watchers)
# The guess does not need to be updated during a fetchVariables()
# as the result is fixed during that time (ignoring "active"
# dumpers causing loading of shared objects etc).
self.currentQtNamespaceGuess = None
def listOfLocals(self): def listOfLocals(self):
frame = gdb.selected_frame() frame = gdb.selected_frame()

View File

@@ -206,7 +206,7 @@ class Dumper(DumperBase):
self.currentType = ReportItem() self.currentType = ReportItem()
self.currentNumChild = None self.currentNumChild = None
self.currentMaxNumChild = None self.currentMaxNumChild = None
self.currentPrintsAddress = None self.currentPrintsAddress = True
self.currentChildType = None self.currentChildType = None
self.currentChildNumChild = -1 self.currentChildNumChild = -1
self.currentWatchers = {} self.currentWatchers = {}
@@ -250,12 +250,14 @@ class Dumper(DumperBase):
if item.name == '**&': if item.name == '**&':
item.name = '*' item.name = '*'
self.put('name="%s",' % item.name) self.put('name="%s",' % item.name)
item.savedCurrentAddress = self.currentAddress
item.savedIName = self.currentIName item.savedIName = self.currentIName
item.savedValue = self.currentValue item.savedValue = self.currentValue
item.savedType = self.currentType item.savedType = self.currentType
self.currentIName = item.iname self.currentIName = item.iname
self.currentValue = ReportItem() self.currentValue = ReportItem()
self.currentType = ReportItem() self.currentType = ReportItem()
self.currentAddress = None
def exitSubItem(self, item, exType, exValue, exTraceBack): def exitSubItem(self, item, exType, exValue, exTraceBack):
if not exType is None: if not exType is None:
@@ -278,10 +280,13 @@ class Dumper(DumperBase):
self.put('value="%s",' % self.currentValue.value) self.put('value="%s",' % self.currentValue.value)
except: except:
pass pass
if not self.currentAddress is None:
self.put(self.currentAddress)
self.put('},') self.put('},')
self.currentIName = item.savedIName self.currentIName = item.savedIName
self.currentValue = item.savedValue self.currentValue = item.savedValue
self.currentType = item.savedType self.currentType = item.savedType
self.currentAddress = item.savedCurrentAddress
return True return True
def stateName(self, s): def stateName(self, s):
@@ -962,7 +967,7 @@ class Dumper(DumperBase):
#if int(addr) == 0xffffffffffffffff: #if int(addr) == 0xffffffffffffffff:
# raise RuntimeError("Illegal address") # raise RuntimeError("Illegal address")
if self.currentPrintsAddress and not addr is None: if self.currentPrintsAddress and not addr is None:
self.put('address="0x%x",' % int(addr)) self.currentAddress = 'address="0x%x",' % toInteger(addr)
def isFunctionType(self, typeobj): def isFunctionType(self, typeobj):
if self.isGoodLldb: if self.isGoodLldb:
@@ -1174,6 +1179,7 @@ class Dumper(DumperBase):
return return
self.output = '' self.output = ''
self.currentAddress = None
partialVariable = args.get('partialvar', "") partialVariable = args.get('partialvar', "")
isPartial = len(partialVariable) > 0 isPartial = len(partialVariable) > 0

View File

@@ -29,8 +29,7 @@ import QtQuick.Controls.Styles 1.1
ScrollViewStyle { ScrollViewStyle {
readonly property color scrollbarColor: creatorTheme.BackgroundColorDark readonly property color scrollbarColor: creatorTheme.BackgroundColorDark
readonly property color scrollbarBorderColor: creatorTheme.QmlDesignerBackgroundColorDarker readonly property color scrollBarHandleColor: creatorTheme.QmlDesignerButtonColor
readonly property color scrollBarHandleColor: creatorTheme.QmlDesignerBackgroundColorLighter
padding {left: 0; top: 0; right: 0; bottom: 0} padding {left: 0; top: 0; right: 0; bottom: 0}
@@ -38,15 +37,11 @@ ScrollViewStyle {
height: 10 height: 10
width: 10 width: 10
color: scrollbarColor color: scrollbarColor
border.width: 1
border.color: scrollbarBorderColor
} }
handle: Item { handle: Item {
implicitWidth: 10 implicitWidth: 10
implicitHeight: 10 implicitHeight: 10
Rectangle { Rectangle {
border.color: scrollbarBorderColor
border.width: 1
anchors.fill: parent anchors.fill: parent
color: scrollBarHandleColor color: scrollBarHandleColor
} }

View File

@@ -27,12 +27,13 @@ import QtQuick 2.1
import QtQuick.Controls 1.1 import QtQuick.Controls 1.1
import QtQuick.Controls.Styles 1.0 import QtQuick.Controls.Styles 1.0
Item {
Rectangle { Rectangle {
color: creatorTheme.QmlDesignerBackgroundColorLighter anchors.rightMargin: 1
anchors.topMargin: 1
border.color: creatorTheme.BackgroundColorDark anchors.fill: parent
border.width: 1
color: creatorTheme.QmlDesignerButtonColor
Image { Image {
id: itemIcon // to be set by model id: itemIcon // to be set by model
@@ -80,3 +81,4 @@ Rectangle {
} }
} }
} }
}

View File

@@ -30,10 +30,11 @@ Row {
id: alignmentHorizontalButtons id: alignmentHorizontalButtons
RoundedPanel { RoundedPanel {
width: 14 width: 16
height: parent.height height: parent.height
roundLeft: true roundLeft: true
ExtendedFunctionButton { ExtendedFunctionButton {
x: 2
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
backendValue: alignmentHorizontalButtons.backendValue backendValue: alignmentHorizontalButtons.backendValue
} }
@@ -48,6 +49,8 @@ Row {
property bool baseStateFlag: isBaseState; property bool baseStateFlag: isBaseState;
onValueChanged: { onValueChanged: {
buttonRow.initalChecked = 0
buttonRow.checkedIndex = 0
if (value !== undefined) { if (value !== undefined) {
if (value === "AlignLeft") { if (value === "AlignLeft") {
buttonRow.initalChecked = 0 buttonRow.initalChecked = 0
@@ -92,21 +95,21 @@ Row {
ButtonRowButton { ButtonRowButton {
roundLeftButton: false roundLeftButton: false
iconSource: blueHighlight ? "images/alignmentleft-h-icon.png" : "images/alignmentleft-icon.png" iconSource: "image://icons/alignment-left" + (blueHighlight ? "-h" : "")
onClicked: { onClicked: {
if (checked) if (checked)
backendValue.setEnumeration("Text", "AlignLeft") backendValue.setEnumeration("Text", "AlignLeft")
} }
} }
ButtonRowButton { ButtonRowButton {
iconSource: blueHighlight ? "images/alignmentcenterh-h-icon.png" : "images/alignmentcenterh-icon.png" iconSource: "image://icons/alignment-center" + (blueHighlight ? "-h" : "")
onClicked: { onClicked: {
if (checked) if (checked)
backendValue.setEnumeration("Text", "AlignHCenter") backendValue.setEnumeration("Text", "AlignHCenter")
} }
} }
ButtonRowButton { ButtonRowButton {
iconSource: blueHighlight ? "images/alignmentright-h-icon.png" : "images/alignmentright-icon.png" iconSource: "image://icons/alignment-right" + (blueHighlight ? "-h" : "")
onClicked: { onClicked: {
if (checked) if (checked)
backendValue.setEnumeration("Text", "AlignRight") backendValue.setEnumeration("Text", "AlignRight")

View File

@@ -30,11 +30,12 @@ Row {
id: alignmentVerticalButtons id: alignmentVerticalButtons
RoundedPanel { RoundedPanel {
width: 14 width: 16
height: parent.height height: parent.height
roundLeft: true roundLeft: true
ExtendedFunctionButton { ExtendedFunctionButton {
x: 2
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
backendValue: alignmentVerticalButtons.backendValue backendValue: alignmentVerticalButtons.backendValue
} }
@@ -49,6 +50,8 @@ Row {
property bool baseStateFlag: isBaseState; property bool baseStateFlag: isBaseState;
onValueChanged: { onValueChanged: {
buttonRow.initalChecked = 0
buttonRow.checkedIndex = 0
if (value !== undefined) { if (value !== undefined) {
if (value === "AlignTop") { if (value === "AlignTop") {
buttonRow.initalChecked = 0 buttonRow.initalChecked = 0
@@ -93,21 +96,21 @@ Row {
ButtonRowButton { ButtonRowButton {
roundLeftButton: false roundLeftButton: false
iconSource: blueHighlight ? "images/alignmenttop-h-icon.png" : "images/alignmenttop-icon.png" iconSource: "image://icons/alignment-top" + (blueHighlight ? "-h" : "")
onClicked: { onClicked: {
if (checked) if (checked)
backendValue.setEnumeration("Text", "AlignTop") backendValue.setEnumeration("Text", "AlignTop")
} }
} }
ButtonRowButton { ButtonRowButton {
iconSource: blueHighlight ? "images/alignmentmiddle-h-icon.png" : "images/alignmentmiddle-icon.png" iconSource: "image://icons/alignment-middle" + (blueHighlight ? "-h" : "")
onClicked: { onClicked: {
if (checked) if (checked)
backendValue.setEnumeration("Text", "AlignVCenter") backendValue.setEnumeration("Text", "AlignVCenter")
} }
} }
ButtonRowButton { ButtonRowButton {
iconSource: blueHighlight ? "images/alignmentbottom-h-icon.png" : "images/alignmentbottom-icon.png" iconSource: "image://icons/alignment-bottom" + (blueHighlight ? "-h" : "")
onClicked: { onClicked: {
if (checked) if (checked)
backendValue.setEnumeration("Text", "AlignBottom") backendValue.setEnumeration("Text", "AlignBottom")

View File

@@ -33,7 +33,7 @@ ButtonRow {
id: buttonRow id: buttonRow
ButtonRowButton { ButtonRowButton {
iconSource: "images/anchor-top.png" iconSource: "image://icons/anchor-top"
tooltip: qsTr("Anchor item to the top.") tooltip: qsTr("Anchor item to the top.")
property bool topAnchored: anchorBackend.topAnchored property bool topAnchored: anchorBackend.topAnchored
@@ -53,7 +53,7 @@ ButtonRow {
} }
ButtonRowButton { ButtonRowButton {
iconSource: "images/anchor-bottom.png" iconSource: "image://icons/anchor-bottom"
tooltip: qsTr("Anchor item to the bottom.") tooltip: qsTr("Anchor item to the bottom.")
property bool bottomAnchored: anchorBackend.bottomAnchored property bool bottomAnchored: anchorBackend.bottomAnchored
@@ -74,7 +74,7 @@ ButtonRow {
} }
ButtonRowButton { ButtonRowButton {
iconSource: "images/anchor-left.png" iconSource: "image://icons/anchor-left"
tooltip: qsTr("Anchor item to the left.") tooltip: qsTr("Anchor item to the left.")
property bool leftAnchored: anchorBackend.leftAnchored property bool leftAnchored: anchorBackend.leftAnchored
@@ -94,7 +94,7 @@ ButtonRow {
} }
ButtonRowButton { ButtonRowButton {
iconSource: "images/anchor-right.png" iconSource: "image://icons/anchor-right"
tooltip: qsTr("Anchor item to the right.") tooltip: qsTr("Anchor item to the right.")
property bool rightAnchored: anchorBackend.rightAnchored property bool rightAnchored: anchorBackend.rightAnchored
@@ -119,7 +119,7 @@ ButtonRow {
ButtonRowButton { ButtonRowButton {
iconSource: "images/anchor-fill.png" iconSource: "image://icons/anchor-fill"
tooltip: qsTr("Fill parent item.") tooltip: qsTr("Fill parent item.")
property bool isFilled: anchorBackend.isFilled property bool isFilled: anchorBackend.isFilled
@@ -141,7 +141,7 @@ ButtonRow {
} }
ButtonRowButton { ButtonRowButton {
iconSource: "images/anchor-vertical.png" iconSource: "image://icons/anchor-vertical"
tooltip: qsTr("Anchor item vertically.") tooltip: qsTr("Anchor item vertically.")
property bool verticalCentered: anchorBackend.verticalCentered; property bool verticalCentered: anchorBackend.verticalCentered;
@@ -163,7 +163,7 @@ ButtonRow {
} }
ButtonRowButton { ButtonRowButton {
iconSource: "images/anchor-horizontal.png" iconSource: "image://icons/anchor-horizontal"
tooltip: qsTr("Anchor item horizontally.") tooltip: qsTr("Anchor item horizontally.")
property bool horizontalCentered: anchorBackend.horizontalCentered; property bool horizontalCentered: anchorBackend.horizontalCentered;

View File

@@ -83,7 +83,7 @@ ButtonRowButton {
ExtendedFunctionButton { ExtendedFunctionButton {
backendValue: boolButtonRowButton.backendValue backendValue: boolButtonRowButton.backendValue
x: 0 x: 2
y: 4 anchors.verticalCenter: parent.verticalCenter
} }
} }

View File

@@ -65,7 +65,6 @@ Item {
anchors.fill: parent anchors.fill: parent
RoundedPanel { RoundedPanel {
roundLeft: isFirst() && buttonRowButton.roundLeftButton roundLeft: isFirst() && buttonRowButton.roundLeftButton
roundRight: isLast()
anchors.fill: parent anchors.fill: parent
visible: checked visible: checked
@@ -74,19 +73,19 @@ Item {
RoundedPanel { RoundedPanel {
roundLeft: isFirst() roundLeft: isFirst()
roundRight: isLast()
anchors.fill: parent anchors.fill: parent
visible: !checked visible: !checked
color: creatorTheme.BackgroundColorDark color: creatorTheme.QmlDesignerButtonColor
} }
} }
Image { Image {
id: image id: image
//source: iconSource width: 16
height: 16
smooth: false
anchors.centerIn: parent anchors.centerIn: parent
anchors.leftMargin: leftPadding
} }
ToolTipArea { ToolTipArea {

View File

@@ -39,6 +39,7 @@ Controls.CheckBox {
ExtendedFunctionButton { ExtendedFunctionButton {
x: 22 x: 22
anchors.verticalCenter: parent.verticalCenter
backendValue: checkBox.backendValue backendValue: checkBox.backendValue
visible: checkBox.enabled visible: checkBox.enabled
} }

View File

@@ -40,7 +40,7 @@ QtObject {
property bool highlight: textColor === __changedTextColor property bool highlight: textColor === __changedTextColor
property color __defaultTextColor: creatorTheme.PanelTextColorLight property color __defaultTextColor: creatorTheme.PanelTextColorLight
property color __changedTextColor: Constants.colorsChangedBaseText readonly property color __changedTextColor: creatorTheme.QmlDesigner_HighlightColor
onBackendValueChanged: { onBackendValueChanged: {
evaluate(); evaluate();
@@ -68,7 +68,7 @@ QtObject {
if (baseStateFlag) { if (baseStateFlag) {
if (innerObject.backendValue.isInModel) if (innerObject.backendValue.isInModel)
innerObject.textColor = Constants.colorsChangedBaseText innerObject.textColor = __changedTextColor
else else
innerObject.textColor = creatorTheme.PanelTextColorLight innerObject.textColor = creatorTheme.PanelTextColorLight
} else { } else {

View File

@@ -112,7 +112,7 @@ Controls.ComboBox {
ExtendedFunctionButton { ExtendedFunctionButton {
x: 2 x: 2
y: 6 anchors.verticalCenter: parent.verticalCenter
backendValue: comboBox.backendValue backendValue: comboBox.backendValue
visible: comboBox.enabled visible: comboBox.enabled
} }

View File

@@ -28,5 +28,4 @@
var colorsDisabledText = "gray" var colorsDisabledText = "gray"
var colorsDefaultText = "white" var colorsDefaultText = "white"
var colorsBoldText = "#dedede" var colorsBoldText = "#dedede"
var colorsChangedBaseText = "#9999ff"
var colorsChangedStateText = "#99ccff" var colorsChangedStateText = "#99ccff"

View File

@@ -38,7 +38,7 @@ CheckBoxStyle {
color: control.pressed color: control.pressed
? creatorTheme.FancyToolButtonHoverColor ? creatorTheme.FancyToolButtonHoverColor
: creatorTheme.FancyToolButtonSelectedColor : creatorTheme.FancyToolButtonSelectedColor
border.color: creatorTheme.QmlDesignerBackgroundColorDarker border.color: creatorTheme.QmlDesignerBorderColor
anchors.margins: 1 anchors.margins: 1
} }
Image { Image {

View File

@@ -35,35 +35,24 @@ ComboBoxStyle {
background: Item { background: Item {
implicitWidth: 120 implicitWidth: 120
implicitHeight: 25 implicitHeight: 24
Rectangle { Rectangle {
anchors.fill: parent anchors.fill: parent
visible: !control.pressed visible: !control.pressed
color: creatorTheme.FancyToolButtonSelectedColor color: creatorTheme.QmlDesignerButtonColor
border.color: creatorTheme.QmlDesignerBackgroundColorDarker border.color: creatorTheme.QmlDesignerBorderColor
border.width: 1 border.width: 1
} }
Rectangle { Rectangle {
color: creatorTheme.FancyToolButtonHoverColor color: creatorTheme.QmlDesignerBackgroundColorDarker
anchors.fill: parent anchors.fill: parent
visible: control.pressed visible: control.pressed
border.color: creatorTheme.QmlDesignerBackgroundColorDarker border.color: creatorTheme.QmlDesignerBorderColor
border.width: 1 border.width: 1
} }
Rectangle {
color: creatorTheme.IconsBaseColor
width: 1
anchors.right: imageItem.left
anchors.topMargin: 4
anchors.bottomMargin: 4
anchors.rightMargin: 6
anchors.top: parent.top
anchors.bottom: parent.bottom
}
Image { Image {
id: imageItem id: imageItem
width: 8 width: 8

View File

@@ -60,14 +60,14 @@ SpinBoxStyle {
height: 4 height: 4
source: "image://icons/down-arrow" source: "image://icons/down-arrow"
x: 1 x: 1
y: 2.5 // Hack! Spinbox sets an non-int offset, somewhere y: 3
} }
} }
background: Rectangle { background: Rectangle {
implicitWidth: Math.max(64, styleData.contentWidth) implicitWidth: Math.max(64, styleData.contentWidth)
implicitHeight: 23 implicitHeight: 24
color: creatorTheme.FancyToolButtonSelectedColor color: creatorTheme.QmlDesignerBackgroundColorDarker
border.color: creatorTheme.QmlDesignerBackgroundColorDarker border.color: creatorTheme.QmlDesignerBorderColor
} }
} }

View File

@@ -125,74 +125,99 @@ Item {
} }
} }
Rectangle { Item {
parent: itemPane
visible: false
x: 10
color: "#424242"
radius: 3 Rectangle {
border.color: "black" anchors.fill: parent
gradient: Gradient { color: creatorTheme.QmlDesignerBackgroundColorDarker
GradientStop {color: "#2c2c2c" ; position: 0} opacity: 0.6
GradientStop {color: "#343434" ; position: 0.15}
GradientStop {color: "#373737" ; position: 1.0}
} }
id: expressionDialog MouseArea {
anchors.fill: parent
}
id: expressionDialog
visible: false
parent: itemPane
anchors.fill: parent
Rectangle {
x: 4
onVisibleChanged: { onVisibleChanged: {
var pos = itemPane.mapFromItem(extendedFunctionButton.parent, 0, 0); var pos = itemPane.mapFromItem(extendedFunctionButton.parent, 0, 0);
y = pos.y + 2; y = pos.y + 2;
} }
width: parent.width - 20 width: parent.width - 8
height: 120 height: 160
radius: 2
color: creatorTheme.QmlDesignerBackgroundColorDarkAlternate
border.color: creatorTheme.QmlDesignerBorderColor
Label {
x: 8
y: 6
font.bold: true
text: qsTr("Binding Editor")
}
Controls.TextField { Controls.TextField {
verticalAlignment: Text.AlignTop
id: textField id: textField
anchors.fill: parent anchors.fill: parent
anchors.leftMargin: 4 anchors.leftMargin: 8
anchors.rightMargin: 4 anchors.rightMargin: 8
anchors.topMargin: 4 anchors.topMargin: 24
anchors.bottomMargin: 20 anchors.bottomMargin: 32
onAccepted: { onAccepted: {
backendValue.expression = textField.text backendValue.expression = textField.text
expressionDialog.visible = false expressionDialog.visible = false
} }
style: TextFieldStyle { style: TextFieldStyle {
textColor: Constants.colorsDefaultText textColor: creatorTheme.PanelTextColorLight
padding.top: 3 padding.top: 6
padding.bottom: 1 padding.bottom: 2
padding.left: 16 padding.left: 6
placeholderTextColor: "gray" placeholderTextColor: creatorTheme.PanelTextColorMid
background: Rectangle { background: Rectangle {
implicitWidth: 100 implicitWidth: 100
implicitHeight: 23 implicitHeight: 23
radius: 3 radius: 2
gradient: Gradient { color: creatorTheme.QmlDesignerBackgroundColorDarker
GradientStop {color: "#2c2c2c" ; position: 0} border.color: creatorTheme.QmlDesignerBorderColor
GradientStop {color: "#343434" ; position: 0.15}
GradientStop {color: "#373737" ; position: 1.0}
}
} }
} }
} }
Row { Row {
spacing: 0 spacing: 2
Button { Button {
width: 16
height: 16
style: ButtonStyle { style: ButtonStyle {
background: Image { background: Item{
source: "images/apply.png" Image {
width: 16
height: 16
source: "image://icons/error"
opacity: {
if (control.pressed)
return 0.8;
return 1.0;
}
Rectangle { Rectangle {
opacity: control.pressed ? 0.5 : 0 z: -1
anchors.fill: parent anchors.fill: parent
gradient: Gradient { color: control.pressed || control.hovered ? creatorTheme.QmlDesignerBackgroundColorDarker : creatorTheme.QmlDesignerButtonColor
GradientStop {color: "#606060" ; position: 0} border.color: creatorTheme.QmlDesignerBorderColor
GradientStop {color: "#404040" ; position: 0.07} radius: 2
GradientStop {color: "#303030" ; position: 1}
} }
} }
} }
@@ -203,17 +228,25 @@ Item {
} }
} }
Button { Button {
width: 16
height: 16
style: ButtonStyle { style: ButtonStyle {
background: Image { background: Item {
source: "images/cancel.png" Image {
width: 16
height: 16
source: "image://icons/ok"
opacity: {
if (control.pressed)
return 0.8;
return 1.0;
}
Rectangle { Rectangle {
opacity: control.pressed ? 0.5 : 0 z: -1
anchors.fill: parent anchors.fill: parent
gradient: Gradient { color: control.pressed || control.hovered ? creatorTheme.QmlDesignerBackgroundColorDarker : creatorTheme.QmlDesignerButtonColor
GradientStop {color: "#606060" ; position: 0} border.color: creatorTheme.QmlDesignerBorderColor
GradientStop {color: "#404040" ; position: 0.07} radius: 2
GradientStop {color: "#303030" ; position: 1}
} }
} }
} }
@@ -224,6 +257,8 @@ Item {
} }
anchors.right: parent.right anchors.right: parent.right
anchors.bottom: parent.bottom anchors.bottom: parent.bottom
anchors.margins: 4
}
} }
} }

View File

@@ -51,7 +51,7 @@ Section {
} }
Label { Label {
text: "W" text: "H"
width: 12 width: 12
} }

View File

@@ -68,7 +68,7 @@ Controls.ComboBox {
ExtendedFunctionButton { ExtendedFunctionButton {
x: 2 x: 2
y: 4 anchors.verticalCenter: parent.verticalCenter
backendValue: comboBox.backendValue backendValue: comboBox.backendValue
visible: comboBox.enabled visible: comboBox.enabled
} }

View File

@@ -95,7 +95,7 @@ Section {
SpinBox { SpinBox {
id: sizeSpinBox id: sizeSpinBox
minimumValue: 0 minimumValue: 0
//visible: !sizeWidget.pixelSize visible: !sizeWidget.pixelSize
z: !sizeWidget.pixelSize ? 1 : 0 z: !sizeWidget.pixelSize ? 1 : 0
maximumValue: 400 maximumValue: 400
backendValue: pointSize backendValue: pointSize
@@ -103,7 +103,7 @@ Section {
SpinBox { SpinBox {
minimumValue: 0 minimumValue: 0
//visible: sizeWidget.pixelSize visible: sizeWidget.pixelSize
z: sizeWidget.pixelSize ? 1 : 0 z: sizeWidget.pixelSize ? 1 : 0
maximumValue: 400 maximumValue: 400
backendValue: pixelSize backendValue: pixelSize
@@ -113,6 +113,7 @@ Section {
Controls.ComboBox { Controls.ComboBox {
id: sizeType id: sizeType
model: ["pixels", "points"] model: ["pixels", "points"]
property color textColor: creatorTheme.PanelTextColorLight
onCurrentIndexChanged: { onCurrentIndexChanged: {
if (sizeWidget.isSetup) if (sizeWidget.isSetup)
return; return;

View File

@@ -34,24 +34,24 @@ ButtonRow {
property variant strikeout: backendValues.font_strikeout property variant strikeout: backendValues.font_strikeout
BoolButtonRowButton { BoolButtonRowButton {
standardIconSource: "images/bold-icon.png" standardIconSource: "image://icons/style-bold"
highlightedIconSource: "images/bold-h-icon.png" highlightedIconSource: "image://icons/style-bold-h"
backendValue: bold backendValue: bold
} }
BoolButtonRowButton { BoolButtonRowButton {
standardIconSource: "images/italic-icon.png" standardIconSource: "image://icons/style-italic"
highlightedIconSource: "images/italic-h-icon.png" highlightedIconSource: "image://icons/style-italic-h"
backendValue: italic backendValue: italic
} }
BoolButtonRowButton { BoolButtonRowButton {
standardIconSource: "images/underline-icon.png" standardIconSource: "image://icons/style-underline"
highlightedIconSource: "images/underline-h-icon.png" highlightedIconSource: "image://icons/style-underline-h"
backendValue: underline backendValue: underline
} }
BoolButtonRowButton { BoolButtonRowButton {
standardIconSource: "images/strikeout-icon.png" standardIconSource: "image://icons/style-strikeout"
highlightedIconSource: "images/strikeout-h-icon.png" highlightedIconSource: "image://icons/style-strikeout-h"
backendValue: strikeout backendValue: strikeout
} }

View File

@@ -38,7 +38,7 @@ Item {
height: 16 height: 16
Image { Image {
id: image id: image
anchors.centerIn: parent anchors.fill: parent
} }
} }

View File

@@ -52,7 +52,7 @@ Controls.TextField {
ExtendedFunctionButton { ExtendedFunctionButton {
x: 2 x: 2
y: 6 anchors.verticalCenter: parent.verticalCenter
backendValue: lineEdit.backendValue backendValue: lineEdit.backendValue
visible: lineEdit.enabled && showExtendedFunctionButton visible: lineEdit.enabled && showExtendedFunctionButton
} }
@@ -118,8 +118,8 @@ Controls.TextField {
background: Rectangle { background: Rectangle {
implicitWidth: 100 implicitWidth: 100
implicitHeight: 24 implicitHeight: 24
color: creatorTheme.FancyToolButtonSelectedColor color: creatorTheme.QmlDesignerBackgroundColorDarker
border.color: creatorTheme.QmlDesignerBackgroundColorDarker border.color: creatorTheme.QmlDesignerBorderColor
} }
} }
@@ -172,10 +172,8 @@ Controls.TextField {
y: 1 y: 1
Rectangle { Rectangle {
anchors.fill: parent anchors.fill: parent
border.color: creatorTheme.QmlDesignerBackgroundColorDarker border.color: creatorTheme.QmlDesignerBorderColor
color: control.pressed color: creatorTheme.QmlDesignerBackgroundColorDarker
? creatorTheme.QmlDesignerBackgroundColorLighter
: creatorTheme.FancyToolButtonHoverColor
opacity: control.hovered || control.pressed ? 1 : 0.75 opacity: control.hovered || control.pressed ? 1 : 0.75
} }
Image { Image {

View File

@@ -30,8 +30,8 @@ import QtQuick.Layouts 1.0
Rectangle { Rectangle {
id: panel id: panel
property bool roundLeft: false property bool roundLeft: true
property bool roundRight: false property bool roundRight: true
/* /*
@@ -43,8 +43,8 @@ Rectangle {
*/ */
border.width: roundLeft || roundRight ? 1 : 0 border.width: roundLeft || roundRight ? 1 : 0
color: creatorTheme.BackgroundColorDark color: creatorTheme.QmlDesignerButtonColor
border.color: creatorTheme.QmlDesignerBackgroundColorDarker border.color: creatorTheme.QmlDesignerBorderColor
Rectangle { Rectangle {
anchors.fill: parent anchors.fill: parent
@@ -71,7 +71,7 @@ Rectangle {
} }
Rectangle { Rectangle {
color: creatorTheme.QmlDesignerBackgroundColorDarker color: creatorTheme.QmlDesignerBorderColor
anchors.top: parent.top anchors.top: parent.top
anchors.left: parent.left anchors.left: parent.left
anchors.right: parent.right anchors.right: parent.right
@@ -81,7 +81,7 @@ Rectangle {
} }
Rectangle { Rectangle {
color: creatorTheme.QmlDesignerBackgroundColorDarker color: creatorTheme.QmlDesignerBorderColor
anchors.bottom: parent.bottom anchors.bottom: parent.bottom
anchors.left: parent.left anchors.left: parent.left
anchors.right: parent.right anchors.right: parent.right

View File

@@ -35,7 +35,7 @@ Controls.SpinBox {
ExtendedFunctionButton { ExtendedFunctionButton {
x: 2 x: 2
y: 4 anchors.verticalCenter: parent.verticalCenter
backendValue: spinBox.backendValue backendValue: spinBox.backendValue
visible: spinBox.enabled visible: spinBox.enabled
} }

Binary file not shown.

Before

Width:  |  Height:  |  Size: 308 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 255 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 221 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 220 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 276 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 230 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 514 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 247 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 247 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 576 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 218 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 218 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 314 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 314 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 206 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 207 B

View File

@@ -128,7 +128,7 @@ RowLayout {
exclusive: true exclusive: true
ButtonRowButton { ButtonRowButton {
iconSource: verticalAnchor ? "../HelperWidgets/images/anchor-top.png" : "../HelperWidgets/images/anchor-left.png" iconSource: "image://icons/anchor-" + (verticalAnchor ? "top" : "left")
tooltip: verticalAnchor ? qsTr("Anchor to the top of the target.") : qsTr("Anchor to the left of the target.") tooltip: verticalAnchor ? qsTr("Anchor to the top of the target.") : qsTr("Anchor to the left of the target.")
onClicked: { onClicked: {
if (!invertRelativeTargets) if (!invertRelativeTargets)
@@ -139,14 +139,14 @@ RowLayout {
} }
ButtonRowButton { ButtonRowButton {
iconSource: verticalAnchor ? "../HelperWidgets/images/anchor-vertical.png" : "../HelperWidgets/images/anchor-horizontal.png" iconSource: "image://icons/anchor-" + (verticalAnchor ? "vertical" : "horizontal")
tooltip: verticalAnchor ? qsTr("Anchor to the vertical center of the target.") : qsTr("Anchor to the horizontal center of the target.") tooltip: verticalAnchor ? qsTr("Anchor to the vertical center of the target.") : qsTr("Anchor to the horizontal center of the target.")
onClicked: centerButtonClicked(); onClicked: centerButtonClicked();
} }
ButtonRowButton { ButtonRowButton {
iconSource: verticalAnchor ? "../HelperWidgets/images/anchor-bottom.png" : "../HelperWidgets/images/anchor-right.png" iconSource: "image://icons/anchor-" + (verticalAnchor ? "bottom" : "right")
tooltip: verticalAnchor ? qsTr("Anchor to the bottom of the target.") : qsTr("Anchor to the right of the target.") tooltip: verticalAnchor ? qsTr("Anchor to the bottom of the target.") : qsTr("Anchor to the right of the target.")
onClicked: { onClicked: {
if (!invertRelativeTargets) if (!invertRelativeTargets)

View File

@@ -50,7 +50,7 @@ Section {
AnchorRow { AnchorRow {
visible: anchorBackend.topAnchored; visible: anchorBackend.topAnchored;
iconSource: "../HelperWidgets/images/anchor-top.png" iconSource: "image://icons/anchor-top"
anchorMargin: backendValues.anchors_topMargin anchorMargin: backendValues.anchors_topMargin
targetName: anchorBackend.topTarget targetName: anchorBackend.topTarget
onTargetChanged: { onTargetChanged: {
@@ -73,7 +73,7 @@ Section {
AnchorRow { AnchorRow {
visible: anchorBackend.bottomAnchored; visible: anchorBackend.bottomAnchored;
iconSource: "../HelperWidgets/images/anchor-bottom.png" iconSource: "image://icons/anchor-bottom"
anchorMargin: backendValues.anchors_bottomMargin anchorMargin: backendValues.anchors_bottomMargin
targetName: anchorBackend.bottomTarget targetName: anchorBackend.bottomTarget
onTargetChanged: { onTargetChanged: {
@@ -97,7 +97,7 @@ Section {
AnchorRow { AnchorRow {
visible: anchorBackend.leftAnchored; visible: anchorBackend.leftAnchored;
iconSource: "../HelperWidgets/images/anchor-left.png" iconSource: "image://icons/anchor-left"
anchorMargin: backendValues.anchors_leftMargin anchorMargin: backendValues.anchors_leftMargin
targetName: anchorBackend.leftTarget targetName: anchorBackend.leftTarget
onTargetChanged: { onTargetChanged: {
@@ -120,7 +120,7 @@ Section {
AnchorRow { AnchorRow {
visible: anchorBackend.rightAnchored; visible: anchorBackend.rightAnchored;
iconSource: "../HelperWidgets/images/anchor-right.png" iconSource: "image://icons/anchor-right"
anchorMargin: backendValues.anchors_rightMargin anchorMargin: backendValues.anchors_rightMargin
targetName: anchorBackend.rightTarget targetName: anchorBackend.rightTarget
onTargetChanged: { onTargetChanged: {
@@ -145,7 +145,7 @@ Section {
AnchorRow { AnchorRow {
showAlternativeTargets: false showAlternativeTargets: false
visible: anchorBackend.horizontalCentered; visible: anchorBackend.horizontalCentered;
iconSource: "../HelperWidgets/images/anchor-horizontal.png" iconSource: "image://icons/anchor-horizontal"
anchorMargin: backendValues.anchors_horizontalCenterOffset anchorMargin: backendValues.anchors_horizontalCenterOffset
targetName: anchorBackend.horizontalTarget targetName: anchorBackend.horizontalTarget
onTargetChanged: { onTargetChanged: {
@@ -158,7 +158,7 @@ Section {
AnchorRow { AnchorRow {
showAlternativeTargets: false showAlternativeTargets: false
visible: anchorBackend.verticalCentered; visible: anchorBackend.verticalCentered;
iconSource: "../HelperWidgets/images/anchor-vertical.png" iconSource: "image://icons/anchor-vertical"
anchorMargin: backendValues.anchors_verticalCenterOffset anchorMargin: backendValues.anchors_verticalCenterOffset
targetName: anchorBackend.verticalTarget targetName: anchorBackend.verticalTarget
onTargetChanged: { onTargetChanged: {

View File

@@ -31,6 +31,7 @@ import QtQuick.Controls 1.0 as Controls
Controls.ComboBox { Controls.ComboBox {
property string targetName: anchorBackend.topTarget property string targetName: anchorBackend.topTarget
property color textColor: creatorTheme.PanelTextColorLight
id: targetComboBox id: targetComboBox
@@ -50,5 +51,6 @@ Controls.ComboBox {
model: anchorBackend.possibleTargetItems model: anchorBackend.possibleTargetItems
style: CustomComboBoxStyle { style: CustomComboBoxStyle {
textColor: targetComboBox.textColor
} }
} }

View File

@@ -37,6 +37,7 @@ Rectangle {
property int delegateStateImageSize property int delegateStateImageSize
color: baseColor color: baseColor
border.color: creatorTheme.QmlDesignerBorderColor
MouseArea { MouseArea {
anchors.fill: parent anchors.fill: parent
@@ -101,9 +102,6 @@ Rectangle {
statesEditorModel.renameState(internalNodeId, text) statesEditorModel.renameState(internalNodeId, text)
} }
// as we change the background we need to change the text
// color to see some text
textColor: creatorTheme.PanelTextColorLight
} }
Item { Item {
@@ -120,7 +118,7 @@ Rectangle {
anchors.margins: -1 anchors.margins: -1
anchors.fill: stateImage anchors.fill: stateImage
border.width: 1 border.width: 1
border.color: "#000000" border.color: creatorTheme.QmlDesignerBackgroundColorDarker
} }
Image { Image {
id: stateImage id: stateImage

View File

@@ -111,6 +111,7 @@ FocusScope {
background: Rectangle { background: Rectangle {
property color buttonBaseColor: Qt.darker(creatorTheme.QmlDesignerBackgroundColorDarkAlternate, 1.1) property color buttonBaseColor: Qt.darker(creatorTheme.QmlDesignerBackgroundColorDarkAlternate, 1.1)
color: control.hovered ? Qt.lighter(buttonBaseColor, 1.2) : buttonBaseColor color: control.hovered ? Qt.lighter(buttonBaseColor, 1.2) : buttonBaseColor
border.color: creatorTheme.QmlDesignerBorderColor
border.width: 1 border.width: 1
Image { Image {
source: "image://icons/plus" source: "image://icons/plus"
@@ -147,7 +148,7 @@ FocusScope {
height: delegateHeight height: delegateHeight
isBaseState: 0 == internalNodeId isBaseState: 0 == internalNodeId
isCurrentState: root.currentStateInternalId == internalNodeId isCurrentState: root.currentStateInternalId == internalNodeId
baseColor: isCurrentState ? Qt.darker(highlightColor, 1.2) : background.color baseColor: isCurrentState ? creatorTheme.QmlDesigner_HighlightColor : background.color
delegateStateName: stateName delegateStateName: stateName
delegateStateImageSource: stateImageSource delegateStateImageSource: stateImageSource
delegateStateImageSize: stateImageSize delegateStateImageSize: stateImageSize

View File

@@ -200,6 +200,8 @@ PaletteWindowTextDisabled=textDisabled
PaletteBaseDisabled=backgroundColorDisabled PaletteBaseDisabled=backgroundColorDisabled
PaletteTextDisabled=textDisabled PaletteTextDisabled=textDisabled
QmlDesigner_HighlightColor=ff46a2da
[Flags] [Flags]
ComboBoxDrawTextShadow=false ComboBoxDrawTextShadow=false
DerivePaletteFromTheme=true DerivePaletteFromTheme=true
@@ -214,6 +216,7 @@ FlatSideBarIcons=true
FlatProjectsMode=true FlatProjectsMode=true
FlatMenuBar=true FlatMenuBar=true
ToolBarIconShadow=true ToolBarIconShadow=true
WindowColorAsBase=false
[Gradients] [Gradients]
DetailsWidgetHeaderGradient\1\color=0 DetailsWidgetHeaderGradient\1\color=0

View File

@@ -171,6 +171,8 @@ ProjectExplorer_TaskWarn_TextMarkColor=ffffa500
ClangCodeModel_Error_TextMarkColor=ffff882f ClangCodeModel_Error_TextMarkColor=ffff882f
ClangCodeModel_Warning_TextMarkColor=ffc6c132 ClangCodeModel_Warning_TextMarkColor=ffc6c132
QmlDesigner_HighlightColor=ff46a2da
[Flags] [Flags]
ComboBoxDrawTextShadow=true ComboBoxDrawTextShadow=true
DerivePaletteFromTheme=false DerivePaletteFromTheme=false
@@ -185,6 +187,7 @@ FlatSideBarIcons=false
FlatProjectsMode=false FlatProjectsMode=false
FlatMenuBar=false FlatMenuBar=false
ToolBarIconShadow=true ToolBarIconShadow=true
WindowColorAsBase=false
[Gradients] [Gradients]
DetailsWidgetHeaderGradient\1\color=ffffff DetailsWidgetHeaderGradient\1\color=ffffff

View File

@@ -105,7 +105,7 @@ MenuItemTextColorNormal=text
MiniProjectTargetSelectorBackgroundColor=shadowBackground MiniProjectTargetSelectorBackgroundColor=shadowBackground
MiniProjectTargetSelectorBorderColor=shadowBackground MiniProjectTargetSelectorBorderColor=shadowBackground
MiniProjectTargetSelectorSummaryBackgroundColor=shadowBackground MiniProjectTargetSelectorSummaryBackgroundColor=shadowBackground
MiniProjectTargetSelectorTextColor=text MiniProjectTargetSelectorTextColor=fancyBarsNormalTextColor
PanelStatusBarBackgroundColor=shadowBackground PanelStatusBarBackgroundColor=shadowBackground
PanelsWidgetSeparatorLineColor=0 PanelsWidgetSeparatorLineColor=0
PanelTextColorDark=text PanelTextColorDark=text
@@ -185,6 +185,8 @@ ProjectExplorer_TaskWarn_TextMarkColor=ffffff40
ClangCodeModel_Error_TextMarkColor=ffff882f ClangCodeModel_Error_TextMarkColor=ffff882f
ClangCodeModel_Warning_TextMarkColor=ffceff40 ClangCodeModel_Warning_TextMarkColor=ffceff40
QmlDesigner_HighlightColor=ff46a2da
PaletteWindow=normalBackground PaletteWindow=normalBackground
PaletteWindowText=text PaletteWindowText=text
PaletteBase=normalBackground PaletteBase=normalBackground
@@ -219,6 +221,7 @@ FlatSideBarIcons=true
FlatProjectsMode=true FlatProjectsMode=true
FlatMenuBar=true FlatMenuBar=true
ToolBarIconShadow=true ToolBarIconShadow=true
WindowColorAsBase=false
[Gradients] [Gradients]
DetailsWidgetHeaderGradient\1\color=0 DetailsWidgetHeaderGradient\1\color=0

View File

@@ -102,7 +102,7 @@ MenuItemTextColorNormal=text
MiniProjectTargetSelectorBackgroundColor=shadowBackground MiniProjectTargetSelectorBackgroundColor=shadowBackground
MiniProjectTargetSelectorBorderColor=shadowBackground MiniProjectTargetSelectorBorderColor=shadowBackground
MiniProjectTargetSelectorSummaryBackgroundColor=shadowBackground MiniProjectTargetSelectorSummaryBackgroundColor=shadowBackground
MiniProjectTargetSelectorTextColor=text MiniProjectTargetSelectorTextColor=fancyBarsNormalTextColor
PanelStatusBarBackgroundColor=shadowBackground PanelStatusBarBackgroundColor=shadowBackground
PanelsWidgetSeparatorLineColor=0 PanelsWidgetSeparatorLineColor=0
PanelTextColorDark=text PanelTextColorDark=text
@@ -182,6 +182,8 @@ ProjectExplorer_TaskWarn_TextMarkColor=ffffa500
ClangCodeModel_Error_TextMarkColor=ffff882f ClangCodeModel_Error_TextMarkColor=ffff882f
ClangCodeModel_Warning_TextMarkColor=ffc6c132 ClangCodeModel_Warning_TextMarkColor=ffc6c132
QmlDesigner_HighlightColor=ff46a2da
[Flags] [Flags]
ComboBoxDrawTextShadow=false ComboBoxDrawTextShadow=false
DerivePaletteFromTheme=false DerivePaletteFromTheme=false
@@ -196,6 +198,7 @@ FlatSideBarIcons=true
FlatProjectsMode=false FlatProjectsMode=false
FlatMenuBar=false FlatMenuBar=false
ToolBarIconShadow=false ToolBarIconShadow=false
WindowColorAsBase=false
[Gradients] [Gradients]
DetailsWidgetHeaderGradient\1\color=0 DetailsWidgetHeaderGradient\1\color=0

View File

@@ -101,7 +101,7 @@ MenuItemTextColorNormal=text
MiniProjectTargetSelectorBackgroundColor=shadowBackground MiniProjectTargetSelectorBackgroundColor=shadowBackground
MiniProjectTargetSelectorBorderColor=shadowBackground MiniProjectTargetSelectorBorderColor=shadowBackground
MiniProjectTargetSelectorSummaryBackgroundColor=shadowBackground MiniProjectTargetSelectorSummaryBackgroundColor=shadowBackground
MiniProjectTargetSelectorTextColor=text MiniProjectTargetSelectorTextColor=fancyBarsNormalTextColor
PanelStatusBarBackgroundColor=shadowBackground PanelStatusBarBackgroundColor=shadowBackground
PanelsWidgetSeparatorLineColor=0 PanelsWidgetSeparatorLineColor=0
PanelTextColorDark=text PanelTextColorDark=text
@@ -181,6 +181,8 @@ ProjectExplorer_TaskWarn_TextMarkColor=ffffa500
ClangCodeModel_Error_TextMarkColor=ffff882f ClangCodeModel_Error_TextMarkColor=ffff882f
ClangCodeModel_Warning_TextMarkColor=ffc6c132 ClangCodeModel_Warning_TextMarkColor=ffc6c132
QmlDesigner_HighlightColor=ff46a2da
[Flags] [Flags]
ComboBoxDrawTextShadow=false ComboBoxDrawTextShadow=false
DerivePaletteFromTheme=false DerivePaletteFromTheme=false
@@ -195,6 +197,7 @@ FlatSideBarIcons=true
FlatProjectsMode=false FlatProjectsMode=false
FlatMenuBar=false FlatMenuBar=false
ToolBarIconShadow=true ToolBarIconShadow=true
WindowColorAsBase=false
[Gradients] [Gradients]
DetailsWidgetHeaderGradient\1\color=0 DetailsWidgetHeaderGradient\1\color=0

View File

@@ -55,7 +55,7 @@ Product {
] ]
if (qbs.targetOS.contains("windows")) if (qbs.targetOS.contains("windows"))
list.push("notepad_win.xml"); list.push("notepad_win.xml");
else if (qbs.targetOS.contains("osx")) else if (qbs.targetOS.contains("macos"))
list.push("vi_mac.xml"); list.push("vi_mac.xml");
else else
list.push("vi.xml"); list.push("vi.xml");

View File

@@ -2,10 +2,10 @@ import qbs
QtcProduct { QtcProduct {
Depends { name: "bundle" } Depends { name: "bundle" }
Depends { name: "ib"; condition: qbs.targetOS.contains("osx") } Depends { name: "ib"; condition: qbs.targetOS.contains("macos") }
Properties { Properties {
condition: qbs.targetOS.contains("osx") condition: qbs.targetOS.contains("macos")
ib.appIconName: "qtcreator" ib.appIconName: "qtcreator"
} }
@@ -23,7 +23,7 @@ QtcProduct {
installDir: qtc.ide_bin_path installDir: qtc.ide_bin_path
property bool qtcRunnable: true property bool qtcRunnable: true
cpp.rpaths: qbs.targetOS.contains("osx") ? ["@executable_path/../Frameworks"] cpp.rpaths: qbs.targetOS.contains("macos") ? ["@executable_path/../Frameworks"]
: ["$ORIGIN/../" + qtc.libDirName + "/qtcreator"] : ["$ORIGIN/../" + qtc.libDirName + "/qtcreator"]
cpp.includePaths: [ cpp.includePaths: [
project.sharedSourcesDir + "/qtsingleapplication", project.sharedSourcesDir + "/qtsingleapplication",
@@ -51,7 +51,7 @@ QtcProduct {
Group { Group {
name: "qtcreator.sh" name: "qtcreator.sh"
condition: qbs.targetOS.contains("unix") && !qbs.targetOS.contains("osx") condition: qbs.targetOS.contains("unix") && !qbs.targetOS.contains("macos")
files: "../../bin/qtcreator.sh" files: "../../bin/qtcreator.sh"
qbs.install: true qbs.install: true
qbs.installDir: "bin" qbs.installDir: "bin"
@@ -74,7 +74,7 @@ QtcProduct {
} }
Group { Group {
condition: qbs.targetOS.contains("osx") condition: qbs.targetOS.contains("macos")
fileTagsFilter: ["aggregate_infoplist", "pkginfo", "compiled_assetcatalog"] fileTagsFilter: ["aggregate_infoplist", "pkginfo", "compiled_assetcatalog"]
qbs.install: true qbs.install: true
qbs.installSourceBase: product.buildDirectory qbs.installSourceBase: product.buildDirectory

View File

@@ -762,6 +762,11 @@ QByteArray Preprocessor::run(const QString &fileName,
return preprocessed; return preprocessed;
} }
void Preprocessor::setCancelChecker(const Preprocessor::CancelChecker &cancelChecker)
{
m_cancelChecker = cancelChecker;
}
bool Preprocessor::expandFunctionlikeMacros() const bool Preprocessor::expandFunctionlikeMacros() const
{ {
return m_expandFunctionlikeMacros; return m_expandFunctionlikeMacros;
@@ -1636,6 +1641,9 @@ void Preprocessor::handlePreprocessorDirective(PPToken *tk)
void Preprocessor::handleIncludeDirective(PPToken *tk, bool includeNext) void Preprocessor::handleIncludeDirective(PPToken *tk, bool includeNext)
{ {
if (m_cancelChecker && m_cancelChecker())
return;
m_state.m_lexer->setScanAngleStringLiteralTokens(true); m_state.m_lexer->setScanAngleStringLiteralTokens(true);
lex(tk); // consume "include" token lex(tk); // consume "include" token
m_state.m_lexer->setScanAngleStringLiteralTokens(false); m_state.m_lexer->setScanAngleStringLiteralTokens(false);

View File

@@ -56,6 +56,8 @@
#include <QByteArray> #include <QByteArray>
#include <QPair> #include <QPair>
#include <functional>
namespace CPlusPlus { namespace CPlusPlus {
class Environment; class Environment;
@@ -81,6 +83,9 @@ public:
QByteArray run(const QString &filename, const QByteArray &source, QByteArray run(const QString &filename, const QByteArray &source,
bool noLines = false, bool markGeneratedTokens = true); bool noLines = false, bool markGeneratedTokens = true);
using CancelChecker = std::function<bool()>;
void setCancelChecker(const CancelChecker &cancelChecker);
bool expandFunctionlikeMacros() const; bool expandFunctionlikeMacros() const;
void setExpandFunctionlikeMacros(bool expandFunctionlikeMacros); void setExpandFunctionlikeMacros(bool expandFunctionlikeMacros);
@@ -253,6 +258,7 @@ private:
Client *m_client; Client *m_client;
Environment *m_env; Environment *m_env;
QByteArray m_scratchBuffer; QByteArray m_scratchBuffer;
CancelChecker m_cancelChecker;
bool m_expandFunctionlikeMacros; bool m_expandFunctionlikeMacros;
bool m_keepComments; bool m_keepComments;

Some files were not shown because too many files have changed in this diff Show More