Drop compatibility code for TQPalette

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

@ -239,8 +239,8 @@ void KSPopupMenu::initPopupMenu( SkyObject *obj, TQString s1, TQString s2, TQStr
pmTitle = new TQLabel( s1, this );
pmTitle->setAlignment( AlignCenter );
TQPalette pal( pmTitle->palette() );
pal.setColor( TQPalette::Normal, TQColorGroup::Background, pal.color( TQPalette::Normal, TQColorGroup::Base ) );
pal.setColor( TQPalette::Normal, TQColorGroup::Foreground, pal.color( TQPalette::Normal, TQColorGroup::Text ) );
pal.setColor( TQPalette::Active, TQColorGroup::Background, pal.color( TQPalette::Active, TQColorGroup::Base ) );
pal.setColor( TQPalette::Active, TQColorGroup::Foreground, pal.color( TQPalette::Active, TQColorGroup::Text ) );
pmTitle->setPalette( pal );
insertItem( pmTitle );

@ -81,10 +81,10 @@ KStars::KStars( bool doSplash, bool clockrun, const TQString &startdate ) :
//set up Dark color scheme for application windows
DarkPalette = TQPalette(TQColor("red4"), TQColor("DarkRed"));
DarkPalette.setColor( TQPalette::Normal, TQColorGroup::Base, TQColor( "black" ) );
DarkPalette.setColor( TQPalette::Normal, TQColorGroup::Text, TQColor( "red2" ) );
DarkPalette.setColor( TQPalette::Normal, TQColorGroup::Highlight, TQColor( "red2" ) );
DarkPalette.setColor( TQPalette::Normal, TQColorGroup::HighlightedText, TQColor( "black" ) );
DarkPalette.setColor( TQPalette::Active, TQColorGroup::Base, TQColor( "black" ) );
DarkPalette.setColor( TQPalette::Active, TQColorGroup::Text, TQColor( "red2" ) );
DarkPalette.setColor( TQPalette::Active, TQColorGroup::Highlight, TQColor( "red2" ) );
DarkPalette.setColor( TQPalette::Active, TQColorGroup::HighlightedText, TQColor( "black" ) );
//store original color scheme
OriginalPalette = TQApplication::palette();

@ -54,9 +54,9 @@ KStarsSplash::KStarsSplash( TQWidget *parent, const char* name )
//initialize the "Welcome to KStars message label
label = new TQLabel( page, "label1" );
TQPalette pal( label->palette() );
pal.setColor( TQPalette::Normal, TQColorGroup::Background, TQColor( "Black" ) );
pal.setColor( TQPalette::Active, TQColorGroup::Background, TQColor( "Black" ) );
pal.setColor( TQPalette::Inactive, TQColorGroup::Background, TQColor( "Black" ) );
pal.setColor( TQPalette::Normal, TQColorGroup::Foreground, TQColor( "White" ) );
pal.setColor( TQPalette::Active, TQColorGroup::Foreground, TQColor( "White" ) );
pal.setColor( TQPalette::Inactive, TQColorGroup::Foreground, TQColor( "White" ) );
label->setPalette( pal );
label->setAlignment( AlignHCenter );

Loading…
Cancel
Save