diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-07-01 08:42:58 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-07-01 08:42:58 +0000 |
commit | 9902f14bc9162d7b286b3f99b27989237db9f264 (patch) | |
tree | b95be3be1992566418b2c2e2ed16bdb29453a8d4 /ksystemlog/src/kernel | |
parent | 437249c71459e9ea15be70788687cb8695e249c2 (diff) | |
download | ksystemlog-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/kernel')
-rw-r--r-- | ksystemlog/src/kernel/kernelOptions.cpp | 36 | ||||
-rw-r--r-- | ksystemlog/src/kernel/kernelOptions.h | 9 |
2 files changed, 23 insertions, 22 deletions
diff --git a/ksystemlog/src/kernel/kernelOptions.cpp b/ksystemlog/src/kernel/kernelOptions.cpp index 61780c8..3af5a3e 100644 --- a/ksystemlog/src/kernel/kernelOptions.cpp +++ b/ksystemlog/src/kernel/kernelOptions.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> @@ -43,17 +43,17 @@ #include "kernelOptions.h" #include "ksystemlogConfig.h" -KernelOptions::KernelOptions(QWidget *parent) : - QWidget(parent) +KernelOptions::KernelOptions(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>Kernel logs</b>. This list also determines the order in which the files are read.</p></qt>"); + TQString description= i18n("<qt><p>These files will be analyzed to display <b>Kernel logs</b>. This list also determines 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(); @@ -81,8 +81,8 @@ void KernelOptions::slotFileListChanged(int itemLeft) { void KernelOptions::saveConfig() { kdDebug() << "Saving config from Kernel Options..." << endl; - QStringList stringList; - QValueList<int> valueList; + TQStringList stringList; + TQValueList<int> valueList; fileList->saveConfig(stringList, valueList); @@ -91,8 +91,8 @@ void KernelOptions::saveConfig() { } void KernelOptions::readConfig() { - QStringList stringList=KSystemLogConfig::kernelPaths(); - QValueList<int> valueList=KSystemLogConfig::kernelLevels(); + TQStringList stringList=KSystemLogConfig::kernelPaths(); + TQValueList<int> valueList=KSystemLogConfig::kernelLevels(); fileList->readConfig(stringList, valueList); } diff --git a/ksystemlog/src/kernel/kernelOptions.h b/ksystemlog/src/kernel/kernelOptions.h index b0f7ea6..884f6fa 100644 --- a/ksystemlog/src/kernel/kernelOptions.h +++ b/ksystemlog/src/kernel/kernelOptions.h @@ -21,8 +21,8 @@ #ifndef _KERNEL_OPTIONS_H_ #define _KERNEL_OPTIONS_H_ -#include <qframe.h> -#include <qspinbox.h> +#include <tqframe.h> +#include <tqspinbox.h> #include <kpopupmenu.h> #include <kconfig.h> @@ -36,10 +36,11 @@ #include "logLevel.h" -class KernelOptions : public QWidget { +class KernelOptions : public TQWidget { Q_OBJECT + TQ_OBJECT public: - KernelOptions(QWidget *parent = 0); + KernelOptions(TQWidget *tqparent = 0); ~KernelOptions(); bool isValid(); |