forked from qt-creator/qt-creator
Core: 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: I5c6690f51488bf8ca3610ba9fb11e6e5fd814aaa
Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
Reviewed-by: hjk <hjk@theqtcompany.com>
This commit is contained in:
@@ -72,7 +72,7 @@ public:
|
||||
setAttribute(Qt::WA_MacShowFocusRect, false);
|
||||
setIndentation(indentation() * 7/10);
|
||||
header()->hide();
|
||||
new Utils::HeaderViewStretcher(header(), 0);
|
||||
new HeaderViewStretcher(header(), 0);
|
||||
}
|
||||
|
||||
void contextMenuEvent(QContextMenuEvent *ev);
|
||||
@@ -89,7 +89,7 @@ public:
|
||||
|
||||
void createIconButton()
|
||||
{
|
||||
m_iconButton = new Utils::IconButton;
|
||||
m_iconButton = new IconButton;
|
||||
m_iconButton->setPixmap(QPixmap(QLatin1String(":/core/images/replace.png")));
|
||||
m_iconButton->setToolTip(tr("Insert variable"));
|
||||
m_iconButton->hide();
|
||||
@@ -115,7 +115,7 @@ public:
|
||||
QPointer<QLineEdit> m_lineEdit;
|
||||
QPointer<QTextEdit> m_textEdit;
|
||||
QPointer<QPlainTextEdit> m_plainTextEdit;
|
||||
QPointer<Utils::IconButton> m_iconButton;
|
||||
QPointer<IconButton> m_iconButton;
|
||||
|
||||
VariableTreeView *m_variableTree;
|
||||
QLabel *m_variableDescription;
|
||||
|
||||
Reference in New Issue
Block a user