summaryrefslogtreecommitdiffstats
path: root/src/kcm/configdialog.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-30 18:16:06 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-30 18:16:06 +0000
commit02a6c8f36311eb6225066df35adf8d00f9cd942b (patch)
treeceb91c373877f7a69209e184c81b53dc6f9402d7 /src/kcm/configdialog.h
parent09e6e27fe85b2efb28072f1c81f6581fa6837d92 (diff)
downloadknemo-02a6c8f36311eb6225066df35adf8d00f9cd942b.tar.gz
knemo-02a6c8f36311eb6225066df35adf8d00f9cd942b.zip
TQt4 port knemo
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/knemo@1238869 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/kcm/configdialog.h')
-rw-r--r--src/kcm/configdialog.h60
1 files changed, 31 insertions, 29 deletions
diff --git a/src/kcm/configdialog.h b/src/kcm/configdialog.h
index a4ff764..63c6a7d 100644
--- a/src/kcm/configdialog.h
+++ b/src/kcm/configdialog.h
@@ -20,16 +20,16 @@
#ifndef CONFIGDIALOG_H
#define CONFIGDIALOG_H
-#include <qdict.h>
-#include <qpair.h>
-#include <qstring.h>
-#include <qlistview.h>
+#include <tqdict.h>
+#include <tqpair.h>
+#include <tqstring.h>
+#include <tqlistview.h>
#include <kcmodule.h>
#include "data.h"
-class QTimer;
+class TQTimer;
class ConfigDlg;
class KNemoCheckListItem;
@@ -46,11 +46,12 @@ class KNemoCheckListItem;
class ConfigDialog : public KCModule
{
Q_OBJECT
+ TQ_OBJECT
public:
/**
* Default Constructor
*/
- ConfigDialog( QWidget *parent, const char *name, const QStringList& );
+ ConfigDialog( TQWidget *tqparent, const char *name, const TQStringList& );
/**
* Default Destructor
@@ -72,8 +73,8 @@ private slots:
void buttonRemoveToolTipSelected();
void buttonNotificationsSelected();
void buttonStatisticsDirSelected();
- void interfaceSelected( const QString& interface );
- void aliasChanged( const QString& text );
+ void interfaceSelected( const TQString& interface );
+ void aliasChanged( const TQString& text );
void iconSetChanged( int set );
void backendChanged( int set );
void checkBoxNotConnectedToggled( bool on );
@@ -84,7 +85,7 @@ private slots:
void checkBoxCustomToggled( bool on );
void listViewCommandsSelectionChanged();
void listViewCommandsCheckListItemChanged( KNemoCheckListItem* item, bool state );
- void listViewCommandsRenamed( QListViewItem* item, int col, const QString & text );
+ void listViewCommandsRenamed( TQListViewItem* item, int col, const TQString & text );
/**
* These three are generic.
@@ -93,7 +94,7 @@ private slots:
*/
void checkBoxToggled( bool );
void spinBoxValueChanged( int );
- void kColorButtonChanged( const QColor& );
+ void kColorButtonChanged( const TQColor& );
private:
void setupToolTipTab();
@@ -111,30 +112,31 @@ private:
int mToolTipContent;
bool mLock;
ConfigDlg* mDlg;
- QColor mColorVLines;
- QColor mColorHLines;
- QColor mColorIncoming;
- QColor mColorOutgoing;
- QColor mColorBackground;
- QDict<InterfaceSettings> mSettingsDict;
- QPair<QString, int> mToolTips[25];
-
- static const QString ICON_DISCONNECTED;
- static const QString ICON_CONNECTED;
- static const QString ICON_INCOMING;
- static const QString ICON_OUTGOING;
- static const QString ICON_TRAFFIC;
- static const QString SUFFIX_PPP;
- static const QString SUFFIX_LAN;
- static const QString SUFFIX_WLAN;
+ TQColor mColorVLines;
+ TQColor mColorHLines;
+ TQColor mColorIncoming;
+ TQColor mColorOutgoing;
+ TQColor mColorBackground;
+ TQDict<InterfaceSettings> mSettingsDict;
+ TQPair<TQString, int> mToolTips[25];
+
+ static const TQString ICON_DISCONNECTED;
+ static const TQString ICON_CONNECTED;
+ static const TQString ICON_INCOMING;
+ static const TQString ICON_OUTGOING;
+ static const TQString ICON_TRAFFIC;
+ static const TQString SUFFIX_PPP;
+ static const TQString SUFFIX_LAN;
+ static const TQString SUFFIX_WLAN;
};
-class KNemoCheckListItem : public QObject, public QCheckListItem
+class KNemoCheckListItem : public TQObject, public TQCheckListItem
{
Q_OBJECT
+ TQ_OBJECT
public:
- KNemoCheckListItem( QListView* view )
- : QCheckListItem( view, QString::null, QCheckListItem::CheckBox )
+ KNemoCheckListItem( TQListView* view )
+ : TQCheckListItem( view, TQString(), TQCheckListItem::CheckBox )
{}
signals: