forked from qt-creator/qt-creator
Merge remote-tracking branch 'origin/13.0'
Conflicts: src/plugins/languageclient/languageclientutils.cpp Change-Id: I8d1945f79d93cecee9b22f409bc5f2eefaf6a4cd
This commit is contained in:
@@ -197,7 +197,8 @@ FileSaver::FileSaver(const FilePath &filePath, QIODevice::OpenMode mode)
|
||||
m_file.reset(tf);
|
||||
} else {
|
||||
const bool readOnlyOrAppend = mode & (QIODevice::ReadOnly | QIODevice::Append);
|
||||
m_isSafe = !readOnlyOrAppend && !filePath.hasHardLinks();
|
||||
m_isSafe = !readOnlyOrAppend && !filePath.hasHardLinks()
|
||||
&& !qtcEnvironmentVariableIsSet("QTC_DISABLE_ATOMICSAVE");
|
||||
if (m_isSafe)
|
||||
m_file.reset(new SaveFile(filePath));
|
||||
else
|
||||
|
||||
@@ -30,6 +30,7 @@
|
||||
|
||||
#include <projectexplorer/runcontrol.h>
|
||||
|
||||
#include <utils/algorithm.h>
|
||||
#include <utils/environment.h>
|
||||
#include <utils/qtcprocess.h>
|
||||
#include <utils/processinterface.h>
|
||||
@@ -328,6 +329,16 @@ void LldbEngine::handleLldbStarted()
|
||||
runEngine();
|
||||
};
|
||||
runCommand(cmd3);
|
||||
|
||||
// Execute post attach commands
|
||||
QStringList commands = settings().gdbPostAttachCommands().split('\n');
|
||||
commands = Utils::filtered(commands, [](const QString line) {
|
||||
const QString trimmed = line.trimmed();
|
||||
return !trimmed.isEmpty() && !trimmed.startsWith('#');
|
||||
});
|
||||
for (const QString &cmd : commands) {
|
||||
executeDebuggerCommand(cmd);
|
||||
}
|
||||
} else {
|
||||
notifyEngineSetupFailed();
|
||||
}
|
||||
|
||||
@@ -235,8 +235,8 @@ void updateEditorToolBar(Core::IEditor *editor)
|
||||
TextDocument *document = textEditor->textDocument();
|
||||
Client *client = LanguageClientManager::clientForDocument(textEditor->textDocument());
|
||||
|
||||
ClientExtras *extras = static_cast<ClientExtras *>(
|
||||
widget->findChild<QObject *>(clientExtrasName, Qt::FindDirectChildrenOnly));
|
||||
ClientExtras *extras = dynamic_cast<ClientExtras *>(
|
||||
widget->findChild<QObject *>(clientExtrasName, Qt::FindDirectChildrenOnly));
|
||||
if (!extras) {
|
||||
if (!client)
|
||||
return;
|
||||
|
||||
@@ -750,6 +750,9 @@ static Utils::FilePath qmllsForFile(const Utils::FilePath &file,
|
||||
|
||||
void QmlJSEditorDocumentPrivate::settingsChanged()
|
||||
{
|
||||
if (q->isTemporary())
|
||||
return;
|
||||
|
||||
Utils::FilePath newQmlls = qmllsForFile(q->filePath(), ModelManagerInterface::instance());
|
||||
if (m_qmllsStatus.qmllsPath == newQmlls)
|
||||
return;
|
||||
|
||||
@@ -7471,7 +7471,8 @@ void TextEditorWidgetPrivate::handleBackspaceKey()
|
||||
}
|
||||
}
|
||||
} else if (typingSettings.m_smartBackspaceBehavior == TypingSettings::BackspaceUnindents) {
|
||||
if (c.positionInBlock() > TabSettings::firstNonSpace(c.block().text())) {
|
||||
if (c.positionInBlock() == 0
|
||||
|| c.positionInBlock() > TabSettings::firstNonSpace(c.block().text())) {
|
||||
if (cursorWithinSnippet)
|
||||
c.beginEditBlock();
|
||||
c.deletePreviousChar();
|
||||
|
||||
@@ -25,7 +25,9 @@ def main():
|
||||
openContextMenu(waitForObject("{container=':*Qt Creator.FormEditorStack_Designer::Internal::FormEditorStack'"
|
||||
"text='PushButton' type='QPushButton' visible='1'}"), 5, 5, 1)
|
||||
activateItem(waitForObjectItem("{type='QMenu' unnamed='1' visible='1'}", "Change objectName..."))
|
||||
typeLines(waitForObject(":FormEditorStack_qdesigner_internal::PropertyLineEdit"), buttonName)
|
||||
buttonNameEdit = waitForObject(":FormEditorStack_qdesigner_internal::PropertyLineEdit")
|
||||
replaceEditorContent(buttonNameEdit, buttonName)
|
||||
type(buttonNameEdit, "<Return>")
|
||||
else:
|
||||
# Verify that everything works without ever changing the name
|
||||
buttonName = "pushButton"
|
||||
|
||||
Reference in New Issue
Block a user