]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiDocument.cpp
Cosmetics for r29220.
[lyx.git] / src / frontends / qt4 / GuiDocument.cpp
index f3bb2dfb3a16463798eb943198992cdae73ab43a..f55878ebb361cbc01780c15145de78f2c8bf2bbe 100644 (file)
 
 // a style sheet for buttons
 // this is for example used for the background color setting button
-static inline QString colorButtonStyleSheet(const QColor &bgColor)
+static inline QString colorButtonStyleSheet(QColor const & bgColor)
 {
-    if (bgColor.isValid()) {
+       if (bgColor.isValid()) {
                QString rc = QLatin1String("background:");
-        rc += bgColor.name();
-        return rc;
-    }
-    return QLatin1String("");
+               rc += bgColor.name();
+               return rc;
+       }
+       return QLatin1String("");
 }
 
 
@@ -1189,14 +1189,14 @@ void GuiDocument::setCustomMargins(bool custom)
 
 void GuiDocument::changeBackgroundColor()
 {
-       const QColor newColor = QColorDialog::getColor(
+       QColor const & newColor = QColorDialog::getColor(
                rgb2qcolor(set_backgroundcolor), qApp->focusWidget());
        if (!newColor.isValid())
                return;
        // set the button color
        pageLayoutModule->backgroundTB->setStyleSheet(
                colorButtonStyleSheet(newColor));
-       // save white as the set color
+       // save color
        set_backgroundcolor = rgbFromHexName(fromqstr(newColor.name()));
        changed();
 }