summaryrefslogtreecommitdiffstats
path: root/lib/kopalette
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-01-24 13:23:24 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-01-24 13:23:24 -0600
commit5b8ab149469c8e186ee8b05d90c0103ae722dd85 (patch)
treefb31321c80b12ee8e2237bdcf8c228fe44e67772 /lib/kopalette
parentfe33d391dd7c9da0f83e779344a17e2e445b70a8 (diff)
downloadkoffice-5b8ab149469c8e186ee8b05d90c0103ae722dd85.tar.gz
koffice-5b8ab149469c8e186ee8b05d90c0103ae722dd85.zip
Rename KGlobal, KProcess, and KClipboard to avoid conflicts with KDE4
Diffstat (limited to 'lib/kopalette')
-rw-r--r--lib/kopalette/kopalette.cc6
-rw-r--r--lib/kopalette/kopalettemanager.cc8
2 files changed, 7 insertions, 7 deletions
diff --git a/lib/kopalette/kopalette.cc b/lib/kopalette/kopalette.cc
index 751074b7..430b972a 100644
--- a/lib/kopalette/kopalette.cc
+++ b/lib/kopalette/kopalette.cc
@@ -63,11 +63,11 @@ KoPalette::KoPalette(TQWidget * parent, const char * name)
void KoPalette::resetFont()
{
- KConfig * cfg = KGlobal::config();
+ KConfig * cfg = TDEGlobal::config();
Q_ASSERT(cfg);
cfg->setGroup("");
- m_font = KGlobalSettings::generalFont();
- float ps = TQMIN(9, KGlobalSettings::generalFont().pointSize() * 0.8);
+ m_font = TDEGlobalSettings::generalFont();
+ float ps = TQMIN(9, TDEGlobalSettings::generalFont().pointSize() * 0.8);
ps = cfg->readNumEntry("palettefontsize", (int)ps);
if (ps < 6) ps = 6;
m_font.setPointSize((int)ps);
diff --git a/lib/kopalette/kopalettemanager.cc b/lib/kopalette/kopalettemanager.cc
index 91d237a3..7d4a32d9 100644
--- a/lib/kopalette/kopalettemanager.cc
+++ b/lib/kopalette/kopalettemanager.cc
@@ -65,7 +65,7 @@ KoPaletteManager::KoPaletteManager(KoView * view, KActionCollection *ac, const c
connect(m_mapper, TQT_SIGNAL(mapped(int)), this, TQT_SLOT(slotTogglePalette(int)));
m_viewActionMenu = new KActionMenu(i18n("Palettes"), m_actionCollection, "view_palette_action_menu");
- KConfig * cfg = KGlobal::config();
+ KConfig * cfg = TDEGlobal::config();
cfg->setGroup("palettes");
bool palettesShown = cfg->readBoolEntry("palettesshown", true);
@@ -149,7 +149,7 @@ void KoPaletteManager::addWidget(TQWidget * widget,
bool visible = true;
- KConfig * cfg = KGlobal::config();
+ KConfig * cfg = TDEGlobal::config();
if (cfg->hasGroup("palettetab-" + name)) {
cfg->setGroup("palettetab-" + name);
@@ -367,7 +367,7 @@ void KoPaletteManager::placePalette(const TQString & name, TQt::Dock location)
if (!palette) return;
//XXX: Check whether this name occurs in the config list, retrieve the location, set the location
- KConfig * cfg = KGlobal::config();
+ KConfig * cfg = TDEGlobal::config();
if (cfg->hasGroup("palette-" + name)) {
cfg->setGroup("palette-" + name);
@@ -529,7 +529,7 @@ void KoPaletteManager::save()
if (!m_view) return;
if (!m_view->mainWindow()) return;
- KConfig * cfg = KGlobal::config();
+ KConfig * cfg = TDEGlobal::config();
Q_ASSERT(cfg);
cfg->setGroup("");