summaryrefslogtreecommitdiffstats
path: root/ksystemlog/src/daemon
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-07-01 08:42:58 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-07-01 08:42:58 +0000
commit9902f14bc9162d7b286b3f99b27989237db9f264 (patch)
treeb95be3be1992566418b2c2e2ed16bdb29453a8d4 /ksystemlog/src/daemon
parent437249c71459e9ea15be70788687cb8695e249c2 (diff)
downloadksystemlog-9902f14bc9162d7b286b3f99b27989237db9f264.tar.gz
ksystemlog-9902f14bc9162d7b286b3f99b27989237db9f264.zip
TQt4 port ksystemlog
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/ksystemlog@1239000 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'ksystemlog/src/daemon')
-rw-r--r--ksystemlog/src/daemon/daemonOptions.cpp36
-rw-r--r--ksystemlog/src/daemon/daemonOptions.h9
2 files changed, 23 insertions, 22 deletions
diff --git a/ksystemlog/src/daemon/daemonOptions.cpp b/ksystemlog/src/daemon/daemonOptions.cpp
index b321970..762c006 100644
--- a/ksystemlog/src/daemon/daemonOptions.cpp
+++ b/ksystemlog/src/daemon/daemonOptions.cpp
@@ -18,14 +18,14 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
***************************************************************************/
-//Qt includes
-#include <qlayout.h>
-#include <qvgroupbox.h>
-#include <qbuttongroup.h>
-#include <qlabel.h>
-#include <qpushbutton.h>
-#include <qvbox.h>
-#include <qhbox.h>
+//TQt includes
+#include <tqlayout.h>
+#include <tqvgroupbox.h>
+#include <tqbuttongroup.h>
+#include <tqlabel.h>
+#include <tqpushbutton.h>
+#include <tqvbox.h>
+#include <tqhbox.h>
//KDE includes
#include <klocale.h>
@@ -42,17 +42,17 @@
#include "daemonOptions.h"
#include "ksystemlogConfig.h"
-DaemonOptions::DaemonOptions(QWidget *parent) :
- QWidget(parent)
+DaemonOptions::DaemonOptions(TQWidget *tqparent) :
+ TQWidget(tqparent)
{
- QHBoxLayout *layout = new QHBoxLayout(this);
- layout->setAutoAdd(true);
+ TQHBoxLayout *tqlayout = new TQHBoxLayout(this);
+ tqlayout->setAutoAdd(true);
- QString description= i18n("<qt><p>These files will be analyzed to display <b>daemons Logs</b>. This list also determine the order in which the files are read.</p></qt>");
+ TQString description= i18n("<qt><p>These files will be analyzed to display <b>daemons Logs</b>. This list also determine the order in which the files are read.</p></qt>");
fileList=new SpecificFileList(this, description);
- connect(fileList, SIGNAL(fileListChanged(int)), this, SLOT(slotFileListChanged(int)));
+ connect(fileList, TQT_SIGNAL(fileListChanged(int)), this, TQT_SLOT(slotFileListChanged(int)));
readConfig();
@@ -80,8 +80,8 @@ void DaemonOptions::slotFileListChanged(int itemLeft) {
void DaemonOptions::saveConfig() {
kdDebug() << "Saving config from Daemon Options..." << endl;
- QStringList stringList;
- QValueList<int> valueList;
+ TQStringList stringList;
+ TQValueList<int> valueList;
fileList->saveConfig(stringList, valueList);
@@ -90,8 +90,8 @@ void DaemonOptions::saveConfig() {
}
void DaemonOptions::readConfig() {
- QStringList stringList=KSystemLogConfig::daemonPaths();
- QValueList<int> valueList=KSystemLogConfig::daemonLevels();
+ TQStringList stringList=KSystemLogConfig::daemonPaths();
+ TQValueList<int> valueList=KSystemLogConfig::daemonLevels();
fileList->readConfig(stringList, valueList);
}
diff --git a/ksystemlog/src/daemon/daemonOptions.h b/ksystemlog/src/daemon/daemonOptions.h
index d544634..0e8f148 100644
--- a/ksystemlog/src/daemon/daemonOptions.h
+++ b/ksystemlog/src/daemon/daemonOptions.h
@@ -21,8 +21,8 @@
#ifndef _DAEMON_OPTIONS_H_
#define _DAEMON_OPTIONS_H_
-#include <qframe.h>
-#include <qspinbox.h>
+#include <tqframe.h>
+#include <tqspinbox.h>
#include <kpopupmenu.h>
#include <kconfig.h>
@@ -35,10 +35,11 @@
#include "specificFileList.h"
#include "logLevel.h"
-class DaemonOptions : public QWidget {
+class DaemonOptions : public TQWidget {
Q_OBJECT
+ TQ_OBJECT
public:
- DaemonOptions(QWidget *parent = 0);
+ DaemonOptions(TQWidget *tqparent = 0);
~DaemonOptions();
bool isValid();