Rename KCModule, KConfig, KIO, KServer, and KSocket to avoid conflicts with KDE4

pull/2/head
Timothy Pearson 12 years ago
parent 8aeb17bbf4
commit e3ed6c9185

@ -499,7 +499,7 @@ MainWidget::MainWidget ( TDEAboutData *about, bool tren, TQWidget *parent, const
tray = new KbdTray ( this ); tray = new KbdTray ( this );
tray->setPixmap ( UserIcon ( "tray" ) ); tray->setPixmap ( UserIcon ( "tray" ) );
KConfig *cfg = TDEApplication::kApplication()->config(); TDEConfig *cfg = TDEApplication::kApplication()->config();
KPopupMenu *m = tray->contextMenu(); KPopupMenu *m = tray->contextMenu();
m->setCheckable ( true ); m->setCheckable ( true );
@ -560,7 +560,7 @@ MainWidget::MainWidget ( TDEAboutData *about, bool tren, TQWidget *parent, const
void MainWidget::finishInit() void MainWidget::finishInit()
{ {
KConfig *cfg = TDEApplication::kApplication()->config(); TDEConfig *cfg = TDEApplication::kApplication()->config();
bool vis = cfg->readBoolEntry("visible",true); bool vis = cfg->readBoolEntry("visible",true);
if (vis) { if (vis) {
show(); show();
@ -585,7 +585,7 @@ void MainWidget::restorePosition()
int d_height=235; int d_height=235;
TQRect dflt_geom(screen_geom.width()-d_width,screen_geom.height()-d_height,d_width,d_height); TQRect dflt_geom(screen_geom.width()-d_width,screen_geom.height()-d_height,d_width,d_height);
KConfig *cfg = 0; TDEConfig *cfg = 0;
cfg = TDEApplication::kApplication()->config(); cfg = TDEApplication::kApplication()->config();
if (cfg){ if (cfg){
TQRect geom = cfg->readRectEntry("geometry"); TQRect geom = cfg->readRectEntry("geometry");
@ -597,7 +597,7 @@ void MainWidget::restorePosition()
} }
void MainWidget::saveState() void MainWidget::saveState()
{ {
KConfig *cfg = 0; TDEConfig *cfg = 0;
cfg = TDEApplication::kApplication()->config(); cfg = TDEApplication::kApplication()->config();
if (cfg){ if (cfg){
cfg->writeEntry("visible",isShown()); cfg->writeEntry("visible",isShown());
@ -607,7 +607,7 @@ void MainWidget::saveState()
void MainWidget::hideEvent ( TQHideEvent * ) void MainWidget::hideEvent ( TQHideEvent * )
{ {
KConfig *cfg = 0; TDEConfig *cfg = 0;
cfg = TDEApplication::kApplication()->config(); cfg = TDEApplication::kApplication()->config();
if (cfg){ if (cfg){
cfg->writeEntry("geometry",geometry()); cfg->writeEntry("geometry",geometry());
@ -715,7 +715,7 @@ void MainWidget::chooseFont()
// value, in this case Helvetica [Cronyx], 10 // value, in this case Helvetica [Cronyx], 10
} }
KConfig *cfg = TDEApplication::kApplication()->config(); TDEConfig *cfg = TDEApplication::kApplication()->config();
cfg->writeEntry ("KvkbdFont", this->font()); cfg->writeEntry ("KvkbdFont", this->font());
cfg->sync(); cfg->sync();
@ -740,7 +740,7 @@ void MainWidget::showDock()
tray->contextMenu()->setItemChecked ( mnu_dock, !c ); tray->contextMenu()->setItemChecked ( mnu_dock, !c );
dock->show(); dock->show();
} }
KConfig *cfg = TDEApplication::kApplication()->config(); TDEConfig *cfg = TDEApplication::kApplication()->config();
cfg->writeEntry ("showdock", !c); cfg->writeEntry ("showdock", !c);
cfg->sync(); cfg->sync();
@ -749,7 +749,7 @@ void MainWidget::toggleFontAutoRes()
{ {
bool c = tray->contextMenu()->isItemChecked( mnu_autores); bool c = tray->contextMenu()->isItemChecked( mnu_autores);
tray->contextMenu()->setItemChecked(mnu_autores, !c); tray->contextMenu()->setItemChecked(mnu_autores, !c);
KConfig *cfg = TDEApplication::kApplication()->config(); TDEConfig *cfg = TDEApplication::kApplication()->config();
cfg->writeEntry ("autoresfont", !c); cfg->writeEntry ("autoresfont", !c);
cfg->sync(); cfg->sync();
} }

Loading…
Cancel
Save