Drop compatibility code for TQPalette

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/40/head
Michele Calgaro 1 year ago
parent 20e4a19b0d
commit d165869a5e
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -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);

@ -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);
}

Loading…
Cancel
Save