diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-02-04 14:19:04 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-02-04 14:19:04 -0600 |
commit | 34ec7cf1e70300eb43f3822ce3261893f9f8ace6 (patch) | |
tree | c7fe414e406e16a97e53d9eed0979d9ea85d2915 /klaptopdaemon/battery.cpp | |
parent | e6b6046f50ea600fc78e00071e2a79e3c8c08ccd (diff) | |
download | tdeutils-34ec7cf1e70300eb43f3822ce3261893f9f8ace6.tar.gz tdeutils-34ec7cf1e70300eb43f3822ce3261893f9f8ace6.zip |
Rename KIcon to enhance compatibility with KDE4
Diffstat (limited to 'klaptopdaemon/battery.cpp')
-rw-r--r-- | klaptopdaemon/battery.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/klaptopdaemon/battery.cpp b/klaptopdaemon/battery.cpp index 12edee7..31ad563 100644 --- a/klaptopdaemon/battery.cpp +++ b/klaptopdaemon/battery.cpp @@ -93,7 +93,7 @@ BatteryConfig::BatteryConfig (TQWidget * parent, const char *name) if (!apm) { top_layout->addWidget( laptop_portable::no_power_management_explanation(this) ); } else { - iconloader = new KIconLoader("klaptopdaemon"); + iconloader = new TDEIconLoader("klaptopdaemon"); // the poll time (in seconds) TQHBox *hb = new TQHBox( this ); @@ -119,15 +119,15 @@ BatteryConfig::BatteryConfig (TQWidget * parent, const char *name) TQGrid *icon_grid = new TQGrid( 3 /*cols*/, icons_groupbox ); icon_grid->setSpacing( KDialog::spacingHint() ); - buttonNoBattery = new KIconButton( iconloader, icon_grid ); - buttonNoCharge = new KIconButton( iconloader, icon_grid ); - buttonCharge = new KIconButton( iconloader, icon_grid ); + buttonNoBattery = new TDEIconButton( iconloader, icon_grid ); + buttonNoCharge = new TDEIconButton( iconloader, icon_grid ); + buttonCharge = new TDEIconButton( iconloader, icon_grid ); (void)new TQLabel( buttonNoBattery, i18n("No &battery"), icon_grid); (void)new TQLabel( buttonNoCharge, i18n("&Not charging"), icon_grid); (void)new TQLabel( buttonCharge, i18n("Char&ging"), icon_grid); - buttonNoBattery->setIconType( KIcon::NoGroup, KIcon::Any, 1); - buttonNoCharge->setIconType( KIcon::NoGroup, KIcon::Any, 1); - buttonCharge->setIconType( KIcon::NoGroup, KIcon::Any, 1); + buttonNoBattery->setIconType( TDEIcon::NoGroup, TDEIcon::Any, 1); + buttonNoCharge->setIconType( TDEIcon::NoGroup, TDEIcon::Any, 1); + buttonCharge->setIconType( TDEIcon::NoGroup, TDEIcon::Any, 1); connect(buttonNoBattery, TQT_SIGNAL(iconChanged(TQString)), this, TQT_SLOT(iconChanged())); connect(buttonNoCharge, TQT_SIGNAL(iconChanged(TQString)), this, TQT_SLOT(iconChanged())); connect(buttonCharge, TQT_SIGNAL(iconChanged(TQString)), this, TQT_SLOT(configChanged())); @@ -249,8 +249,8 @@ void BatteryConfig::load(bool useDefaults) buttonCharge->setIcon(chargebattery); buttonNoBattery->setIcon(nobattery); } - battery_pm = SmallIcon(nochargebattery, 20, KIcon::DefaultState, instance); - battery_nopm = SmallIcon(nobattery, 20, KIcon::DefaultState, instance); + battery_pm = SmallIcon(nochargebattery, 20, TDEIcon::DefaultState, instance); + battery_nopm = SmallIcon(nobattery, 20, TDEIcon::DefaultState, instance); emit changed(useDefaults); BatteryStateUpdate(); } @@ -374,8 +374,8 @@ void BatteryConfig::iconChanged() { nobattery = buttonNoBattery->icon(); nochargebattery = buttonNoCharge->icon(); - battery_pm = SmallIcon(nochargebattery, 20, KIcon::DefaultState, instance); - battery_nopm = SmallIcon(nobattery, 20, KIcon::DefaultState, instance); + battery_pm = SmallIcon(nochargebattery, 20, TDEIcon::DefaultState, instance); + battery_nopm = SmallIcon(nobattery, 20, TDEIcon::DefaultState, instance); emit changed(true); BatteryStateUpdate(); } |