|
|
@ -374,7 +374,7 @@ void kpowersave::loadIcon(){
|
|
|
|
/*!
|
|
|
|
/*!
|
|
|
|
* This function draw the battery-capacity (colored field) to the icon.
|
|
|
|
* This function draw the battery-capacity (colored field) to the icon.
|
|
|
|
* Here also counted the white pixel in the icon-files. Since the icons are
|
|
|
|
* Here also counted the white pixel in the icon-files. Since the icons are
|
|
|
|
* the same and white pixel only in the retangel of the icon, the white pixel
|
|
|
|
* the same and white pixel only in the rectangle of the icon, the white pixel
|
|
|
|
* stored in \ref countWhiteIconPixel only one time.
|
|
|
|
* stored in \ref countWhiteIconPixel only one time.
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
void kpowersave::drawIcon(){
|
|
|
|
void kpowersave::drawIcon(){
|
|
|
@ -386,6 +386,7 @@ void kpowersave::drawIcon(){
|
|
|
|
int w = image.width();
|
|
|
|
int w = image.width();
|
|
|
|
int h = image.height();
|
|
|
|
int h = image.height();
|
|
|
|
int x, y;
|
|
|
|
int x, y;
|
|
|
|
|
|
|
|
countWhiteIconPixel = 0;
|
|
|
|
|
|
|
|
|
|
|
|
if((pixmap_name.contains("laptopbattery") || pixmap_name.contains("charge")) &&
|
|
|
|
if((pixmap_name.contains("laptopbattery") || pixmap_name.contains("charge")) &&
|
|
|
|
countWhiteIconPixel == 0) {
|
|
|
|
countWhiteIconPixel == 0) {
|
|
|
|