forked from qt-creator/qt-creator
ProjectExplorer: 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: I1d05d48b23f44e3d589cc2a790803714786b57d2
Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
Reviewed-by: hjk <hjk@theqtcompany.com>
This commit is contained in:
@@ -142,7 +142,7 @@ void TargetSelectorDelegate::paint(QPainter *painter,
|
||||
option.palette.highlight().color() :
|
||||
option.palette.dark().color();
|
||||
painter->fillRect(option.rect, color.darker(140));
|
||||
Utils::StyleHelper::drawCornerImage(selectionGradient, painter, option.rect.adjusted(0, 0, 0, -1), 5, 5, 5, 5);
|
||||
StyleHelper::drawCornerImage(selectionGradient, painter, option.rect.adjusted(0, 0, 0, -1), 5, 5, 5, 5);
|
||||
painter->setPen(QColor(255, 255, 255, 60));
|
||||
painter->drawLine(option.rect.topLeft(), option.rect.topRight());
|
||||
painter->setPen(QColor(255, 255, 255, 30));
|
||||
@@ -625,7 +625,7 @@ void KitAreaWidget::updateKit(Kit *k)
|
||||
|
||||
QWidget *MiniProjectTargetSelector::createTitleLabel(const QString &text)
|
||||
{
|
||||
Utils::StyledBar *bar = new Utils::StyledBar(this);
|
||||
StyledBar *bar = new StyledBar(this);
|
||||
bar->setSingleRow(true);
|
||||
QVBoxLayout *toolLayout = new QVBoxLayout(bar);
|
||||
toolLayout->setContentsMargins(6, 0, 6, 0);
|
||||
@@ -1599,7 +1599,7 @@ void MiniProjectTargetSelector::paintEvent(QPaintEvent *)
|
||||
// draw thicker border on the bottom
|
||||
QRect bottomRect(0, rect().height() - 8, rect().width(), 8);
|
||||
static QImage image(QLatin1String(":/projectexplorer/images/targetpanel_bottom.png"));
|
||||
Utils::StyleHelper::drawCornerImage(image, &painter, bottomRect, 1, 1, 1, 1);
|
||||
StyleHelper::drawCornerImage(image, &painter, bottomRect, 1, 1, 1, 1);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user