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

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

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

Loading…
Cancel
Save