Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/9.0'
Browse files Browse the repository at this point in the history
Change-Id: Id7665d5a269ef58cbbb2dbfc1e5b0d1820c4e13e
  • Loading branch information
e4z9 committed Nov 17, 2022
2 parents e0b856f + d786996 commit 81629e9
Show file tree
Hide file tree
Showing 40 changed files with 91 additions and 67 deletions.
2 changes: 1 addition & 1 deletion doc/qtcreator/src/android/androiddev.qdoc
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

To develop for Android, you must have a tool chain for building applications
for Android devices installed on the development PC. \QC can automatically
dowload and install the tool chain and create a suitable build and run
download and install the tool chain and create a suitable build and run
\l{glossary-buildandrun-kit}{kit} that contains the tool chain and the Qt
version for Android for the device's architecture.

Expand Down
4 changes: 2 additions & 2 deletions doc/qtcreator/src/android/deploying-android.qdoc
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@
To add OpenSSL libraries, select \uicontrol {Include prebuilt OpenSSL libraries}
in the \uicontrol {Additional Libraries} group. This will add the OpenSSL
include project defined in \l{Specifying Android Device Settings}{device settings}
in \uicontrol {Android OpenSSL} group. This can be used for QMake and CMake
in \uicontrol {Android OpenSSL} group. This can be used for qmake and CMake
projects.

Otherwise, you can manually add the paths to the required \c libssl.so and
Expand All @@ -248,7 +248,7 @@
\section1 Editing Manifest Files

You can use the configuration options to specify all the settings you need
for the \c androiddeployqt tool. You only need an Adroid manifest file
for the \c androiddeployqt tool. You only need an Android manifest file
to specify Android-specific settings, such as the application icon.
However, the manifest file is needed when you want to publish the package
in the Play Store.
Expand Down
2 changes: 1 addition & 1 deletion doc/qtcreator/src/baremetal/creator-baremetal-dev.qdoc
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@
\li In the \uicontrol Type field, select the interface type.

\li In the \uicontrol Speed field, enter the interface speed between
120 and 8000 kiloherz (kHz).
120 and 8000 kilohertz (kHz).

\li Select the \uicontrol {Disable cache} check box to disable the
\EBlink flash cache.
Expand Down
4 changes: 2 additions & 2 deletions doc/qtcreator/src/debugger/creator-debugger-common.qdocinc
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
breakpoint in the \uicontrol Breakpoints view.

At various times, attempts are made to implant pending breakpoints into
the debugged process. Succesfull implantation might create one or more
the debugged process. Successful implantation might create one or more
implanted breakpoints, each associated with an actual address in
the debugged breakpoint. The implantation might also move a breakpoint
marker in the editor from an empty line to the next line for which the
Expand Down Expand Up @@ -389,7 +389,7 @@
to the most powerful feature of the debugger: comprehensive display of data
belonging to Qt's basic objects. For example, in case of QObject, instead of
displaying a pointer to some private data structure, you see a list of
children, signals and slots.
children, signals, and slots.

Similarly, instead of displaying many pointers and integers, \QC's debugger
displays the contents of a QHash or QMap in an orderly manner. Also, the
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@

The 32-bit CDB version can only debug 32-bit executables, whereas the 64-bit
version can debug both 64-bit and 32-bit executables. However, interrupting a
32-bit executable with a 64-bit debugger can result in a stacktrace of the
32-bit executable with a 64-bit debugger can result in a stack trace of the
WOW64 emulator 32-bit emulation layer being displayed.

\QC extends the command line debugger by loading the
Expand All @@ -187,7 +187,7 @@

It is highly recommended that you add the Symbol Server provided
by Microsoft to the symbol search path of the debugger. The
Symbol Server provides you with debugging informaton for the
Symbol Server provides you with debugging information for the
operating system libraries for debugging Windows applications.
For more information, see
\l{Setting CDB Paths on Windows}.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@
to manage the GDB process, see \l{Specifying GDB Settings} and
\l{Specifying Extended GDB Settings}.

For more informaton about connecting with \c {target extended-remote} mode
For more information about connecting with \c {target extended-remote} mode
in GDB, see \l{https://sourceware.org/gdb/onlinedocs/gdb/Connecting.html}
{Debugging with GDB: Connecting to a Remote Target}.

Expand Down
6 changes: 3 additions & 3 deletions doc/qtcreator/src/editors/creator-editors-options-text.qdoc
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@
\li In the \uicontrol Background field, select the background
color for the code element or message.

The backgound of the \uicontrol Text element determines the background of the
code editor.
The background of the \uicontrol Text element determines the background
of the code editor.

\li In \uicontrol Font, select \uicontrol Bold or \uicontrol Italic to
format the text of the selected code element or message by making it
Expand Down Expand Up @@ -116,7 +116,7 @@

To resolve the issue, use a file conversion tool to convert the file
encoding to UTF-8 when developing Qt 5 applications. Otherwise, conversion
of string constants to QStrings might not work as expected.
of string constants to QString might not work as expected.

If you develop only Qt 4 applications or other than Qt applications, you
can set other encoding options as the default encoding. Select the
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@

\section1 Quitting FakeVim Mode

To quit the FakeVim mode, unselect \uicontrol Edit > \uicontrol Preferences >
To quit the FakeVim mode, deselect \uicontrol Edit > \uicontrol Preferences >
\uicontrol FakeVim > \uicontrol {Use FakeVim} or press \key {Alt+V,Alt+V}.

You can temporarily escape FakeVim mode to access the normal \QC keyboard
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
file patterns to match language servers. If you do not set at least one MIME
type or file pattern, no files will be sent to the language server. This is
done to avoid unnecessary traffic and inaccurate information, as files are
only sent to the languge server if they are known to be handled by it. For
only sent to the language server if they are known to be handled by it. For
more information about how \QC uses MIME types, see \l {Editing MIME Types}.

\section1 Specifying Settings for Language Clients
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@

\QC searches for the value within a specified range in the files and takes
the priority of the magic header into account. If you specify wide search
ranges, openging files in \QC might take a long time. Therefore, you are
ranges, opening files in \QC might take a long time. Therefore, you are
advised to use the recommended values for the range and priority of the
magic header.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
\endlist

You can group elements by surrounding them with a boundary. When you move
the boundary, all elements within it are moved together. Similary, drag
the boundary, all elements within it are moved together. Similarly, drag
a swimlane to the diagram. When you move the swimlane, all elements right
to the swimlane (for vertical swimlanes) or below it (for horizontal swimlanes)
will be moved together. A vertical swimlane is created when you drop the
Expand Down
2 changes: 1 addition & 1 deletion doc/qtcreator/src/howto/creator-only/creator-autotest.qdoc
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
\li For a Qt Quick test, select the
\uicontrol {Generate setup code} check box to execute C++
code before any of the QML tests are run. The testing
framework will call slots and invokable functions, as
framework will call slots and invocable functions, as
described in \l{Executing C++ Before QML Tests}.

\image qtcreator-autotests-project-qtquick-test.png "Autotest project wizard - Qt Quick Test"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@
is encountered. This is the default behavior in Visual Studio
builds, but not for Make and Build tools or Dev Tools builds.
\li \uicontrol {Additional Arguments} are concatenated to the final
buildconsole command line.
build console command line.
\li \uicontrol {Open Build Monitor} opens an IncrediBuild Build Monitor
that graphically displays the build's progress once the build
starts.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@
\row
\li {1,2} General
\li Empty File
\li Empty file that you can save with any filename extensio.
\li Empty file that you can save with any filename extension.
\row
\li Scratch Buffer
\li Scratch buffer that uses temporary files. You can
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
compilers from the various KEIL development environments.
Currently supported architectures are \c 8051 and \c ARM.

\li \l{http://sdcc.sourceforge.net}{SDCC} is a retargetable, optimizing
\li \l{http://sdcc.sourceforge.net}{SDCC} is an optimizing
C bare-metal compiler for various architectures.
Currently supported architectures are \c 8051 and \c STM8.

Expand All @@ -90,7 +90,7 @@
The emscripten compiler is tool chain for compiling to
\l{Building Applications for the Web}{WebAssembly}.

\section1 Redetecting Compilers
\section1 Re-detecting Compilers

When \QC finds an x86_64 GCC compiler, it sets up an instance for the native
x86_64 target. If you plan to create also 32-bit x86 binaries without using
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
JavaScript expression and converts the resulting JavaScript value to a string.
In the JavaScript expression you can refer to variables defined by the wizard with
\c {value('<variableName>')}. The returned JavaScript object has the type that the value
of the variable has, which can be a string, list, dictionary or boolean.
of the variable has, which can be a string, list, dictionary, or boolean.

In places where a boolean value is expected and a string is given,
an empty string as well as the string \c {"false"} is treated as
Expand Down Expand Up @@ -471,7 +471,7 @@
\endlist

\li \c preferredFeatures with a list in the same format as
requiredFeatures. Any kit matching all features listed in
\c requiredFeatures. Any kit matching all features listed in
\c preferredFeatures (in addition to \c requiredFeatures) will be
pre-selected on this page.
\endlist
Expand Down Expand Up @@ -524,7 +524,7 @@
}
\endcode

The page sets \c IsSubproject to an empty string if this is a toplevel
The page sets \c IsSubproject to an empty string if this is a top-level
project and to \c yes otherwise. It sets \c VersionControl to the ID of the
version control system in use.

Expand Down Expand Up @@ -621,7 +621,7 @@
\li \c type specifies the type of the widget: \c CheckBox, \c ComboBox,
\c Label, \c LineEdit, \c PathChooser, \c Spacer, and \c TextEdit.

\li \c trToolTip specifies a tool tip to show when hovering the field
\li \c trToolTip specifies a tooltip to show when hovering the field
with the mouse.

\li \c isComplete is evaluated for all fields to decide whether the
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
\endlist

To stop the synchronization between the editor and the
\uicontrol {File System} view, delesect the \inlineimage icons/linkicon.png
\uicontrol {File System} view, deselect the \inlineimage icons/linkicon.png
(\uicontrol {Synchronize Root Directory with Editor}) button.

The view displays the path to the active file as bread crumbs. You can move
Expand Down
2 changes: 1 addition & 1 deletion doc/qtcreator/src/user-interface/creator-views.qdoc
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
\li \l{Using Bookmarks}{Bookmarks} shows all bookmarks for the current
session.
\li \l{Working with Branches}{Git Branches} shows the local and remote
brances for the project in the Git version control system.
branches for the project in the Git version control system.
\li \l{Viewing Defined Types and Symbols}{Outline} shows an overview of
defined types and other symbols, as well as their properties and
hierarchy in a source file.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
To group files for commit, select \uicontrol Tools > \uicontrol Perforce >
\uicontrol {Pending Changes}.

To view information about changelists and the files in them, select
To view information about change lists and the files in them, select
\uicontrol Tools > \uicontrol Perforce > \uicontrol Describe.

By default, you must confirm that you want to submit changes. To suppress
Expand Down
6 changes: 3 additions & 3 deletions doc/qtcreator/src/vcs/creator-vcs-git.qdoc
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@

With Git, you can put your current set of changes onto a virtual shelf
called a \e stash. Stashes are useful, for example, to put aside a set of
changes to work on higher priority tasks or to pull in new chages from
changes to work on higher priority tasks or to pull in new changes from
another repository.

To stash all local changes, select \uicontrol Stash > \uicontrol Stash. The
Expand All @@ -411,7 +411,7 @@
display or delete them, select \uicontrol Stashes.

To save a snapshot of your current work under a name for later reference,
select \uicontrol {Take Snapshot}. The working copy is unchanged. For
select \uicontrol {Take Snapshot}. The working copy is not changed. For
example, if you want to try something and find out later that it does not
work, you can discard the changes and return to the state of the snapshot.

Expand Down Expand Up @@ -455,7 +455,7 @@
version control, select \uicontrol Tools > \uicontrol Git >
\uicontrol {Create Repository}. \QC creates a new subdirectory named .git
that contains all the necessary repository files. However, Git does not track
anyhing in the project yet, so you will need to create an initial commit to
anything in the project yet, so you will need to create an initial commit to
start tracking the project files.

\section1 Working with Remote Repositories
Expand Down
2 changes: 1 addition & 1 deletion doc/qtcreator/src/widgets/qtdesigner-plugins.qdoc
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@

On \macos, a GUI application must be built and run from a bundle. A bundle
is a directory structure that appears as a single entity when viewed in the
Finder. A bundle for an application typcially contains the executable and
Finder. A bundle for an application typically contains the executable and
all the resources it needs.

\QC uses its own set of Qt Libraries located in the bundle, and therefore,
Expand Down
1 change: 1 addition & 0 deletions src/libs/utils/filepath.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1085,6 +1085,7 @@ QString FilePath::calcRelativePath(const QString &absolutePath, const QString &a
*/
FilePath FilePath::onDevice(const FilePath &deviceTemplate) const
{
isSameDevice(deviceTemplate);
const bool sameDevice = scheme() == deviceTemplate.scheme() && host() == deviceTemplate.host();
if (sameDevice)
return *this;
Expand Down
6 changes: 4 additions & 2 deletions src/libs/utils/qtcassert.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
#include <QByteArray>
#include <QDebug>
#include <QMutex>
#include <QTime>

#if defined(Q_OS_UNIX)
#include <stdio.h>
Expand Down Expand Up @@ -117,11 +118,12 @@ void dumpBacktrace(int maxdepth)

void writeAssertLocation(const char *msg)
{
const QByteArray time = QTime::currentTime().toString(Qt::ISODateWithMs).toLatin1();
static bool goBoom = qEnvironmentVariableIsSet("QTC_FATAL_ASSERTS");
if (goBoom)
qFatal("SOFT ASSERT made fatal: %s", msg);
qFatal("SOFT ASSERT [%s] made fatal: %s", time.data(), msg);
else
qDebug("SOFT ASSERT: %s", msg);
qDebug("SOFT ASSERT [%s]: %s", time.data(), msg);

static int maxdepth = qEnvironmentVariableIntValue("QTC_BACKTRACE_MAXDEPTH");
if (maxdepth != 0)
Expand Down
2 changes: 2 additions & 0 deletions src/libs/utils/theme/theme.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,8 @@ void Theme::setHelpMenu(QMenu *menu)
{
#ifdef Q_OS_MACOS
Internal::setMacOSHelpMenu(menu);
#else
Q_UNUSED(menu)
#endif
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1484,6 +1484,7 @@ CMakeBuildConfiguration::CMakeBuildConfiguration(Target *target, Id id)

cmd.addArg("-DCMAKE_TOOLCHAIN_FILE:FILEPATH="
+ ndkLocation.pathAppended("build/cmake/android.toolchain.cmake").path());
cmd.addArg("-DANDROID_USE_LEGACY_TOOLCHAIN_FILE:BOOL=OFF");

auto androidAbis = bs->data(Android::Constants::AndroidMkSpecAbis).toStringList();
QString preferredAbi;
Expand Down
19 changes: 5 additions & 14 deletions src/plugins/debugger/debuggeritem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ void DebuggerItem::createId()
m_id = QUuid::createUuid().toString();
}

void DebuggerItem::reinitializeFromFile(const Environment &sysEnv, QString *error)
void DebuggerItem::reinitializeFromFile(QString *error, Utils::Environment *customEnv)
{
// CDB only understands the single-dash -version, whereas GDB and LLDB are
// happy with both -version and --version. So use the "working" -version
Expand All @@ -137,7 +137,8 @@ void DebuggerItem::reinitializeFromFile(const Environment &sysEnv, QString *erro
return;
}

Environment env = sysEnv.isValid() ? sysEnv : Environment::systemEnvironment();
Environment env = customEnv ? *customEnv : m_command.deviceEnvironment();

// Prevent calling lldb on Windows because the lldb from the llvm package is linked against
// python but does not contain a python dll.
const bool isAndroidNdkLldb = DebuggerItem::addAndroidLldbPythonEnv(m_command, env);
Expand Down Expand Up @@ -186,18 +187,8 @@ void DebuggerItem::reinitializeFromFile(const Environment &sysEnv, QString *erro
const bool unableToFindAVersion = (0 == version);
const bool gdbSupportsConfigurationFlag = (version >= 70700);
if (gdbSupportsConfigurationFlag || unableToFindAVersion) {

auto gdbConfiguration = [this, &output, &sysEnv]() {
if (!output.contains("qnx"))
return getGdbConfiguration(m_command, sysEnv);

Environment env = sysEnv;
env.set("QNX_TARGET", QString());
return getGdbConfiguration(m_command, env);
};

const QString gdbTargetAbiString =
extractGdbTargetAbiStringFromGdbOutput(gdbConfiguration());
const QString gdbTargetAbiString = extractGdbTargetAbiStringFromGdbOutput(
getGdbConfiguration(m_command, env));
if (!gdbTargetAbiString.isEmpty()) {
m_abis.append(Abi::abiFromTargetTriplet(gdbTargetAbiString));
return;
Expand Down
3 changes: 1 addition & 2 deletions src/plugins/debugger/debuggeritem.h
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,7 @@ class DEBUGGER_EXPORT DebuggerItem
bool operator==(const DebuggerItem &other) const;
bool operator!=(const DebuggerItem &other) const { return !operator==(other); }

void reinitializeFromFile(const Utils::Environment &sysEnv = Utils::Environment::systemEnvironment(),
QString *error = nullptr);
void reinitializeFromFile(QString *error = nullptr, Utils::Environment *env = nullptr);

Utils::FilePath workingDirectory() const { return m_workingDirectory; }
void setWorkingDirectory(const Utils::FilePath &workingPath) { m_workingDirectory = workingPath; }
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/debugger/debuggeritemmanager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ DebuggerItemConfigWidget::DebuggerItemConfigWidget()
DebuggerItem item;
item.setCommand(m_binaryChooser->filePath());
errorMessage->clear();
item.reinitializeFromFile({}, errorMessage);
item.reinitializeFromFile(errorMessage);
return errorMessage->isEmpty();
});
m_binaryChooser->setAllowPathFromDevice(true);
Expand Down
3 changes: 2 additions & 1 deletion src/plugins/debugger/debuggerruncontrol.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,8 @@ void DebuggerRunTool::start()
}

// QML and/or mixed are not prepared for it.
setSupportsReRunning(!m_runParameters.isQmlDebugging);
// setSupportsReRunning(!m_runParameters.isQmlDebugging);
setSupportsReRunning(false); // FIXME: Broken in general.

// FIXME: Disabled due to Android. Make Android device report available ports instead.
// int portsUsed = portsUsedByDebugger();
Expand Down
Loading

0 comments on commit 81629e9

Please sign in to comment.