summaryrefslogtreecommitdiffstats
path: root/kpersonalizer/kstylepage.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:33:34 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:33:34 +0000
commitc663b6440964f6ac48027143ac9e63298991f9d0 (patch)
tree6d8b0c5a5f9db1ee16acf98b1397cea9126b281d /kpersonalizer/kstylepage.h
parenta061f7191beebb0e4a3b0c0a7c534ec5f22f2dc7 (diff)
downloadtdebase-c663b6440964f6ac48027143ac9e63298991f9d0.tar.gz
tdebase-c663b6440964f6ac48027143ac9e63298991f9d0.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1157639 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kpersonalizer/kstylepage.h')
-rw-r--r--kpersonalizer/kstylepage.h104
1 files changed, 52 insertions, 52 deletions
diff --git a/kpersonalizer/kstylepage.h b/kpersonalizer/kstylepage.h
index f017f5b99..0c6bf82b7 100644
--- a/kpersonalizer/kstylepage.h
+++ b/kpersonalizer/kstylepage.h
@@ -18,7 +18,7 @@
#ifndef KSTYLEPAGE_H
#define KSTYLEPAGE_H
-#include <qcolor.h>
+#include <tqcolor.h>
#include "kstylepagedlg.h"
/**Abstract class for the style page
@@ -30,7 +30,7 @@ class KStylePage : public KStylePageDlg {
Q_OBJECT
public:
- KStylePage(QWidget *parent=0, const char *name=0);
+ KStylePage(TQWidget *parent=0, const char *name=0);
~KStylePage();
void save(bool curSettings=true);
/** resets to KDE style as default */
@@ -39,58 +39,58 @@ public:
void switchPrevStyle();
private:
- QString origStyle;
- QString origKWinStyle;
- QString origIcons;
- QString defaultKWinStyle;
- QString currentStyle;
+ TQString origStyle;
+ TQString origKWinStyle;
+ TQString origIcons;
+ TQString defaultKWinStyle;
+ TQString currentStyle;
KConfig* ckwin;
struct colorSet {
- QString colorFile, bgMode;
+ TQString colorFile, bgMode;
int contrast;
- QColor usrCol1, usrCol2;
- QColor foreground;
- QColor background;
- QColor windowForeground;
- QColor windowBackground;
- QColor selectForeground;
- QColor selectBackground;
- QColor buttonForeground;
- QColor buttonBackground;
- QColor linkColor;
- QColor visitedLinkColor;
- QColor activeForeground;
- QColor inactiveForeground;
- QColor activeBackground;
- QColor inactiveBackground;
- QColor activeBlend;
- QColor inactiveBlend;
- QColor activeTitleBtnBg;
- QColor inactiveTitleBtnBg;
- QColor alternateBackground;
+ TQColor usrCol1, usrCol2;
+ TQColor foreground;
+ TQColor background;
+ TQColor windowForeground;
+ TQColor windowBackground;
+ TQColor selectForeground;
+ TQColor selectBackground;
+ TQColor buttonForeground;
+ TQColor buttonBackground;
+ TQColor linkColor;
+ TQColor visitedLinkColor;
+ TQColor activeForeground;
+ TQColor inactiveForeground;
+ TQColor activeBackground;
+ TQColor inactiveBackground;
+ TQColor activeBlend;
+ TQColor inactiveBlend;
+ TQColor activeTitleBtnBg;
+ TQColor inactiveTitleBtnBg;
+ TQColor alternateBackground;
} usrColors, currentColors;
// first, the KDE 2 default color values
- QColor widget;
- QColor kde34Blue;
- QColor inactiveBackground;
- QColor activeBackground;
- QColor button;
- QColor link;
- QColor visitedLink;
- QColor activeBlend;
- QColor activeTitleBtnBg;
- QColor inactiveTitleBtnBg;
- QColor inactiveForeground;
- QColor alternateBackground;
-
- QListViewItem * kde;
- QListViewItem * classic;
- QListViewItem * keramik;
- QListViewItem * cde;
- QListViewItem * win;
- QListViewItem * platinum;
-
- QStyle *appliedStyle;
+ TQColor widget;
+ TQColor kde34Blue;
+ TQColor inactiveBackground;
+ TQColor activeBackground;
+ TQColor button;
+ TQColor link;
+ TQColor visitedLink;
+ TQColor activeBlend;
+ TQColor activeTitleBtnBg;
+ TQColor inactiveTitleBtnBg;
+ TQColor inactiveForeground;
+ TQColor alternateBackground;
+
+ TQListViewItem * kde;
+ TQListViewItem * classic;
+ TQListViewItem * keramik;
+ TQListViewItem * cde;
+ TQListViewItem * win;
+ TQListViewItem * platinum;
+
+ TQStyle *appliedStyle;
// widget-style existence
bool kde_hc_exist, kde_def_exist, kde_keramik_exist, kde_light_exist,
@@ -105,7 +105,7 @@ private:
public slots: // Public slots
/** to be connected to the OS page. Catches either KDE, CDE, win or mac and pre-sets the style. */
- void presetStyle(const QString& style);
+ void presetStyle(const TQString& style);
private:
void saveColors(bool curSettings=true);
@@ -117,9 +117,9 @@ private:
void initColors();
void liveUpdate();
void getColors(colorSet *set, bool colorfile );
- void setStyleRecursive(QWidget* w, QPalette &, QStyle* s);
+ void setStyleRecursive(TQWidget* w, TQPalette &, TQStyle* s);
void changeCurrentStyle();
- QPalette createPalette();
+ TQPalette createPalette();
private slots:
void slotCurrentChanged();