Permalink
Browse files

Fixed coding style

  • Loading branch information...
1 parent aeca24b commit 1db853edb7b703300fb295902fd592b52134f174 @MohammadAG MohammadAG committed Jul 27, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/systemui/statusarea/statusindicator.cpp
@@ -382,10 +382,10 @@ BatteryPercentageStatusIndicator::~BatteryPercentageStatusIndicator()
void BatteryPercentageStatusIndicator::batteryPercentageChanged()
{
bool displayPercentageEnabled = displayPercentage->value(false).toBool();
- if(displayPercentageEnabled) {
+ if (displayPercentageEnabled) {
setStyleNameAndUpdate(QString(metaObject()->className()));
connect(batteryPercentage, SIGNAL(contentsChanged()), this, SLOT(batteryPercentageChanged()), Qt::UniqueConnection);
- }else {
+ } else {
setStyleNameAndUpdate(QString(metaObject()->className())+"Disabled");
disconnect(batteryPercentage, SIGNAL(contentsChanged()), this, SLOT(batteryPercentageChanged()));
}

0 comments on commit 1db853e

Please sign in to comment.