summaryrefslogtreecommitdiffstats
path: root/src/komposesettings.cpp
diff options
context:
space:
mode:
authorMavridis Philippe <mavridisf@gmail.com>2021-03-30 14:11:34 +0300
committerMavridis Philippe <mavridisf@gmail.com>2021-03-30 14:11:34 +0300
commitd991b7f387775dc1071fb0c0af78de1c613ca991 (patch)
treeeb7c978130acb1b2c93eeea98be2f647372c6fac /src/komposesettings.cpp
parent1bd3c5b42f1570b2100a4986f638f2723ee37ec4 (diff)
downloadkompose-d991b7f387775dc1071fb0c0af78de1c613ca991.tar.gz
kompose-d991b7f387775dc1071fb0c0af78de1c613ca991.zip
Qt3->TQt conversion.
Signed-off-by: Mavridis Philippe <mavridisf@gmail.com>
Diffstat (limited to 'src/komposesettings.cpp')
-rw-r--r--src/komposesettings.cpp28
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();
}