Changeset View
Changeset View
Standalone View
Standalone View
sheets/Style.cpp
Context not available. | |||||
623 | QColor Style::fontColor() const | 623 | QColor Style::fontColor() const | ||
---|---|---|---|---|---|
624 | { | 624 | { | ||
625 | if (!d->subStyles.contains(FontColor)) | 625 | if (!d->subStyles.contains(FontColor)) | ||
626 | return SubStyleOne<FontColor, QColor>().value1; | 626 | return SubStyleOne<FontColor, QColor>(Qt::black).value1; | ||
627 | return static_cast<const SubStyleOne<FontColor, QColor>*>(d->subStyles[FontColor].data())->value1; | 627 | return static_cast<const SubStyleOne<FontColor, QColor>*>(d->subStyles[FontColor].data())->value1; | ||
628 | } | 628 | } | ||
629 | 629 | | |||
Context not available. | |||||
679 | QBrush Style::backgroundBrush() const | 679 | QBrush Style::backgroundBrush() const | ||
680 | { | 680 | { | ||
681 | if (!d->subStyles.contains(BackgroundBrush)) | 681 | if (!d->subStyles.contains(BackgroundBrush)) | ||
682 | return SubStyleOne<BackgroundBrush, QBrush>().value1; | 682 | return SubStyleOne<BackgroundBrush, QBrush>(Qt::white).value1; | ||
683 | return static_cast<const SubStyleOne<BackgroundBrush, QBrush>*>(d->subStyles[BackgroundBrush].data())->value1; | 683 | return static_cast<const SubStyleOne<BackgroundBrush, QBrush>*>(d->subStyles[BackgroundBrush].data())->value1; | ||
684 | } | 684 | } | ||
685 | 685 | | |||
Context not available. |