From 3972713c7e4733b425a44e16c17e4a199659c827 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Sun, 20 Jan 2013 00:00:10 -0600 Subject: Rename KApplication to TDEApplication to avoid conflicts with KDE4 --- src/MainWidget.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/MainWidget.cpp') diff --git a/src/MainWidget.cpp b/src/MainWidget.cpp index d1b0111..af0e731 100644 --- a/src/MainWidget.cpp +++ b/src/MainWidget.cpp @@ -499,7 +499,7 @@ MainWidget::MainWidget ( KAboutData *about, bool tren, TQWidget *parent, const c tray = new KbdTray ( this ); tray->setPixmap ( UserIcon ( "tray" ) ); - KConfig *cfg = KApplication::kApplication()->config(); + KConfig *cfg = TDEApplication::kApplication()->config(); KPopupMenu *m = tray->contextMenu(); m->setCheckable ( true ); @@ -560,7 +560,7 @@ MainWidget::MainWidget ( KAboutData *about, bool tren, TQWidget *parent, const c void MainWidget::finishInit() { - KConfig *cfg = KApplication::kApplication()->config(); + KConfig *cfg = TDEApplication::kApplication()->config(); bool vis = cfg->readBoolEntry("visible",true); if (vis) { show(); @@ -586,7 +586,7 @@ void MainWidget::restorePosition() TQRect dflt_geom(screen_geom.width()-d_width,screen_geom.height()-d_height,d_width,d_height); KConfig *cfg = 0; - cfg = KApplication::kApplication()->config(); + cfg = TDEApplication::kApplication()->config(); if (cfg){ TQRect geom = cfg->readRectEntry("geometry"); if (!geom.isNull() && geom.isValid()) { @@ -598,7 +598,7 @@ void MainWidget::restorePosition() void MainWidget::saveState() { KConfig *cfg = 0; - cfg = KApplication::kApplication()->config(); + cfg = TDEApplication::kApplication()->config(); if (cfg){ cfg->writeEntry("visible",isShown()); cfg->sync(); @@ -608,7 +608,7 @@ void MainWidget::hideEvent ( TQHideEvent * ) { KConfig *cfg = 0; - cfg = KApplication::kApplication()->config(); + cfg = TDEApplication::kApplication()->config(); if (cfg){ cfg->writeEntry("geometry",geometry()); cfg->sync(); @@ -715,7 +715,7 @@ void MainWidget::chooseFont() // value, in this case Helvetica [Cronyx], 10 } - KConfig *cfg = KApplication::kApplication()->config(); + KConfig *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 = KApplication::kApplication()->config(); + KConfig *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 = KApplication::kApplication()->config(); + KConfig *cfg = TDEApplication::kApplication()->config(); cfg->writeEntry ("autoresfont", !c); cfg->sync(); } -- cgit v1.2.1