diff options
Diffstat (limited to 'src/komposesettings.cpp')
-rw-r--r-- | src/komposesettings.cpp | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/src/komposesettings.cpp b/src/komposesettings.cpp index d1bacc6..a221450 100644 --- a/src/komposesettings.cpp +++ b/src/komposesettings.cpp @@ -15,7 +15,7 @@ #include "komposetaskmanager.h" #include "komposepreferences.h" -#include <qcolor.h> +#include <tqcolor.h> #include <kglobalaccel.h> #include <kapplication.h> @@ -41,8 +41,8 @@ KomposeSettings* KomposeSettings::instance() } -KomposeSettings::KomposeSettings(QObject *parent, const char *name) - : QObject(parent, name), +KomposeSettings::KomposeSettings(TQObject *parent, const char *name) + : TQObject(parent, name), dialogOpen(0), windowTitleFontMetrics(0) { @@ -51,19 +51,19 @@ KomposeSettings::KomposeSettings(QObject *parent, const char *name) globalAccel = new KGlobalAccel( this ); globalAccel->insert( "showDefaultView", i18n("Show Komposé (default view)"), i18n("Displays the view you have configured as default"), - KKey::QtWIN+Key_Tab, KKey::QtWIN+CTRL+SHIFT+Key_Tab, + KKey::TQtWIN+Key_Tab, KKey::TQtWIN+CTRL+SHIFT+Key_Tab, KomposeViewManager::instance(), SLOT(createDefaultView()) ); globalAccel->insert( "showWorldView", i18n("Show Komposé (ungrouped)"), i18n("Displays all windows unsorted"), - CTRL+SHIFT+Key_J, KKey::QtWIN+CTRL+SHIFT+Key_J, + CTRL+SHIFT+Key_J, KKey::TQtWIN+CTRL+SHIFT+Key_J, KomposeViewManager::instance(), SLOT(createWorldView()) ); globalAccel->insert( "showVirtualDesktopView", i18n("Show Komposé (grouped by virtual desktops)"), i18n("Displays all windows sorted by virtual desktops"), - CTRL+SHIFT+Key_I, KKey::QtWIN+CTRL+SHIFT+Key_I, + CTRL+SHIFT+Key_I, KKey::TQtWIN+CTRL+SHIFT+Key_I, KomposeViewManager::instance(), SLOT(createVirtualDesktopView()) ); globalAccel->insert( "showCurrentDesktopView", i18n("Show Komposé (current virtual desktop)"), i18n("Displays all windows on the current desktop"), - CTRL+SHIFT+Key_K, KKey::QtWIN+CTRL+SHIFT+Key_K, + CTRL+SHIFT+Key_K, KKey::TQtWIN+CTRL+SHIFT+Key_K, KomposeViewManager::instance(), SLOT(createCurrentDesktopView()) ); // read Settings from cfg file @@ -104,14 +104,14 @@ void KomposeSettings::readConfig() iconSize = kapp->config()->readNumEntry("iconSize", 3); showWindowTitles = kapp->config()->readBoolEntry("showWindowTitles", true ); - windowTitleFont = kapp->config()->readFontEntry("windowTitleFont", new QFont( "arial", 11, QFont::Bold ) ); - windowTitleFontColor = kapp->config()->readColorEntry("windowTitleFontColor", new QColor(Qt::black) ); + windowTitleFont = kapp->config()->readFontEntry("windowTitleFont", new TQFont( "arial", 11, TQFont::Bold ) ); + windowTitleFontColor = kapp->config()->readColorEntry("windowTitleFontColor", new TQColor(TQt::black) ); showWindowTitleShadow = kapp->config()->readBoolEntry("showWindowTitleShadow", true ); - windowTitleFontShadowColor = kapp->config()->readColorEntry("windowTitleFontShadowColor", new QColor(Qt::lightGray) ); + windowTitleFontShadowColor = kapp->config()->readColorEntry("windowTitleFontShadowColor", new TQColor(TQt::lightGray) ); - desktopTitleFont = kapp->config()->readFontEntry("desktopTitleFont", new QFont( "arial", 10 ) ); - desktopTitleFontColor = kapp->config()->readColorEntry("desktopTitleFontColor", new QColor(Qt::gray) ); - desktopTitleFontHighlightColor = kapp->config()->readColorEntry("desktopTitleFontHighlightColor", new QColor(Qt::black) ); + desktopTitleFont = kapp->config()->readFontEntry("desktopTitleFont", new TQFont( "arial", 10 ) ); + desktopTitleFontColor = kapp->config()->readColorEntry("desktopTitleFontColor", new TQColor(TQt::gray) ); + desktopTitleFontHighlightColor = kapp->config()->readColorEntry("desktopTitleFontHighlightColor", new TQColor(TQt::black) ); cacheScaledPixmaps = kapp->config()->readBoolEntry("cacheScaledPixmaps", true); @@ -227,7 +227,7 @@ void KomposeSettings::calcFontMetrics() { if (windowTitleFontMetrics != 0) delete windowTitleFontMetrics; - windowTitleFontMetrics = new QFontMetrics( windowTitleFont ); + windowTitleFontMetrics = new TQFontMetrics( windowTitleFont ); windowTitleFontAscent = windowTitleFontMetrics->ascent(); windowTitleFontHeight = windowTitleFontMetrics->height(); } |