[Kstars-devel] KDE/kdeedu/kstars/kstars
Jason Harris
kstars at 30doradus.org
Mon Dec 31 07:22:00 CET 2007
SVN commit 755007 by harris:
Make sure starColorMode changes get propagated to the Options object.
CCMAIL: kstars-devel at kde.org
M +3 -0 colorscheme.cpp
M +0 -2 opscolors.cpp
--- trunk/KDE/kdeedu/kstars/kstars/colorscheme.cpp #755006:755007
@@ -29,6 +29,7 @@
#include "ksutils.h"
#include "Options.h"
+#include "starobject.h"
ColorScheme::ColorScheme() : FileName() {
//Each color has two names associated with it. The KeyName is its
@@ -341,9 +342,11 @@
void ColorScheme::setStarColorMode( int mode ) {
StarColorMode = mode;
Options::setStarColorMode( mode );
+ StarObject::initImages();
}
void ColorScheme::setStarColorIntensity( int intens ) {
StarColorIntensity = intens;
Options::setStarColorIntensity( intens );
+ StarObject::initImages();
}
--- trunk/KDE/kdeedu/kstars/kstars/opscolors.cpp #755006:755007
@@ -234,7 +234,6 @@
void OpsColors::slotStarColorMode( int i ) {
ksw->data()->colorScheme()->setStarColorMode( i );
- StarObject::initImages();
if ( ksw->data()->colorScheme()->starColorMode() != 0 ) //mode is not "Real Colors"
kcfg_StarColorIntensity->setEnabled( false );
@@ -244,7 +243,6 @@
void OpsColors::slotStarColorIntensity( int i ) {
ksw->data()->colorScheme()->setStarColorIntensity( i );
- StarObject::initImages();
}
#include "opscolors.moc"
More information about the Kstars-devel
mailing list