Andre Poenitz schreef:
On Sun, Apr 12, 2009 at 11:13:46AM +0200, v...@lyx.org wrote:
> Author: vfr
> Date: Sun Apr 12 11:13:46 2009
> New Revision: 29223
> URL: http://www.lyx.org/trac/changeset/29223
>
> Log:
> Cosmetics for r29220.
>
> Modified:
> lyx-devel/trunk/src/frontends/qt4/GuiDocument.cpp
>
> Modified: lyx-devel/trunk/src/frontends/qt4/GuiDocument.cpp
>
==============================================================================
> --- lyx-devel/trunk/src/frontends/qt4/GuiDocument.cpp Sun Apr 12
02:43:05 2009 (r29222)
> +++ lyx-devel/trunk/src/frontends/qt4/GuiDocument.cpp Sun Apr 12
11:13:46 2009 (r29223)
> @@ -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("");
return QString()
if you are at it ;-)
Andre'
Well, I asked Uwe about this and he answered that he got it from Qt
(designer), and Qt will probably be right :)
Vincent