diff options
author | Michele Calgaro <[email protected]> | 2023-07-19 17:09:55 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2023-07-19 17:09:55 +0900 |
commit | d165869a5e3f32fe4b179f03a1fe7661c8d0c19f (patch) | |
tree | 4e0d564e512d4ccbab5410cee32ac5d132d985b5 | |
parent | 20e4a19b0d7cc800d57be50c56d69023adae4046 (diff) | |
download | koffice-d165869a5e3f32fe4b179f03a1fe7661c8d0c19f.tar.gz koffice-d165869a5e3f32fe4b179f03a1fe7661c8d0c19f.zip |
Drop compatibility code for TQPalette
Signed-off-by: Michele Calgaro <[email protected]>
-rw-r--r-- | kexi/plugins/forms/widgets/kexidbtextedit.cpp | 2 | ||||
-rw-r--r-- | lib/kofficecore/KoDetailsPane.cpp | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/kexi/plugins/forms/widgets/kexidbtextedit.cpp b/kexi/plugins/forms/widgets/kexidbtextedit.cpp index 6352f334..6948d840 100644 --- a/kexi/plugins/forms/widgets/kexidbtextedit.cpp +++ b/kexi/plugins/forms/widgets/kexidbtextedit.cpp @@ -97,7 +97,7 @@ void KexiDBTextEdit::setReadOnly( bool readOnly ) { KTextEdit::setReadOnly( readOnly ); TQPalette p = palette(); - TQColor c(readOnly ? lighterGrayBackgroundColor(kapp->palette()) : p.color(TQPalette::Normal, TQColorGroup::Base)); + TQColor c(readOnly ? lighterGrayBackgroundColor(kapp->palette()) : p.color(TQPalette::Active, TQColorGroup::Base)); setPaper( c ); p.setColor(TQColorGroup::Base, c); p.setColor(TQColorGroup::Background, c); diff --git a/lib/kofficecore/KoDetailsPane.cpp b/lib/kofficecore/KoDetailsPane.cpp index 18e0f317..0d218532 100644 --- a/lib/kofficecore/KoDetailsPane.cpp +++ b/lib/kofficecore/KoDetailsPane.cpp @@ -184,8 +184,8 @@ void KoTemplatesPane::openTemplate(TQListViewItem* item) void KoTemplatesPane::changePalette() { TQPalette p = kapp ? kapp->palette() : palette(); - p.setBrush(TQColorGroup::Base, p.brush(TQPalette::Normal, TQColorGroup::Background)); - p.setColor(TQColorGroup::Text, p.color(TQPalette::Normal, TQColorGroup::Foreground)); + p.setBrush(TQColorGroup::Base, p.brush(TQPalette::Active, TQColorGroup::Background)); + p.setColor(TQColorGroup::Text, p.color(TQPalette::Active, TQColorGroup::Foreground)); m_detailsLabel->setPalette(p); } @@ -437,8 +437,8 @@ void KoRecentDocumentsPane::updatePreview(const KFileItem* fileItem, const TQPix void KoRecentDocumentsPane::changePalette() { TQPalette p = kapp ? kapp->palette() : palette(); - p.setBrush(TQColorGroup::Base, p.brush(TQPalette::Normal, TQColorGroup::Background)); - p.setColor(TQColorGroup::Text, p.color(TQPalette::Normal, TQColorGroup::Foreground)); + p.setBrush(TQColorGroup::Base, p.brush(TQPalette::Active, TQColorGroup::Background)); + p.setColor(TQColorGroup::Text, p.color(TQPalette::Active, TQColorGroup::Foreground)); m_detailsLabel->setPalette(p); } |