forked from qt-creator/qt-creator
Debugger: Remove unneeded qualifications
Mostly done using the following ruby script:
Dir.glob('**/*.cpp').each { |file|
next if file =~ %r{src/shared/qbs|/qmljs/}
s = File.read(file)
s.scan(/^using namespace (.*);$/) {
ns = $1
t = s.gsub(/^(.*)\b#{ns}::((?!Const)[A-Z])/) { |m|
before = $1
char = $2
if before =~ /"|\/\/|\\|using|SIGNAL|SLOT|Q_/
m
else
before + char
end
}
if t != s
puts file
File.open(file, 'w').write(t)
end
}
}
Change-Id: I1aa1a2b6ccbafeb1a8f3053fffa39b3f96992591
Reviewed-by: hjk <hjk@theqtcompany.com>
This commit is contained in:
@@ -256,11 +256,11 @@ WatchModel::WatchModel(WatchHandler *handler)
|
||||
root->appendChild(m_tooltipRoot = new WatchItem("tooltip", tr("Tooltip")));
|
||||
setRootItem(root);
|
||||
|
||||
connect(action(SortStructMembers), &Utils::SavedAction::valueChanged,
|
||||
connect(action(SortStructMembers), &SavedAction::valueChanged,
|
||||
this, &WatchModel::reinsertAllData);
|
||||
connect(action(ShowStdNamespace), &Utils::SavedAction::valueChanged,
|
||||
connect(action(ShowStdNamespace), &SavedAction::valueChanged,
|
||||
this, &WatchModel::reinsertAllData);
|
||||
connect(action(ShowQtNamespace), &Utils::SavedAction::valueChanged,
|
||||
connect(action(ShowQtNamespace), &SavedAction::valueChanged,
|
||||
this, &WatchModel::reinsertAllData);
|
||||
}
|
||||
|
||||
@@ -1451,7 +1451,7 @@ void WatchHandler::clearWatches()
|
||||
if (theWatcherNames.isEmpty())
|
||||
return;
|
||||
|
||||
const QDialogButtonBox::StandardButton ret = Utils::CheckableMessageBox::doNotAskAgainQuestion(
|
||||
const QDialogButtonBox::StandardButton ret = CheckableMessageBox::doNotAskAgainQuestion(
|
||||
Core::ICore::mainWindow(), tr("Remove All Expression Evaluators"),
|
||||
tr("Are you sure you want to remove all expression evaluators?"),
|
||||
Core::ICore::settings(), QLatin1String("RemoveAllWatchers"));
|
||||
|
||||
Reference in New Issue
Block a user