summaryrefslogtreecommitdiffstats
path: root/kmyfirewall/ruleoptionplugins/limit_option/kmfruleoptioneditlimit.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-27 17:52:36 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-27 17:52:36 +0000
commitff419492931de3748936967da36948af7a04d7a0 (patch)
tree31a70be62d3bfb8e405d51e4b256a7210940ffe8 /kmyfirewall/ruleoptionplugins/limit_option/kmfruleoptioneditlimit.cpp
parentf1fd95abe28acef708caac65af44473461d7026c (diff)
downloadkmyfirewall-ff419492931de3748936967da36948af7a04d7a0.tar.gz
kmyfirewall-ff419492931de3748936967da36948af7a04d7a0.zip
TQt4 convert kmyfirewall
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kmyfirewall@1238525 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kmyfirewall/ruleoptionplugins/limit_option/kmfruleoptioneditlimit.cpp')
-rw-r--r--kmyfirewall/ruleoptionplugins/limit_option/kmfruleoptioneditlimit.cpp38
1 files changed, 19 insertions, 19 deletions
diff --git a/kmyfirewall/ruleoptionplugins/limit_option/kmfruleoptioneditlimit.cpp b/kmyfirewall/ruleoptionplugins/limit_option/kmfruleoptioneditlimit.cpp
index 5424591..87537b1 100644
--- a/kmyfirewall/ruleoptionplugins/limit_option/kmfruleoptioneditlimit.cpp
+++ b/kmyfirewall/ruleoptionplugins/limit_option/kmfruleoptioneditlimit.cpp
@@ -25,7 +25,7 @@
// QT includes
-#include <qstring.h>
+#include <tqstring.h>
// KDE includes
#include <kdebug.h>
@@ -37,34 +37,34 @@
#include "kmfruleeditorlimit.h"
namespace KMF {
-KMFRuleOptionEditLimit::KMFRuleOptionEditLimit(QObject *parent, const char *name)
- : KMFRuleOptionEditInterface(parent, name) {
- kdDebug() <<"KMFRuleOptionEditLimit::KMFRuleOptionEditLimit(QObject *parent, const char *name)" << endl;
- kdDebug() << "Parent has Type: " << parent->className() << endl;
+KMFRuleOptionEditLimit::KMFRuleOptionEditLimit(TQObject *tqparent, const char *name)
+ : KMFRuleOptionEditInterface(tqparent, name) {
+ kdDebug() <<"KMFRuleOptionEditLimit::KMFRuleOptionEditLimit(TQObject *tqparent, const char *name)" << endl;
+ kdDebug() << "Parent has Type: " << tqparent->className() << endl;
m_edit = new KMFRuleEditorLimit( 0 , "Edit", 0 );
m_edit->hide();
- connect( m_edit,SIGNAL(sigHideMe() ),
- this,SLOT( slotShowOverview() ) );
+ connect( m_edit,TQT_SIGNAL(sigHideMe() ),
+ this,TQT_SLOT( slotShowOverview() ) );
}
KMFRuleOptionEditLimit::~KMFRuleOptionEditLimit() {}
void KMFRuleOptionEditLimit::slotShowOverview() {
- if ( KMFRuleEditInterface* ruleedit = dynamic_cast<KMFRuleEditInterface*> ( parent() ) ) {
+ if ( KMFRuleEditInterface* ruleedit = dynamic_cast<KMFRuleEditInterface*> ( tqparent() ) ) {
ruleedit->showOverview();
} else {
- kdDebug() << "KMFRuleOptionEditCustom::slotShowOverview(): parent() not of type KMFRuleEditInterface" << endl;
+ kdDebug() << "KMFRuleOptionEditCustom::slotShowOverview(): tqparent() not of type KMFRuleEditInterface" << endl;
}
}
-const QString& KMFRuleOptionEditLimit::optionEditName() const {
- return *( new QString( i18n("Limit Option") ) );
+const TQString& KMFRuleOptionEditLimit::optionEditName() const {
+ return *( new TQString( i18n("Limit Option") ) );
}
-const QString& KMFRuleOptionEditLimit::description() const {
- return *( new QString( i18n("This plugin manages the Limit options of iptables.") ) );
+const TQString& KMFRuleOptionEditLimit::description() const {
+ return *( new TQString( i18n("This plugin manages the Limit options of iptables.") ) );
}
void KMFRuleOptionEditLimit::loadRule( IPTRule* rule ) {
@@ -78,7 +78,7 @@ void KMFRuleOptionEditLimit::loadRule( IPTRule* rule ) {
}
-QWidget* KMFRuleOptionEditLimit::editWidget() {
+TQWidget* KMFRuleOptionEditLimit::editWidget() {
if ( ! m_edit ) {
kdDebug() << "KMFRuleOptionEditLimit::editWidget() - m_edit == 0" << endl;
return 0;
@@ -98,14 +98,14 @@ QWidget* KMFRuleOptionEditLimit::editWidget() {
// KInstance* KMFRuleOptionEditLimitFactory::s_instance = 0L;
// KAboutData* KMFRuleOptionEditLimitFactory::s_about = 0L;
-KMFRuleOptionEditLimitFactory::KMFRuleOptionEditLimitFactory( QObject* parent, const char* name )
- : KLibFactory( parent, name ) {
+KMFRuleOptionEditLimitFactory::KMFRuleOptionEditLimitFactory( TQObject* tqparent, const char* name )
+ : KLibFactory( tqparent, name ) {
// s_instance = new KInstance( "KMFRuleOptionEditLimitFactory" );
}
-QObject* KMFRuleOptionEditLimitFactory::createObject( QObject* parent, const char* name,
- const char*, const QStringList & ) {
- QObject * obj = new KMFRuleOptionEditLimit( parent, name );
+TQObject* KMFRuleOptionEditLimitFactory::createObject( TQObject* tqparent, const char* name,
+ const char*, const TQStringList & ) {
+ TQObject * obj = new KMFRuleOptionEditLimit( tqparent, name );
emit objectCreated( obj );
return obj;
}