mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
The never ending, futile fight for whitespace consistency
I just need to write a tool that does this... Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
7757363953
commit
115e5e5fbc
16 changed files with 116 additions and 130 deletions
|
@ -26,7 +26,7 @@ int StarWidget::currentStars() const
|
|||
|
||||
void StarWidget::mouseReleaseEvent(QMouseEvent* event)
|
||||
{
|
||||
if (readOnly){
|
||||
if (readOnly) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -65,7 +65,7 @@ StarWidget::StarWidget(QWidget* parent, Qt::WindowFlags f):
|
|||
QWidget(parent, f),
|
||||
current(0)
|
||||
{
|
||||
if(!activeStar){
|
||||
if (!activeStar) {
|
||||
activeStar = new QPixmap();
|
||||
QSvgRenderer render(QString(":star"));
|
||||
QPixmap renderedStar(IMG_SIZE, IMG_SIZE);
|
||||
|
@ -76,7 +76,7 @@ StarWidget::StarWidget(QWidget* parent, Qt::WindowFlags f):
|
|||
render.render(&painter, QRectF(0, 0, IMG_SIZE, IMG_SIZE));
|
||||
(*activeStar) = renderedStar;
|
||||
}
|
||||
if(!inactiveStar){
|
||||
if (!inactiveStar) {
|
||||
inactiveStar = new QPixmap();
|
||||
(*inactiveStar) = grayImage(activeStar);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue