Skip to content

Commit

Permalink
Fixed coding style
Browse files Browse the repository at this point in the history
  • Loading branch information
MohammadAG committed Jul 27, 2012
1 parent aeca24b commit 1db853e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/systemui/statusarea/statusindicator.cpp
Expand Up @@ -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()));
}
Expand Down

0 comments on commit 1db853e

Please sign in to comment.