forked from qt-creator/qt-creator
Fix warning: "Missing emit keyword on signal call"
[-Wclazy-incorrect-emit] Change-Id: I93bdc6e23cdaccf35c9899ae16870ccc65a54f80 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
@@ -399,7 +399,7 @@ void QmlDebugConnection::newConnection()
|
|||||||
|
|
||||||
connect(socket, &QLocalSocket::stateChanged,
|
connect(socket, &QLocalSocket::stateChanged,
|
||||||
this, [this](QLocalSocket::LocalSocketState state) {
|
this, [this](QLocalSocket::LocalSocketState state) {
|
||||||
logStateChange(socketStateToString(static_cast<QAbstractSocket::SocketState>(state)));
|
emit logStateChange(socketStateToString(static_cast<QAbstractSocket::SocketState>(state)));
|
||||||
});
|
});
|
||||||
|
|
||||||
socketConnected();
|
socketConnected();
|
||||||
|
|||||||
@@ -391,7 +391,7 @@ void ContextPaneWidget::onShowColorDialog(bool checked, const QPoint &p)
|
|||||||
|
|
||||||
void ContextPaneWidget::onDisable(bool b)
|
void ContextPaneWidget::onDisable(bool b)
|
||||||
{
|
{
|
||||||
enabledChanged(b);
|
emit enabledChanged(b);
|
||||||
if (!b) {
|
if (!b) {
|
||||||
hide();
|
hide();
|
||||||
colorDialog()->hide();
|
colorDialog()->hide();
|
||||||
@@ -491,7 +491,7 @@ void ContextPaneWidget::setPinButton()
|
|||||||
m_toolButton->setFixedSize(20, 20);
|
m_toolButton->setFixedSize(20, 20);
|
||||||
m_toolButton->setToolTip(tr("Unpins the toolbar and moves it to the default position."));
|
m_toolButton->setToolTip(tr("Unpins the toolbar and moves it to the default position."));
|
||||||
|
|
||||||
pinnedChanged(true);
|
emit pinnedChanged(true);
|
||||||
if (m_resetAction) {
|
if (m_resetAction) {
|
||||||
QSignalBlocker blocker(m_resetAction);
|
QSignalBlocker blocker(m_resetAction);
|
||||||
m_resetAction->setChecked(true);
|
m_resetAction->setChecked(true);
|
||||||
@@ -508,7 +508,7 @@ void ContextPaneWidget::setLineButton()
|
|||||||
m_toolButton->setToolTip(tr("Hides this toolbar. This toolbar can be"
|
m_toolButton->setToolTip(tr("Hides this toolbar. This toolbar can be"
|
||||||
" permanently disabled in the options page or in the context menu."));
|
" permanently disabled in the options page or in the context menu."));
|
||||||
|
|
||||||
pinnedChanged(false);
|
emit pinnedChanged(false);
|
||||||
if (m_resetAction) {
|
if (m_resetAction) {
|
||||||
QSignalBlocker blocker(m_resetAction);
|
QSignalBlocker blocker(m_resetAction);
|
||||||
m_resetAction->setChecked(false);
|
m_resetAction->setChecked(false);
|
||||||
|
|||||||
@@ -380,7 +380,7 @@ void ContextPaneWidgetImage::onPixmapDoubleClicked()
|
|||||||
void ContextPaneWidgetImage::onLeftMarginsChanged()
|
void ContextPaneWidgetImage::onLeftMarginsChanged()
|
||||||
{
|
{
|
||||||
if (previewDialog()->previewLabel()->leftMarging())
|
if (previewDialog()->previewLabel()->leftMarging())
|
||||||
propertyChanged(QLatin1String("border.left"), previewDialog()->previewLabel()->leftMarging());
|
emit propertyChanged("border.left", previewDialog()->previewLabel()->leftMarging());
|
||||||
else
|
else
|
||||||
emit removeProperty(QLatin1String("border.left"));
|
emit removeProperty(QLatin1String("border.left"));
|
||||||
}
|
}
|
||||||
@@ -388,7 +388,7 @@ void ContextPaneWidgetImage::onLeftMarginsChanged()
|
|||||||
void ContextPaneWidgetImage::onRightMarginsChanged()
|
void ContextPaneWidgetImage::onRightMarginsChanged()
|
||||||
{
|
{
|
||||||
if (previewDialog()->previewLabel()->rightMarging())
|
if (previewDialog()->previewLabel()->rightMarging())
|
||||||
propertyChanged(QLatin1String("border.right"), previewDialog()->previewLabel()->rightMarging());
|
emit propertyChanged("border.right", previewDialog()->previewLabel()->rightMarging());
|
||||||
else
|
else
|
||||||
emit removeProperty(QLatin1String("border.right"));
|
emit removeProperty(QLatin1String("border.right"));
|
||||||
|
|
||||||
@@ -398,7 +398,7 @@ void ContextPaneWidgetImage::onRightMarginsChanged()
|
|||||||
void ContextPaneWidgetImage::onTopMarginsChanged()
|
void ContextPaneWidgetImage::onTopMarginsChanged()
|
||||||
{
|
{
|
||||||
if (previewDialog()->previewLabel()->topMarging())
|
if (previewDialog()->previewLabel()->topMarging())
|
||||||
propertyChanged(QLatin1String("border.top"), previewDialog()->previewLabel()->topMarging());
|
emit propertyChanged("border.top", previewDialog()->previewLabel()->topMarging());
|
||||||
else
|
else
|
||||||
emit removeProperty(QLatin1String("border.top"));
|
emit removeProperty(QLatin1String("border.top"));
|
||||||
}
|
}
|
||||||
@@ -406,7 +406,7 @@ void ContextPaneWidgetImage::onTopMarginsChanged()
|
|||||||
void ContextPaneWidgetImage::onBottomMarginsChanged()
|
void ContextPaneWidgetImage::onBottomMarginsChanged()
|
||||||
{
|
{
|
||||||
if (previewDialog()->previewLabel()->bottomMarging())
|
if (previewDialog()->previewLabel()->bottomMarging())
|
||||||
propertyChanged(QLatin1String("border.bottom"), previewDialog()->previewLabel()->bottomMarging());
|
emit propertyChanged("border.bottom", previewDialog()->previewLabel()->bottomMarging());
|
||||||
else
|
else
|
||||||
emit removeProperty(QLatin1String("border.bottom"));
|
emit removeProperty(QLatin1String("border.bottom"));
|
||||||
|
|
||||||
|
|||||||
@@ -336,7 +336,7 @@ SynchronousProcessResponse ShellCommand::runCommand(const FileName &binary,
|
|||||||
QSharedPointer<OutputProxy> proxy(d->m_proxyFactory());
|
QSharedPointer<OutputProxy> proxy(d->m_proxyFactory());
|
||||||
|
|
||||||
if (!(d->m_flags & SuppressCommandLogging))
|
if (!(d->m_flags & SuppressCommandLogging))
|
||||||
proxy->appendCommand(dir, binary, arguments);
|
emit proxy->appendCommand(dir, binary, arguments);
|
||||||
|
|
||||||
if ((d->m_flags & FullySynchronously)
|
if ((d->m_flags & FullySynchronously)
|
||||||
|| (!(d->m_flags & NoFullySync)
|
|| (!(d->m_flags & NoFullySync)
|
||||||
@@ -350,9 +350,9 @@ SynchronousProcessResponse ShellCommand::runCommand(const FileName &binary,
|
|||||||
// Success/Fail message in appropriate window?
|
// Success/Fail message in appropriate window?
|
||||||
if (response.result == SynchronousProcessResponse::Finished) {
|
if (response.result == SynchronousProcessResponse::Finished) {
|
||||||
if (d->m_flags & ShowSuccessMessage)
|
if (d->m_flags & ShowSuccessMessage)
|
||||||
proxy->appendMessage(response.exitMessage(binary.toUserOutput(), timeoutS));
|
emit proxy->appendMessage(response.exitMessage(binary.toUserOutput(), timeoutS));
|
||||||
} else if (!(d->m_flags & SuppressFailMessage)) {
|
} else if (!(d->m_flags & SuppressFailMessage)) {
|
||||||
proxy->appendError(response.exitMessage(binary.toUserOutput(), timeoutS));
|
emit proxy->appendError(response.exitMessage(binary.toUserOutput(), timeoutS));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -385,14 +385,14 @@ SynchronousProcessResponse ShellCommand::runFullySynchronous(const FileName &bin
|
|||||||
if (!d->m_aborted) {
|
if (!d->m_aborted) {
|
||||||
const QString stdErr = resp.stdErr();
|
const QString stdErr = resp.stdErr();
|
||||||
if (!stdErr.isEmpty() && !(d->m_flags & SuppressStdErr))
|
if (!stdErr.isEmpty() && !(d->m_flags & SuppressStdErr))
|
||||||
proxy->append(stdErr);
|
emit proxy->append(stdErr);
|
||||||
|
|
||||||
const QString stdOut = resp.stdOut();
|
const QString stdOut = resp.stdOut();
|
||||||
if (!stdOut.isEmpty() && d->m_flags & ShowStdOut) {
|
if (!stdOut.isEmpty() && d->m_flags & ShowStdOut) {
|
||||||
if (d->m_flags & SilentOutput)
|
if (d->m_flags & SilentOutput)
|
||||||
proxy->appendSilently(stdOut);
|
emit proxy->appendSilently(stdOut);
|
||||||
else
|
else
|
||||||
proxy->append(stdOut);
|
emit proxy->append(stdOut);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -430,7 +430,7 @@ SynchronousProcessResponse ShellCommand::runSynchronous(const FileName &binary,
|
|||||||
if (d->m_progressParser)
|
if (d->m_progressParser)
|
||||||
d->m_progressParser->parseProgress(text);
|
d->m_progressParser->parseProgress(text);
|
||||||
if (!(d->m_flags & SuppressStdErr))
|
if (!(d->m_flags & SuppressStdErr))
|
||||||
proxy->appendError(text);
|
emit proxy->appendError(text);
|
||||||
if (d->m_progressiveOutput)
|
if (d->m_progressiveOutput)
|
||||||
emit stdErrText(text);
|
emit stdErrText(text);
|
||||||
});
|
});
|
||||||
@@ -445,7 +445,7 @@ SynchronousProcessResponse ShellCommand::runSynchronous(const FileName &binary,
|
|||||||
if (d->m_progressParser)
|
if (d->m_progressParser)
|
||||||
d->m_progressParser->parseProgress(text);
|
d->m_progressParser->parseProgress(text);
|
||||||
if (d->m_flags & ShowStdOut)
|
if (d->m_flags & ShowStdOut)
|
||||||
proxy->append(text);
|
emit proxy->append(text);
|
||||||
if (d->m_progressiveOutput) {
|
if (d->m_progressiveOutput) {
|
||||||
emit stdOutText(text);
|
emit stdOutText(text);
|
||||||
d->m_hadOutput = true;
|
d->m_hadOutput = true;
|
||||||
|
|||||||
@@ -748,7 +748,8 @@ void TreeItem::update()
|
|||||||
{
|
{
|
||||||
if (m_model) {
|
if (m_model) {
|
||||||
QModelIndex idx = index();
|
QModelIndex idx = index();
|
||||||
m_model->dataChanged(idx.sibling(idx.row(), 0), idx.sibling(idx.row(), m_model->m_columnCount - 1));
|
emit m_model->dataChanged(idx.sibling(idx.row(), 0),
|
||||||
|
idx.sibling(idx.row(), m_model->m_columnCount - 1));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -756,7 +757,7 @@ void TreeItem::updateAll()
|
|||||||
{
|
{
|
||||||
if (m_model) {
|
if (m_model) {
|
||||||
QModelIndex idx = index();
|
QModelIndex idx = index();
|
||||||
m_model->dataChanged(idx, idx.sibling(idx.row(), m_model->m_columnCount - 1));
|
emit m_model->dataChanged(idx, idx.sibling(idx.row(), m_model->m_columnCount - 1));
|
||||||
for (TreeItem *item : *this)
|
for (TreeItem *item : *this)
|
||||||
item->updateAll();
|
item->updateAll();
|
||||||
}
|
}
|
||||||
@@ -766,7 +767,7 @@ void TreeItem::updateColumn(int column)
|
|||||||
{
|
{
|
||||||
if (m_model) {
|
if (m_model) {
|
||||||
QModelIndex idx = index();
|
QModelIndex idx = index();
|
||||||
m_model->dataChanged(idx.sibling(idx.row(), column), idx.sibling(idx.row(), column));
|
emit m_model->dataChanged(idx.sibling(idx.row(), column), idx.sibling(idx.row(), column));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -893,13 +894,13 @@ void TreeItem::removeItemAt(int pos)
|
|||||||
void TreeItem::expand()
|
void TreeItem::expand()
|
||||||
{
|
{
|
||||||
QTC_ASSERT(m_model, return);
|
QTC_ASSERT(m_model, return);
|
||||||
m_model->requestExpansion(index());
|
emit m_model->requestExpansion(index());
|
||||||
}
|
}
|
||||||
|
|
||||||
void TreeItem::collapse()
|
void TreeItem::collapse()
|
||||||
{
|
{
|
||||||
QTC_ASSERT(m_model, return);
|
QTC_ASSERT(m_model, return);
|
||||||
m_model->requestCollapse(index());
|
emit m_model->requestCollapse(index());
|
||||||
}
|
}
|
||||||
|
|
||||||
void TreeItem::propagateModel(BaseTreeModel *m)
|
void TreeItem::propagateModel(BaseTreeModel *m)
|
||||||
|
|||||||
@@ -289,8 +289,8 @@ void AndroidBuildApkStep::processFinished(int exitCode, QProcess::ExitStatus sta
|
|||||||
bool AndroidBuildApkStep::verifyKeystorePassword()
|
bool AndroidBuildApkStep::verifyKeystorePassword()
|
||||||
{
|
{
|
||||||
if (!m_keystorePath.exists()) {
|
if (!m_keystorePath.exists()) {
|
||||||
addOutput(tr("Cannot sign the package. Invalid keystore path (%1).")
|
emit addOutput(tr("Cannot sign the package. Invalid keystore path (%1).")
|
||||||
.arg(m_keystorePath.toString()), OutputFormat::ErrorMessage);
|
.arg(m_keystorePath.toString()), OutputFormat::ErrorMessage);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -309,8 +309,8 @@ bool AndroidBuildApkStep::verifyCertificatePassword()
|
|||||||
{
|
{
|
||||||
if (!AndroidManager::checkCertificateExists(m_keystorePath.toString(), m_keystorePasswd,
|
if (!AndroidManager::checkCertificateExists(m_keystorePath.toString(), m_keystorePasswd,
|
||||||
m_certificateAlias)) {
|
m_certificateAlias)) {
|
||||||
addOutput(tr("Cannot sign the package. Certificate alias %1 does not exist.")
|
emit addOutput(tr("Cannot sign the package. Certificate alias %1 does not exist.")
|
||||||
.arg(m_certificateAlias), OutputFormat::ErrorMessage);
|
.arg(m_certificateAlias), OutputFormat::ErrorMessage);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -793,14 +793,14 @@ const AndroidSdkPackageList &AndroidSdkManagerPrivate::allPackages(bool forceUpd
|
|||||||
|
|
||||||
void AndroidSdkManagerPrivate::reloadSdkPackages()
|
void AndroidSdkManagerPrivate::reloadSdkPackages()
|
||||||
{
|
{
|
||||||
m_sdkManager.packageReloadBegin();
|
emit m_sdkManager.packageReloadBegin();
|
||||||
clearPackages();
|
clearPackages();
|
||||||
|
|
||||||
lastSdkManagerPath = m_config.sdkManagerToolPath();
|
lastSdkManagerPath = m_config.sdkManagerToolPath();
|
||||||
|
|
||||||
if (m_config.sdkToolsVersion().isNull()) {
|
if (m_config.sdkToolsVersion().isNull()) {
|
||||||
// Configuration has invalid sdk path or corrupt installation.
|
// Configuration has invalid sdk path or corrupt installation.
|
||||||
m_sdkManager.packageReloadFinished();
|
emit m_sdkManager.packageReloadFinished();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -820,7 +820,7 @@ void AndroidSdkManagerPrivate::reloadSdkPackages()
|
|||||||
parser.parsePackageListing(packageListing);
|
parser.parsePackageListing(packageListing);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
m_sdkManager.packageReloadFinished();
|
emit m_sdkManager.packageReloadFinished();
|
||||||
}
|
}
|
||||||
|
|
||||||
void AndroidSdkManagerPrivate::refreshSdkPackages(bool forceReload)
|
void AndroidSdkManagerPrivate::refreshSdkPackages(bool forceReload)
|
||||||
|
|||||||
@@ -617,7 +617,7 @@ void BookmarkManager::updateActionStatus()
|
|||||||
IEditor *editor = EditorManager::currentEditor();
|
IEditor *editor = EditorManager::currentEditor();
|
||||||
const bool enableToggle = editor && !editor->document()->isTemporary();
|
const bool enableToggle = editor && !editor->document()->isTemporary();
|
||||||
|
|
||||||
updateActions(enableToggle, state());
|
emit updateActions(enableToggle, state());
|
||||||
}
|
}
|
||||||
|
|
||||||
void BookmarkManager::moveUp()
|
void BookmarkManager::moveUp()
|
||||||
|
|||||||
@@ -354,7 +354,7 @@ void Manager::onProjectListChanged()
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
// update to the latest state
|
// update to the latest state
|
||||||
requestTreeDataUpdate();
|
emit requestTreeDataUpdate();
|
||||||
}
|
}
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
|
|||||||
@@ -425,7 +425,7 @@ void ShortcutSettingsWidget::importAction()
|
|||||||
item->m_key = mapping.value(sid);
|
item->m_key = mapping.value(sid);
|
||||||
item->m_item->setText(2, item->m_key.toString(QKeySequence::NativeText));
|
item->m_item->setText(2, item->m_key.toString(QKeySequence::NativeText));
|
||||||
if (item->m_item == commandList()->currentItem())
|
if (item->m_item == commandList()->currentItem())
|
||||||
currentCommandChanged(item->m_item);
|
emit currentCommandChanged(item->m_item);
|
||||||
|
|
||||||
if (item->m_cmd->defaultKeySequence() != item->m_key)
|
if (item->m_cmd->defaultKeySequence() != item->m_key)
|
||||||
setModified(item->m_item, true);
|
setModified(item->m_item, true);
|
||||||
@@ -446,7 +446,7 @@ void ShortcutSettingsWidget::defaultAction()
|
|||||||
item->m_item->setText(2, item->m_key.toString(QKeySequence::NativeText));
|
item->m_item->setText(2, item->m_key.toString(QKeySequence::NativeText));
|
||||||
setModified(item->m_item, false);
|
setModified(item->m_item, false);
|
||||||
if (item->m_item == commandList()->currentItem())
|
if (item->m_item == commandList()->currentItem())
|
||||||
currentCommandChanged(item->m_item);
|
emit currentCommandChanged(item->m_item);
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach (ShortcutItem *item, m_scitems)
|
foreach (ShortcutItem *item, m_scitems)
|
||||||
|
|||||||
@@ -71,10 +71,10 @@ void SearchResultTreeModel::setShowReplaceUI(bool show)
|
|||||||
|
|
||||||
void SearchResultTreeModel::setTextEditorFont(const QFont &font, const SearchResultColor &color)
|
void SearchResultTreeModel::setTextEditorFont(const QFont &font, const SearchResultColor &color)
|
||||||
{
|
{
|
||||||
layoutAboutToBeChanged();
|
emit layoutAboutToBeChanged();
|
||||||
m_textEditorFont = font;
|
m_textEditorFont = font;
|
||||||
m_color = color;
|
m_color = color;
|
||||||
layoutChanged();
|
emit layoutChanged();
|
||||||
}
|
}
|
||||||
|
|
||||||
Qt::ItemFlags SearchResultTreeModel::flags(const QModelIndex &idx) const
|
Qt::ItemFlags SearchResultTreeModel::flags(const QModelIndex &idx) const
|
||||||
@@ -355,7 +355,7 @@ void SearchResultTreeModel::addResultsToCurrentParent(const QList<SearchResultIt
|
|||||||
existingItem->setGenerated(false);
|
existingItem->setGenerated(false);
|
||||||
existingItem->item = item;
|
existingItem->item = item;
|
||||||
QModelIndex itemIndex = index(insertionIndex, 0, m_currentIndex);
|
QModelIndex itemIndex = index(insertionIndex, 0, m_currentIndex);
|
||||||
dataChanged(itemIndex, itemIndex);
|
emit dataChanged(itemIndex, itemIndex);
|
||||||
} else {
|
} else {
|
||||||
beginInsertRows(m_currentIndex, insertionIndex, insertionIndex);
|
beginInsertRows(m_currentIndex, insertionIndex, insertionIndex);
|
||||||
m_currentParent->insertChild(insertionIndex, item);
|
m_currentParent->insertChild(insertionIndex, item);
|
||||||
@@ -363,7 +363,7 @@ void SearchResultTreeModel::addResultsToCurrentParent(const QList<SearchResultIt
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
dataChanged(m_currentIndex, m_currentIndex); // Make sure that the number after the file name gets updated
|
emit dataChanged(m_currentIndex, m_currentIndex); // Make sure that the number after the file name gets updated
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool lessThanByPath(const SearchResultItem &a, const SearchResultItem &b)
|
static bool lessThanByPath(const SearchResultItem &a, const SearchResultItem &b)
|
||||||
|
|||||||
@@ -895,7 +895,7 @@ void DebuggerToolTipHolder::releaseEngine()
|
|||||||
|
|
||||||
setState(Released);
|
setState(Released);
|
||||||
widget->model.m_enabled = false;
|
widget->model.m_enabled = false;
|
||||||
widget->model.layoutChanged();
|
emit widget->model.layoutChanged();
|
||||||
widget->titleLabel->setText(DebuggerToolTipManager::tr("%1 (Previous)").arg(context.expression));
|
widget->titleLabel->setText(DebuggerToolTipManager::tr("%1 (Previous)").arg(context.expression));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1856,7 +1856,7 @@ QMenu *WatchModel::createFormatMenu(WatchItem *item, QWidget *parent)
|
|||||||
auto addBaseChangeAction = [this, menu](const QString &text, int base) {
|
auto addBaseChangeAction = [this, menu](const QString &text, int base) {
|
||||||
addCheckableAction(menu, text, true, theUnprintableBase == base, [this, base] {
|
addCheckableAction(menu, text, true, theUnprintableBase == base, [this, base] {
|
||||||
theUnprintableBase = base;
|
theUnprintableBase = base;
|
||||||
layoutChanged(); // FIXME
|
emit layoutChanged(); // FIXME
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -796,7 +796,7 @@ void FakeVimExCommandsWidget::defaultAction()
|
|||||||
setModified(item, false);
|
setModified(item, false);
|
||||||
item->setText(2, regex);
|
item->setText(2, regex);
|
||||||
if (item == commandList()->currentItem())
|
if (item == commandList()->currentItem())
|
||||||
currentCommandChanged(item);
|
emit currentCommandChanged(item);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1933,7 +1933,7 @@ void FakeVimPluginPrivate::handleExCommand(FakeVimHandler *handler, bool *handle
|
|||||||
handler->showMessage(MessageInfo, Tr::tr("\"%1\" %2 %3L, %4C written")
|
handler->showMessage(MessageInfo, Tr::tr("\"%1\" %2 %3L, %4C written")
|
||||||
.arg(fileName).arg(' ').arg(ba.count('\n')).arg(ba.size()));
|
.arg(fileName).arg(' ').arg(ba.count('\n')).arg(ba.size()));
|
||||||
if (cmd.cmd == "wq")
|
if (cmd.cmd == "wq")
|
||||||
delayedQuitRequested(cmd.hasBang, m_editorToHandler.key(handler));
|
emit delayedQuitRequested(cmd.hasBang, m_editorToHandler.key(handler));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -910,7 +910,7 @@ void IosSimulatorToolHandlerPrivate::stop(int errorCode)
|
|||||||
}
|
}
|
||||||
|
|
||||||
toolExited(errorCode);
|
toolExited(errorCode);
|
||||||
q->finished(q);
|
emit q->finished(q);
|
||||||
}
|
}
|
||||||
|
|
||||||
void IosSimulatorToolHandlerPrivate::installAppOnSimulator()
|
void IosSimulatorToolHandlerPrivate::installAppOnSimulator()
|
||||||
@@ -991,7 +991,7 @@ void IosSimulatorToolHandlerPrivate::launchAppOnSimulator(const QStringList &ext
|
|||||||
.arg(response.commandOutput));
|
.arg(response.commandOutput));
|
||||||
didStartApp(m_bundlePath, m_deviceId, Ios::IosToolHandler::Failure);
|
didStartApp(m_bundlePath, m_deviceId, Ios::IosToolHandler::Failure);
|
||||||
stop(-1);
|
stop(-1);
|
||||||
q->finished(q);
|
emit q->finished(q);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -201,7 +201,7 @@ void LanguageClientSettingsPageWidget::applyCurrentSettings()
|
|||||||
|
|
||||||
m_currentSettings.setting->applyFromSettingsWidget(m_currentSettings.widget);
|
m_currentSettings.setting->applyFromSettingsWidget(m_currentSettings.widget);
|
||||||
auto index = m_settings.indexForSetting(m_currentSettings.setting);
|
auto index = m_settings.indexForSetting(m_currentSettings.setting);
|
||||||
m_settings.dataChanged(index, index);
|
emit m_settings.dataChanged(index, index);
|
||||||
}
|
}
|
||||||
|
|
||||||
void LanguageClientSettingsPageWidget::addItem()
|
void LanguageClientSettingsPageWidget::addItem()
|
||||||
|
|||||||
@@ -736,7 +736,7 @@ void AppOutputPane::slotRunControlFinished2(RunControl *sender)
|
|||||||
if (current && current == sender)
|
if (current && current == sender)
|
||||||
enableButtons(current);
|
enableButtons(current);
|
||||||
|
|
||||||
ProjectExplorerPlugin::instance()->updateRunActions();
|
emit ProjectExplorerPlugin::instance()->updateRunActions();
|
||||||
|
|
||||||
#ifdef Q_OS_WIN
|
#ifdef Q_OS_WIN
|
||||||
const bool isRunning = Utils::anyOf(m_runControlTabs, [](const RunControlTab &rt) {
|
const bool isRunning = Utils::anyOf(m_runControlTabs, [](const RunControlTab &rt) {
|
||||||
|
|||||||
@@ -405,7 +405,7 @@ void BuildStepConfigWidget::setSummaryText(const QString &summaryText)
|
|||||||
{
|
{
|
||||||
if (summaryText != m_summaryText) {
|
if (summaryText != m_summaryText) {
|
||||||
m_summaryText = summaryText;
|
m_summaryText = summaryText;
|
||||||
updateSummary();
|
emit updateSummary();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -693,7 +693,7 @@ void PathChooserField::setup(JsonFieldPage *page, const QString &name)
|
|||||||
QTC_ASSERT(w, return);
|
QTC_ASSERT(w, return);
|
||||||
page->registerFieldWithName(name, w, "path", SIGNAL(rawPathChanged(QString)));
|
page->registerFieldWithName(name, w, "path", SIGNAL(rawPathChanged(QString)));
|
||||||
QObject::connect(w, &PathChooser::rawPathChanged,
|
QObject::connect(w, &PathChooser::rawPathChanged,
|
||||||
page, [page](QString) { page->completeChanged(); });
|
page, [page](QString) { emit page->completeChanged(); });
|
||||||
}
|
}
|
||||||
|
|
||||||
bool PathChooserField::validate(MacroExpander *expander, QString *message)
|
bool PathChooserField::validate(MacroExpander *expander, QString *message)
|
||||||
@@ -1061,7 +1061,7 @@ void IconListField::setup(JsonFieldPage *page, const QString &name)
|
|||||||
return QString();
|
return QString();
|
||||||
});
|
});
|
||||||
QObject::connect(selectionModel(), &QItemSelectionModel::selectionChanged, page, [page]() {
|
QObject::connect(selectionModel(), &QItemSelectionModel::selectionChanged, page, [page]() {
|
||||||
page->completeChanged();
|
emit page->completeChanged();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -224,7 +224,7 @@ void KitModel::apply()
|
|||||||
foreach (KitNode *n, m_toRemoveList)
|
foreach (KitNode *n, m_toRemoveList)
|
||||||
n->widget->removeKit();
|
n->widget->removeKit();
|
||||||
|
|
||||||
layoutChanged(); // Force update.
|
emit layoutChanged(); // Force update.
|
||||||
}
|
}
|
||||||
|
|
||||||
void KitModel::markForRemoval(Kit *k)
|
void KitModel::markForRemoval(Kit *k)
|
||||||
|
|||||||
@@ -41,7 +41,8 @@ void OsParser::stdError(const QString &line)
|
|||||||
if (Utils::HostOsInfo::isLinuxHost()) {
|
if (Utils::HostOsInfo::isLinuxHost()) {
|
||||||
const QString trimmed = line.trimmed();
|
const QString trimmed = line.trimmed();
|
||||||
if (trimmed.contains(QLatin1String(": error while loading shared libraries:"))) {
|
if (trimmed.contains(QLatin1String(": error while loading shared libraries:"))) {
|
||||||
addTask(Task(Task::Error, trimmed, Utils::FileName(), -1, Constants::TASK_CATEGORY_COMPILE));
|
emit addTask(Task(Task::Error, trimmed, Utils::FileName(), -1,
|
||||||
|
Constants::TASK_CATEGORY_COMPILE));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
IOutputParser::stdError(line);
|
IOutputParser::stdError(line);
|
||||||
@@ -52,9 +53,9 @@ void OsParser::stdOutput(const QString &line)
|
|||||||
if (Utils::HostOsInfo::isWindowsHost()) {
|
if (Utils::HostOsInfo::isWindowsHost()) {
|
||||||
const QString trimmed = line.trimmed();
|
const QString trimmed = line.trimmed();
|
||||||
if (trimmed == QLatin1String("The process cannot access the file because it is being used by another process.")) {
|
if (trimmed == QLatin1String("The process cannot access the file because it is being used by another process.")) {
|
||||||
addTask(Task(Task::Error, tr("The process cannot access the file because it is being used by another process.\n"
|
emit addTask(Task(Task::Error, tr("The process cannot access the file because it is being used by another process.\n"
|
||||||
"Please close all running instances of your application before starting a build."),
|
"Please close all running instances of your application before starting a build."),
|
||||||
Utils::FileName(), -1, Constants::TASK_CATEGORY_COMPILE));
|
Utils::FileName(), -1, Constants::TASK_CATEGORY_COMPILE));
|
||||||
m_hasFatalError = true;
|
m_hasFatalError = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2120,7 +2120,7 @@ void ProjectExplorerPluginPrivate::restoreSession()
|
|||||||
// delay opening projects from the command line even more
|
// delay opening projects from the command line even more
|
||||||
QTimer::singleShot(0, m_instance, []() {
|
QTimer::singleShot(0, m_instance, []() {
|
||||||
ICore::openFiles(dd->m_arguments, ICore::OpenFilesFlags(ICore::CanContainLineAndColumnNumbers | ICore::SwitchMode));
|
ICore::openFiles(dd->m_arguments, ICore::OpenFilesFlags(ICore::CanContainLineAndColumnNumbers | ICore::SwitchMode));
|
||||||
m_instance->finishedInitialization();
|
emit m_instance->finishedInitialization();
|
||||||
});
|
});
|
||||||
updateActions();
|
updateActions();
|
||||||
}
|
}
|
||||||
@@ -2197,13 +2197,13 @@ void ProjectExplorerPluginPrivate::checkForShutdown()
|
|||||||
--m_activeRunControlCount;
|
--m_activeRunControlCount;
|
||||||
QTC_ASSERT(m_activeRunControlCount >= 0, m_activeRunControlCount = 0);
|
QTC_ASSERT(m_activeRunControlCount >= 0, m_activeRunControlCount = 0);
|
||||||
if (m_shuttingDown && m_activeRunControlCount == 0)
|
if (m_shuttingDown && m_activeRunControlCount == 0)
|
||||||
m_instance->asynchronousShutdownFinished();
|
emit m_instance->asynchronousShutdownFinished();
|
||||||
}
|
}
|
||||||
|
|
||||||
void ProjectExplorerPluginPrivate::timerEvent(QTimerEvent *ev)
|
void ProjectExplorerPluginPrivate::timerEvent(QTimerEvent *ev)
|
||||||
{
|
{
|
||||||
if (m_shutdownWatchDogId == ev->timerId())
|
if (m_shutdownWatchDogId == ev->timerId())
|
||||||
m_instance->asynchronousShutdownFinished();
|
emit m_instance->asynchronousShutdownFinished();
|
||||||
}
|
}
|
||||||
|
|
||||||
void ProjectExplorerPlugin::initiateInlineRenaming()
|
void ProjectExplorerPlugin::initiateInlineRenaming()
|
||||||
|
|||||||
@@ -86,7 +86,7 @@ FlatModel::FlatModel(QObject *parent)
|
|||||||
connect(sm, &SessionManager::aboutToLoadSession, this, &FlatModel::loadExpandData);
|
connect(sm, &SessionManager::aboutToLoadSession, this, &FlatModel::loadExpandData);
|
||||||
connect(sm, &SessionManager::aboutToSaveSession, this, &FlatModel::saveExpandData);
|
connect(sm, &SessionManager::aboutToSaveSession, this, &FlatModel::saveExpandData);
|
||||||
connect(sm, &SessionManager::projectAdded, this, &FlatModel::handleProjectAdded);
|
connect(sm, &SessionManager::projectAdded, this, &FlatModel::handleProjectAdded);
|
||||||
connect(sm, &SessionManager::startupProjectChanged, this, [this] { layoutChanged(); });
|
connect(sm, &SessionManager::startupProjectChanged, this, [this] { emit layoutChanged(); });
|
||||||
|
|
||||||
for (Project *project : SessionManager::projects())
|
for (Project *project : SessionManager::projects())
|
||||||
handleProjectAdded(project);
|
handleProjectAdded(project);
|
||||||
|
|||||||
@@ -385,7 +385,7 @@ public:
|
|||||||
m_expandedSessions.removeOne(sessionName);
|
m_expandedSessions.removeOne(sessionName);
|
||||||
else
|
else
|
||||||
m_expandedSessions.append(sessionName);
|
m_expandedSessions.append(sessionName);
|
||||||
model->layoutChanged({QPersistentModelIndex(idx)});
|
emit model->layoutChanged({QPersistentModelIndex(idx)});
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
if (button == Qt::LeftButton) {
|
if (button == Qt::LeftButton) {
|
||||||
@@ -404,7 +404,7 @@ public:
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (ev->type() == QEvent::MouseMove) {
|
if (ev->type() == QEvent::MouseMove) {
|
||||||
model->layoutChanged({QPersistentModelIndex(idx)}); // Somewhat brutish.
|
emit model->layoutChanged({QPersistentModelIndex(idx)}); // Somewhat brutish.
|
||||||
//update(option.rect);
|
//update(option.rect);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -381,7 +381,7 @@ void SessionManager::addProject(Project *pro)
|
|||||||
d->m_projects.append(pro);
|
d->m_projects.append(pro);
|
||||||
|
|
||||||
connect(pro, &Project::displayNameChanged,
|
connect(pro, &Project::displayNameChanged,
|
||||||
m_instance, [pro]() { m_instance->projectDisplayNameChanged(pro); });
|
m_instance, [pro]() { emit m_instance->projectDisplayNameChanged(pro); });
|
||||||
|
|
||||||
emit m_instance->projectAdded(pro);
|
emit m_instance->projectAdded(pro);
|
||||||
const auto updateFolderNavigation = [pro] {
|
const auto updateFolderNavigation = [pro] {
|
||||||
|
|||||||
@@ -242,7 +242,7 @@ bool QMakeStep::init(QList<const BuildStep *> &earlierSteps)
|
|||||||
if (!tasks.isEmpty()) {
|
if (!tasks.isEmpty()) {
|
||||||
bool canContinue = true;
|
bool canContinue = true;
|
||||||
foreach (const ProjectExplorer::Task &t, tasks) {
|
foreach (const ProjectExplorer::Task &t, tasks) {
|
||||||
addTask(t);
|
emit addTask(t);
|
||||||
if (t.type == Task::Error)
|
if (t.type == Task::Error)
|
||||||
canContinue = false;
|
canContinue = false;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -126,7 +126,7 @@ void ItemLibraryModel::setSearchText(const QString &searchText)
|
|||||||
bool changed = false;
|
bool changed = false;
|
||||||
updateVisibility(&changed);
|
updateVisibility(&changed);
|
||||||
if (changed)
|
if (changed)
|
||||||
dataChanged(QModelIndex(), QModelIndex());
|
emit dataChanged(QModelIndex(), QModelIndex());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -602,7 +602,7 @@ void NavigatorTreeModel::notifyDataChanged(const ModelNode &modelNode)
|
|||||||
const QModelIndex index = indexForModelNode(modelNode);
|
const QModelIndex index = indexForModelNode(modelNode);
|
||||||
const QAbstractItemModel *model = index.model();
|
const QAbstractItemModel *model = index.model();
|
||||||
const QModelIndex sibling = model ? model->sibling(index.row(), 2, index) : QModelIndex();
|
const QModelIndex sibling = model ? model->sibling(index.row(), 2, index) : QModelIndex();
|
||||||
dataChanged(index, sibling);
|
emit dataChanged(index, sibling);
|
||||||
}
|
}
|
||||||
|
|
||||||
static QList<ModelNode> collectParents(const QList<ModelNode> &modelNodes)
|
static QList<ModelNode> collectParents(const QList<ModelNode> &modelNodes)
|
||||||
@@ -628,22 +628,22 @@ QList<QPersistentModelIndex> NavigatorTreeModel::nodesToPersistentIndex(const QL
|
|||||||
void NavigatorTreeModel::notifyModelNodesRemoved(const QList<ModelNode> &modelNodes)
|
void NavigatorTreeModel::notifyModelNodesRemoved(const QList<ModelNode> &modelNodes)
|
||||||
{
|
{
|
||||||
QList<QPersistentModelIndex> indexes = nodesToPersistentIndex(collectParents(modelNodes));
|
QList<QPersistentModelIndex> indexes = nodesToPersistentIndex(collectParents(modelNodes));
|
||||||
layoutAboutToBeChanged(indexes);
|
emit layoutAboutToBeChanged(indexes);
|
||||||
layoutChanged(indexes);
|
emit layoutChanged(indexes);
|
||||||
}
|
}
|
||||||
|
|
||||||
void NavigatorTreeModel::notifyModelNodesInserted(const QList<ModelNode> &modelNodes)
|
void NavigatorTreeModel::notifyModelNodesInserted(const QList<ModelNode> &modelNodes)
|
||||||
{
|
{
|
||||||
QList<QPersistentModelIndex> indexes = nodesToPersistentIndex(collectParents(modelNodes));
|
QList<QPersistentModelIndex> indexes = nodesToPersistentIndex(collectParents(modelNodes));
|
||||||
layoutAboutToBeChanged(indexes);
|
emit layoutAboutToBeChanged(indexes);
|
||||||
layoutChanged(indexes);
|
emit layoutChanged(indexes);
|
||||||
}
|
}
|
||||||
|
|
||||||
void NavigatorTreeModel::notifyModelNodesMoved(const QList<ModelNode> &modelNodes)
|
void NavigatorTreeModel::notifyModelNodesMoved(const QList<ModelNode> &modelNodes)
|
||||||
{
|
{
|
||||||
QList<QPersistentModelIndex> indexes = nodesToPersistentIndex(collectParents(modelNodes));
|
QList<QPersistentModelIndex> indexes = nodesToPersistentIndex(collectParents(modelNodes));
|
||||||
layoutAboutToBeChanged(indexes);
|
emit layoutAboutToBeChanged(indexes);
|
||||||
layoutChanged(indexes);
|
emit layoutChanged(indexes);
|
||||||
}
|
}
|
||||||
|
|
||||||
void NavigatorTreeModel::setFilter(bool showOnlyVisibleItems)
|
void NavigatorTreeModel::setFilter(bool showOnlyVisibleItems)
|
||||||
|
|||||||
@@ -53,7 +53,7 @@ void QmlModelNodeProxy::emitSelectionToBeChanged()
|
|||||||
|
|
||||||
void QmlModelNodeProxy::emitSelectionChanged()
|
void QmlModelNodeProxy::emitSelectionChanged()
|
||||||
{
|
{
|
||||||
selectionChanged();
|
emit selectionChanged();
|
||||||
}
|
}
|
||||||
|
|
||||||
QmlItemNode QmlModelNodeProxy::qmlItemNode() const
|
QmlItemNode QmlModelNodeProxy::qmlItemNode() const
|
||||||
|
|||||||
@@ -149,7 +149,7 @@ void ConnectionView::selectedNodesChanged(const QList<ModelNode> & selectedNodeL
|
|||||||
|
|
||||||
if (connectionViewWidget()->currentTab() == ConnectionViewWidget::BindingTab
|
if (connectionViewWidget()->currentTab() == ConnectionViewWidget::BindingTab
|
||||||
|| connectionViewWidget()->currentTab() == ConnectionViewWidget::DynamicPropertiesTab)
|
|| connectionViewWidget()->currentTab() == ConnectionViewWidget::DynamicPropertiesTab)
|
||||||
connectionViewWidget()->setEnabledAddButton(selectedNodeList.count() == 1);
|
emit connectionViewWidget()->setEnabledAddButton(selectedNodeList.count() == 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
void ConnectionView::importsChanged(const QList<Import> & /*addedImports*/, const QList<Import> & /*removedImports*/)
|
void ConnectionView::importsChanged(const QList<Import> & /*addedImports*/, const QList<Import> & /*removedImports*/)
|
||||||
|
|||||||
@@ -193,20 +193,20 @@ void ConnectionViewWidget::invalidateButtonStatus()
|
|||||||
{
|
{
|
||||||
if (currentTab() == ConnectionTab) {
|
if (currentTab() == ConnectionTab) {
|
||||||
emit setEnabledRemoveButton(ui->connectionView->selectionModel()->hasSelection());
|
emit setEnabledRemoveButton(ui->connectionView->selectionModel()->hasSelection());
|
||||||
setEnabledAddButton(true);
|
emit setEnabledAddButton(true);
|
||||||
} else if (currentTab() == BindingTab) {
|
} else if (currentTab() == BindingTab) {
|
||||||
emit setEnabledRemoveButton(ui->bindingView->selectionModel()->hasSelection());
|
emit setEnabledRemoveButton(ui->bindingView->selectionModel()->hasSelection());
|
||||||
auto bindingModel = qobject_cast<BindingModel*>(ui->bindingView->model());
|
auto bindingModel = qobject_cast<BindingModel*>(ui->bindingView->model());
|
||||||
setEnabledAddButton(bindingModel->connectionView()->model() &&
|
emit setEnabledAddButton(bindingModel->connectionView()->model() &&
|
||||||
bindingModel->connectionView()->selectedModelNodes().count() == 1);
|
bindingModel->connectionView()->selectedModelNodes().count() == 1);
|
||||||
|
|
||||||
} else if (currentTab() == DynamicPropertiesTab) {
|
} else if (currentTab() == DynamicPropertiesTab) {
|
||||||
emit setEnabledRemoveButton(ui->dynamicPropertiesView->selectionModel()->hasSelection());
|
emit setEnabledRemoveButton(ui->dynamicPropertiesView->selectionModel()->hasSelection());
|
||||||
auto dynamicPropertiesModel = qobject_cast<DynamicPropertiesModel*>(ui->dynamicPropertiesView->model());
|
auto dynamicPropertiesModel = qobject_cast<DynamicPropertiesModel*>(ui->dynamicPropertiesView->model());
|
||||||
setEnabledAddButton(dynamicPropertiesModel->connectionView()->model() &&
|
emit setEnabledAddButton(dynamicPropertiesModel->connectionView()->model() &&
|
||||||
dynamicPropertiesModel->connectionView()->selectedModelNodes().count() == 1);
|
dynamicPropertiesModel->connectionView()->selectedModelNodes().count() == 1);
|
||||||
} else if (currentTab() == BackendTab) {
|
} else if (currentTab() == BackendTab) {
|
||||||
setEnabledAddButton(true);
|
emit setEnabledAddButton(true);
|
||||||
emit setEnabledRemoveButton(ui->backendView->selectionModel()->hasSelection());
|
emit setEnabledRemoveButton(ui->backendView->selectionModel()->hasSelection());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -474,7 +474,7 @@ void QmlDesignerPlugin::switchToTextModeDeferred()
|
|||||||
void QmlDesignerPlugin::emitCurrentTextEditorChanged(Core::IEditor *editor)
|
void QmlDesignerPlugin::emitCurrentTextEditorChanged(Core::IEditor *editor)
|
||||||
{
|
{
|
||||||
d->blockEditorChange = true;
|
d->blockEditorChange = true;
|
||||||
Core::EditorManager::instance()->currentEditorChanged(editor);
|
emit Core::EditorManager::instance()->currentEditorChanged(editor);
|
||||||
d->blockEditorChange = false;
|
d->blockEditorChange = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -65,7 +65,7 @@ void QmlProfilerTextMark::clicked()
|
|||||||
{
|
{
|
||||||
int typeId = m_typeIds.takeFirst();
|
int typeId = m_typeIds.takeFirst();
|
||||||
m_typeIds.append(typeId);
|
m_typeIds.append(typeId);
|
||||||
m_viewManager->typeSelected(typeId);
|
emit m_viewManager->typeSelected(typeId);
|
||||||
}
|
}
|
||||||
|
|
||||||
QmlProfilerTextMarkModel::QmlProfilerTextMarkModel(QObject *parent) : QObject(parent)
|
QmlProfilerTextMarkModel::QmlProfilerTextMarkModel(QObject *parent) : QObject(parent)
|
||||||
|
|||||||
@@ -307,9 +307,11 @@ public:
|
|||||||
m_sourceModel = newModel;
|
m_sourceModel = newModel;
|
||||||
if (newModel) {
|
if (newModel) {
|
||||||
connect(newModel, &QAbstractItemModel::layoutAboutToBeChanged, this, [this] {
|
connect(newModel, &QAbstractItemModel::layoutAboutToBeChanged, this, [this] {
|
||||||
layoutAboutToBeChanged();
|
emit layoutAboutToBeChanged();
|
||||||
|
});
|
||||||
|
connect(newModel, &QAbstractItemModel::layoutChanged, this, [this] {
|
||||||
|
emit layoutChanged();
|
||||||
});
|
});
|
||||||
connect(newModel, &QAbstractItemModel::layoutChanged, this, [this] { layoutChanged(); });
|
|
||||||
connect(newModel, &QAbstractItemModel::modelAboutToBeReset, this, [this] {
|
connect(newModel, &QAbstractItemModel::modelAboutToBeReset, this, [this] {
|
||||||
beginResetModel();
|
beginResetModel();
|
||||||
});
|
});
|
||||||
@@ -360,7 +362,7 @@ public:
|
|||||||
return;
|
return;
|
||||||
QTC_ASSERT(columnCount >= 1, columnCount = 1);
|
QTC_ASSERT(columnCount >= 1, columnCount = 1);
|
||||||
m_columnCount = columnCount;
|
m_columnCount = columnCount;
|
||||||
layoutChanged();
|
emit layoutChanged();
|
||||||
}
|
}
|
||||||
|
|
||||||
int rowCount(const QModelIndex &parent) const final
|
int rowCount(const QModelIndex &parent) const final
|
||||||
|
|||||||
@@ -176,7 +176,7 @@ void ResourceView::removeFiles(int prefixIndex, int firstFileIndex, int lastFile
|
|||||||
void ResourceView::keyPressEvent(QKeyEvent *e)
|
void ResourceView::keyPressEvent(QKeyEvent *e)
|
||||||
{
|
{
|
||||||
if (e->key() == Qt::Key_Delete)
|
if (e->key() == Qt::Key_Delete)
|
||||||
removeItem();
|
emit removeItem();
|
||||||
else
|
else
|
||||||
Utils::TreeView::keyPressEvent(e);
|
Utils::TreeView::keyPressEvent(e);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -902,7 +902,7 @@ void GraphicsScene::addChild(BaseItem *item)
|
|||||||
if (!m_baseItems.contains(item)) {
|
if (!m_baseItems.contains(item)) {
|
||||||
connect(item, &BaseItem::selectedStateChanged, this, &GraphicsScene::selectionChanged);
|
connect(item, &BaseItem::selectedStateChanged, this, &GraphicsScene::selectionChanged);
|
||||||
connect(item, &BaseItem::openToDifferentView, this, [=](BaseItem *item){
|
connect(item, &BaseItem::openToDifferentView, this, [=](BaseItem *item){
|
||||||
openStateView(item);
|
emit openStateView(item);
|
||||||
}, Qt::QueuedConnection);
|
}, Qt::QueuedConnection);
|
||||||
m_baseItems << item;
|
m_baseItems << item;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -8038,10 +8038,10 @@ RefactorMarkers TextEditorWidget::refactorMarkers() const
|
|||||||
void TextEditorWidget::setRefactorMarkers(const RefactorMarkers &markers)
|
void TextEditorWidget::setRefactorMarkers(const RefactorMarkers &markers)
|
||||||
{
|
{
|
||||||
foreach (const RefactorMarker &marker, d->m_refactorOverlay->markers())
|
foreach (const RefactorMarker &marker, d->m_refactorOverlay->markers())
|
||||||
requestBlockUpdate(marker.cursor.block());
|
emit requestBlockUpdate(marker.cursor.block());
|
||||||
d->m_refactorOverlay->setMarkers(markers);
|
d->m_refactorOverlay->setMarkers(markers);
|
||||||
foreach (const RefactorMarker &marker, markers)
|
foreach (const RefactorMarker &marker, markers)
|
||||||
requestBlockUpdate(marker.cursor.block());
|
emit requestBlockUpdate(marker.cursor.block());
|
||||||
}
|
}
|
||||||
|
|
||||||
TextBlockSelection::TextBlockSelection(const TextBlockSelection &other)
|
TextBlockSelection::TextBlockSelection(const TextBlockSelection &other)
|
||||||
|
|||||||
@@ -165,7 +165,7 @@ void TodoOutputPane::scopeButtonClicked(QAbstractButton *button)
|
|||||||
emit scanningScopeChanged(ScanningScopeSubProject);
|
emit scanningScopeChanged(ScanningScopeSubProject);
|
||||||
else if (button == m_wholeProjectButton)
|
else if (button == m_wholeProjectButton)
|
||||||
emit scanningScopeChanged(ScanningScopeProject);
|
emit scanningScopeChanged(ScanningScopeProject);
|
||||||
setBadgeNumber(m_todoTreeView->model()->rowCount());
|
emit setBadgeNumber(m_todoTreeView->model()->rowCount());
|
||||||
}
|
}
|
||||||
|
|
||||||
void TodoOutputPane::todoTreeViewClicked(const QModelIndex &index)
|
void TodoOutputPane::todoTreeViewClicked(const QModelIndex &index)
|
||||||
@@ -187,7 +187,7 @@ void TodoOutputPane::todoTreeViewClicked(const QModelIndex &index)
|
|||||||
|
|
||||||
void TodoOutputPane::updateTodoCount()
|
void TodoOutputPane::updateTodoCount()
|
||||||
{
|
{
|
||||||
setBadgeNumber(m_todoTreeView->model()->rowCount());
|
emit setBadgeNumber(m_todoTreeView->model()->rowCount());
|
||||||
}
|
}
|
||||||
|
|
||||||
void TodoOutputPane::updateFilter()
|
void TodoOutputPane::updateFilter()
|
||||||
|
|||||||
@@ -264,7 +264,7 @@ void Parser::Private::parse(QIODevice *device)
|
|||||||
foreach (Function *func, pendingFunctions)
|
foreach (Function *func, pendingFunctions)
|
||||||
func->finalize();
|
func->finalize();
|
||||||
|
|
||||||
q->parserDataReady(); // emit
|
emit q->parserDataReady();
|
||||||
}
|
}
|
||||||
|
|
||||||
inline QString getValue(const QByteArray &line, const int prefixLength)
|
inline QString getValue(const QByteArray &line, const int prefixLength)
|
||||||
|
|||||||
@@ -897,7 +897,7 @@ void CallgrindTool::slotRequestDump()
|
|||||||
{
|
{
|
||||||
//setBusy(true);
|
//setBusy(true);
|
||||||
m_visualization->setText(tr("Populating..."));
|
m_visualization->setText(tr("Populating..."));
|
||||||
dumpRequested();
|
emit dumpRequested();
|
||||||
}
|
}
|
||||||
|
|
||||||
void CallgrindTool::loadExternalLogFile()
|
void CallgrindTool::loadExternalLogFile()
|
||||||
|
|||||||
@@ -250,11 +250,11 @@ void Visualization::Private::handleMousePressEvent(QMouseEvent *event,
|
|||||||
const Function *func = q->functionForItem(itemAtPos);
|
const Function *func = q->functionForItem(itemAtPos);
|
||||||
|
|
||||||
if (doubleClicked) {
|
if (doubleClicked) {
|
||||||
q->functionActivated(func);
|
emit q->functionActivated(func);
|
||||||
} else {
|
} else {
|
||||||
q->scene()->clearSelection();
|
q->scene()->clearSelection();
|
||||||
itemAtPos->setSelected(true);
|
itemAtPos->setSelected(true);
|
||||||
q->functionSelected(func);
|
emit q->functionSelected(func);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -125,13 +125,13 @@ void ValgrindRunner::Private::run()
|
|||||||
void ValgrindRunner::Private::handleRemoteStderr(const QString &b)
|
void ValgrindRunner::Private::handleRemoteStderr(const QString &b)
|
||||||
{
|
{
|
||||||
if (!b.isEmpty())
|
if (!b.isEmpty())
|
||||||
q->processOutputReceived(b, Utils::StdErrFormat);
|
emit q->processOutputReceived(b, Utils::StdErrFormat);
|
||||||
}
|
}
|
||||||
|
|
||||||
void ValgrindRunner::Private::handleRemoteStdout(const QString &b)
|
void ValgrindRunner::Private::handleRemoteStdout(const QString &b)
|
||||||
{
|
{
|
||||||
if (!b.isEmpty())
|
if (!b.isEmpty())
|
||||||
q->processOutputReceived(b, Utils::StdOutFormat);
|
emit q->processOutputReceived(b, Utils::StdOutFormat);
|
||||||
}
|
}
|
||||||
|
|
||||||
void ValgrindRunner::Private::localProcessStarted()
|
void ValgrindRunner::Private::localProcessStarted()
|
||||||
|
|||||||
Reference in New Issue
Block a user