equal
deleted
inserted
replaced
702 defineButton(*mPowerButton, |
702 defineButton(*mPowerButton, |
703 CONTROL_BUTTON_GRAPHICS_NORMAL, POWER_BUTTON_SUFFIX, |
703 CONTROL_BUTTON_GRAPHICS_NORMAL, POWER_BUTTON_SUFFIX, |
704 POWER_BUTTON_ICON_ON, |
704 POWER_BUTTON_ICON_ON, |
705 CONTROL_BUTTON_ICON_COLOR_NORMAL); |
705 CONTROL_BUTTON_ICON_COLOR_NORMAL); |
706 // Connect the button's clicked signal. |
706 // Connect the button's clicked signal. |
707 Radio::connect(mPowerButton, SIGNAL(clicked()), this, |
707 Radio::connect(mPowerButton, SIGNAL(clicked()), |
708 SLOT(toggleRadioPower())); |
708 this, SLOT(toggleRadioPower())); |
709 } |
709 } |
710 |
710 |
711 // Find previous button. |
711 // Find previous button. |
712 mPreviousButton = qobject_cast<HbPushButton *> ( |
712 mPreviousButton = qobject_cast<HbPushButton *> ( |
713 documentLoader->findWidget( |
713 documentLoader->findWidget( |
716 defineButton(*mPreviousButton, |
716 defineButton(*mPreviousButton, |
717 CONTROL_BUTTON_GRAPHICS_DISABLED, |
717 CONTROL_BUTTON_GRAPHICS_DISABLED, |
718 PREVIOUS_BUTTON_SUFFIX, NULL, |
718 PREVIOUS_BUTTON_SUFFIX, NULL, |
719 CONTROL_BUTTON_ICON_COLOR_DISABLED); |
719 CONTROL_BUTTON_ICON_COLOR_DISABLED); |
720 // Connect the button's clicked signal. |
720 // Connect the button's clicked signal. |
721 Radio::connect(mPreviousButton, SIGNAL(clicked()), this, |
721 Radio::connect(mPreviousButton, SIGNAL(clicked()), |
722 SLOT(changeToPreviousStation())); |
722 this, SLOT(changeToPreviousStation())); |
723 } |
723 } |
724 |
724 |
725 // Find next button. |
725 // Find next button. |
726 mNextButton |
726 mNextButton |
727 = qobject_cast<HbPushButton *> ( |
727 = qobject_cast<HbPushButton *> ( |
730 if (mNextButton) { |
730 if (mNextButton) { |
731 defineButton(*mNextButton, |
731 defineButton(*mNextButton, |
732 CONTROL_BUTTON_GRAPHICS_DISABLED, NEXT_BUTTON_SUFFIX, |
732 CONTROL_BUTTON_GRAPHICS_DISABLED, NEXT_BUTTON_SUFFIX, |
733 NULL, CONTROL_BUTTON_ICON_COLOR_DISABLED); |
733 NULL, CONTROL_BUTTON_ICON_COLOR_DISABLED); |
734 // Connect the button's clicked signal. |
734 // Connect the button's clicked signal. |
735 Radio::connect(mNextButton, SIGNAL(clicked()), this, |
735 Radio::connect(mNextButton, SIGNAL(clicked()), |
736 SLOT(changeToNextStation())); |
736 this, SLOT(changeToNextStation())); |
737 } |
737 } |
738 } |
738 } |
739 } |
739 } |
740 } |
740 } |
741 else { |
741 else { |