[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [calligra] sheets: [Style] Default sheets to white background
From:       Anthony Fieroni <null () kde ! org>
Date:       2018-09-17 13:57:40
Message-ID: E1g1u20-0006qi-0f () code ! kde ! org
[Download RAW message or body]

Git commit e5fc394f4a54f739246445b973f93594ad0dc00b by Anthony Fieroni.
Committed on 11/09/2018 at 14:06.
Pushed by anthonyfieroni into branch 'master'.

[Style] Default sheets to white background

Differential Revision: https://phabricator.kde.org/D15403

Signed-off-by: Anthony Fieroni <bvbfan@abv.bg>

M  +2    -2    sheets/Style.cpp

https://commits.kde.org/calligra/e5fc394f4a54f739246445b973f93594ad0dc00b

diff --git a/sheets/Style.cpp b/sheets/Style.cpp
index c7a53d1edca..bcb4079ce94 100644
--- a/sheets/Style.cpp
+++ b/sheets/Style.cpp
@@ -623,7 +623,7 @@ uint Style::topPenValue() const
 QColor Style::fontColor() const
 {
     if (!d->subStyles.contains(FontColor))
-        return SubStyleOne<FontColor, QColor>().value1;
+        return SubStyleOne<FontColor, QColor>(Qt::black).value1;
     return static_cast<const SubStyleOne<FontColor, QColor>*>(d->subStyles=
[FontColor].data())->value1;
 }
 =

@@ -679,7 +679,7 @@ QPen Style::goUpDiagonalPen() const
 QBrush Style::backgroundBrush() const
 {
     if (!d->subStyles.contains(BackgroundBrush))
-        return SubStyleOne<BackgroundBrush, QBrush>().value1;
+        return SubStyleOne<BackgroundBrush, QBrush>(Qt::white).value1;
     return static_cast<const SubStyleOne<BackgroundBrush, QBrush>*>(d->sub=
Styles[BackgroundBrush].data())->value1;
 }
 =


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic