summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-01-20 00:00:10 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-01-20 00:00:10 -0600
commit3972713c7e4733b425a44e16c17e4a199659c827 (patch)
treeae20f14de1b2619efcaf48efac49faafcd1fb446 /src
parentfefb2ade547b2756dd2e09f6a173e71fd7d98067 (diff)
downloadkvkbd-3972713c7e4733b425a44e16c17e4a199659c827.tar.gz
kvkbd-3972713c7e4733b425a44e16c17e4a199659c827.zip
Rename KApplication to TDEApplication to avoid conflicts with KDE4
Diffstat (limited to 'src')
-rw-r--r--src/MainWidget.cpp16
1 files changed, 8 insertions, 8 deletions
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();
}