summaryrefslogtreecommitdiffstats
path: root/src/kmplayerconfig.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-30 06:10:56 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-30 06:10:56 +0000
commit769e63d24adf5c844137484f06a972fcce732d6a (patch)
tree5185797dcb3ff4b1b3cb71d367123bf89eb2410f /src/kmplayerconfig.h
parent0a8af92185eac74d48da1225e6053a0d66c078f5 (diff)
downloadkmplayer-769e63d24adf5c844137484f06a972fcce732d6a.tar.gz
kmplayer-769e63d24adf5c844137484f06a972fcce732d6a.zip
TQt4 port kmplayer
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kmplayer@1238840 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/kmplayerconfig.h')
-rw-r--r--src/kmplayerconfig.h47
1 files changed, 24 insertions, 23 deletions
diff --git a/src/kmplayerconfig.h b/src/kmplayerconfig.h
index 784c1c6..4520903 100644
--- a/src/kmplayerconfig.h
+++ b/src/kmplayerconfig.h
@@ -23,9 +23,9 @@
#include <config.h>
#endif
-#include <qobject.h>
-#include <qstringlist.h>
-#include <qmap.h>
+#include <tqobject.h>
+#include <tqstringlist.h>
+#include <tqmap.h>
#include <kurl.h>
@@ -40,15 +40,15 @@ class View;
class OutputDriver {
public:
const char * driver;
- const QString description;
+ const TQString description;
};
class ColorSetting {
public:
- QString title;
- QString option;
- QColor color;
- QColor newcolor;
+ TQString title;
+ TQString option;
+ TQColor color;
+ TQColor newcolor;
enum Target {
playlist_background = 0, playlist_foreground, playlist_active,
console_background, console_foreground,
@@ -60,10 +60,10 @@ public:
class FontSetting {
public:
- QString title;
- QString option; // for ini file
- QFont font;
- QFont newfont;
+ TQString title;
+ TQString option; // for ini file
+ TQFont font;
+ TQFont newfont;
enum Target {
playlist, infowindow, last_target
} target;
@@ -85,16 +85,17 @@ public:
virtual void write (KConfig *) = 0;
virtual void read (KConfig *) = 0;
virtual void sync (bool fromUI) = 0;
- virtual void prefLocation (QString & item, QString & icon, QString & tab) = 0;
- virtual QFrame * prefPage (QWidget * parent) = 0;
+ virtual void prefLocation (TQString & item, TQString & icon, TQString & tab) = 0;
+ virtual TQFrame * prefPage (TQWidget * tqparent) = 0;
PreferencesPage * next;
};
/*
* Class for storing all actual settings and reading/writing them
*/
-class KMPLAYER_EXPORT Settings : public QObject {
+class KMPLAYER_EXPORT Settings : public TQObject {
Q_OBJECT
+ TQ_OBJECT
public:
Settings (PartBase *, KConfig * part);
~Settings ();
@@ -107,8 +108,8 @@ public:
View * defaultView ();
KConfig * kconfig () { return m_config; }
- QStringList urllist;
- QStringList sub_urllist;
+ TQStringList urllist;
+ TQStringList sub_urllist;
int volume;
int contrast;
int brightness;
@@ -171,9 +172,9 @@ public:
enum ReplayOption { ReplayNo = 0, ReplayFinished, ReplayAfter };
ReplayOption replayoption;
int replaytime;
- QString mencoderarguments;
- QString ffmpegarguments;
- QString recordfile;
+ TQString mencoderarguments;
+ TQString ffmpegarguments;
+ TQString recordfile;
int seektime;
int videodriver;
int audiodriver;
@@ -181,9 +182,9 @@ public:
OutputDriver * videodrivers;
ColorSetting colors [ColorSetting::last_target];
FontSetting fonts [FontSetting::last_target];
- QString dvddevice;
- QString vcddevice;
- QMap <QString, QString> backends;
+ TQString dvddevice;
+ TQString vcddevice;
+ TQMap <TQString, TQString> backends;
PreferencesPage * pagelist;
signals:
void configChanged ();