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/bootauth | |
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/bootauth')
-rw-r--r-- | ksystemlog/src/bootauth/bootAuthenticationOptions.cpp | 56 | ||||
-rw-r--r-- | ksystemlog/src/bootauth/bootAuthenticationOptions.h | 13 |
2 files changed, 35 insertions, 34 deletions
diff --git a/ksystemlog/src/bootauth/bootAuthenticationOptions.cpp b/ksystemlog/src/bootauth/bootAuthenticationOptions.cpp index 115ae93..6561120 100644 --- a/ksystemlog/src/bootauth/bootAuthenticationOptions.cpp +++ b/ksystemlog/src/bootauth/bootAuthenticationOptions.cpp @@ -19,14 +19,14 @@ ***************************************************************************/ -//Qt includes -#include <qlayout.h> -#include <qlabel.h> -#include <qvgroupbox.h> -#include <qbutton.h> -#include <qradiobutton.h> -#include <qwhatsthis.h> -#include <qtooltip.h> +//TQt includes +#include <tqlayout.h> +#include <tqlabel.h> +#include <tqvgroupbox.h> +#include <tqbutton.h> +#include <tqradiobutton.h> +#include <tqwhatsthis.h> +#include <tqtooltip.h> //KDE includes #include <kfile.h> @@ -42,49 +42,49 @@ #include "ksystemlogConfig.h" -BootAuthenticationOptions::BootAuthenticationOptions(QWidget *parent) : - QWidget(parent) +BootAuthenticationOptions::BootAuthenticationOptions(TQWidget *tqparent) : + TQWidget(tqparent) { - QVBoxLayout *layout = new QVBoxLayout(this); - layout->setSpacing(10); + TQVBoxLayout *tqlayout = new TQVBoxLayout(this); + tqlayout->setSpacing(10); //Boot log file - QVGroupBox* bootBox=new QVGroupBox(i18n("Boot Log File"), this); + TQVGroupBox* bootBox=new TQVGroupBox(i18n("Boot Log File"), this); - new QLabel(i18n("Boot Log File:"), bootBox); + new TQLabel(i18n("Boot Log File:"), bootBox); bootURLRequester=new KURLRequester(bootBox); bootURLRequester->setMode(KFile::File); - QToolTip::add(bootURLRequester, i18n("<qt>Here, you can type or choose the boot log file (example: <i>/var/log/boot.log</i>).</qt>")); - QWhatsThis::add(bootURLRequester, i18n("<qt>You can type or choose here the boot log file. This file will be analyzed by KSystemLog when you will choose the <b>Boot log</b> menu item. Generally, its name is <i>/var/log/boot.log</i></qt>")); + TQToolTip::add(bootURLRequester, i18n("<qt>Here, you can type or choose the boot log file (example: <i>/var/log/boot.log</i>).</qt>")); + TQWhatsThis::add(bootURLRequester, i18n("<qt>You can type or choose here the boot log file. This file will be analyzed by KSystemLog when you will choose the <b>Boot log</b> menu item. Generally, its name is <i>/var/log/boot.log</i></qt>")); - connect(bootURLRequester, SIGNAL(textChanged(const QString&)), this, SLOT(onOptionsChanged(const QString&))); + connect(bootURLRequester, TQT_SIGNAL(textChanged(const TQString&)), this, TQT_SLOT(onOptionsChanged(const TQString&))); //Authentication log file - QVGroupBox* authenticationBox=new QVGroupBox(i18n("Authentication Log File"), this); + TQVGroupBox* authenticationBox=new TQVGroupBox(i18n("Authentication Log File"), this); - new QLabel(i18n("Authentication Log File:"), authenticationBox); + new TQLabel(i18n("Authentication Log File:"), authenticationBox); authenticationURLRequester=new KURLRequester(authenticationBox); authenticationURLRequester->setMode(KFile::File); - QToolTip::add(authenticationURLRequester, i18n("<qt>Here, you can type or choose the authentication log file (example: <i>/var/log/auth.log</i>).</qt>")); - QWhatsThis::add(authenticationURLRequester, i18n("<qt>You can type or choose here the authentication log file. This file will be analyzed by KSystemLog when you will choose the <b>Authentication log</b> menu item. Generally, its name is <i>/var/log/auth.log</i></qt>")); + TQToolTip::add(authenticationURLRequester, i18n("<qt>Here, you can type or choose the authentication log file (example: <i>/var/log/auth.log</i>).</qt>")); + TQWhatsThis::add(authenticationURLRequester, i18n("<qt>You can type or choose here the authentication log file. This file will be analyzed by KSystemLog when you will choose the <b>Authentication log</b> menu item. Generally, its name is <i>/var/log/auth.log</i></qt>")); - connect(authenticationURLRequester, SIGNAL(textChanged(const QString&)), this, SLOT(onOptionsChanged(const QString&))); + connect(authenticationURLRequester, TQT_SIGNAL(textChanged(const TQString&)), this, TQT_SLOT(onOptionsChanged(const TQString&))); - QSpacerItem* spacer=new QSpacerItem(0, 0, QSizePolicy::Preferred, QSizePolicy::Expanding); + TQSpacerItem* spacer=new TQSpacerItem(0, 0, TQSizePolicy::Preferred, TQSizePolicy::Expanding); - layout->addWidget(bootBox); - layout->addWidget(authenticationBox); - layout->addItem(spacer); + tqlayout->addWidget(bootBox); + tqlayout->addWidget(authenticationBox); + tqlayout->addItem(spacer); readConfig(); } void BootAuthenticationOptions::readConfig() { - QString file=KSystemLogConfig::bootPath(); + TQString file=KSystemLogConfig::bootPath(); bootURLRequester->setURL(file); file=KSystemLogConfig::authenticationPath(); @@ -112,7 +112,7 @@ bool BootAuthenticationOptions::isValid() { } -void BootAuthenticationOptions::onOptionsChanged(const QString& /*text*/) { +void BootAuthenticationOptions::onOptionsChanged(const TQString& /*text*/) { emit optionsChanged(true); } diff --git a/ksystemlog/src/bootauth/bootAuthenticationOptions.h b/ksystemlog/src/bootauth/bootAuthenticationOptions.h index 81d075d..a78b57b 100644 --- a/ksystemlog/src/bootauth/bootAuthenticationOptions.h +++ b/ksystemlog/src/bootauth/bootAuthenticationOptions.h @@ -21,9 +21,9 @@ #ifndef _BOOT_AUTHENTICATION_OPTIONS_H_ #define _BOOT_AUTHENTICATION_OPTIONS_H_ -#include <qframe.h> -#include <qspinbox.h> -#include <qbuttongroup.h> +#include <tqframe.h> +#include <tqspinbox.h> +#include <tqbuttongroup.h> #include <kconfig.h> #include <kdialogbase.h> @@ -34,10 +34,11 @@ -class BootAuthenticationOptions : public QWidget { +class BootAuthenticationOptions : public TQWidget { Q_OBJECT + TQ_OBJECT public: - BootAuthenticationOptions(QWidget *parent = 0); + BootAuthenticationOptions(TQWidget *tqparent = 0); bool isValid(); @@ -49,7 +50,7 @@ class BootAuthenticationOptions : public QWidget { void optionsChanged(bool valid); private slots: - void onOptionsChanged(const QString&); + void onOptionsChanged(const TQString&); private: KURLRequester* bootURLRequester; |