From 91bcc5cdcec92f9ba3f66fb3d134f499b629e6bb Mon Sep 17 00:00:00 2001 From: Vincent van Ravesteijn Date: Sun, 12 Apr 2009 09:13:46 +0000 Subject: [PATCH] Cosmetics for r29220. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29223 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/qt4/GuiDocument.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/frontends/qt4/GuiDocument.cpp b/src/frontends/qt4/GuiDocument.cpp index f3bb2dfb3a..f55878ebb3 100644 --- a/src/frontends/qt4/GuiDocument.cpp +++ b/src/frontends/qt4/GuiDocument.cpp @@ -72,14 +72,14 @@ // 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(); } -- 2.39.2