diff options
Diffstat (limited to 'kmyfirewall/ruleoptionplugins/interface_option/kmfruleeditorinterface.cpp')
-rw-r--r-- | kmyfirewall/ruleoptionplugins/interface_option/kmfruleeditorinterface.cpp | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/kmyfirewall/ruleoptionplugins/interface_option/kmfruleeditorinterface.cpp b/kmyfirewall/ruleoptionplugins/interface_option/kmfruleeditorinterface.cpp index 9b8ee73..0c808c8 100644 --- a/kmyfirewall/ruleoptionplugins/interface_option/kmfruleeditorinterface.cpp +++ b/kmyfirewall/ruleoptionplugins/interface_option/kmfruleeditorinterface.cpp @@ -15,12 +15,12 @@ #include "kmfruleeditorinterface.h" // QT includes -#include <qstring.h> -#include <qstringlist.h> -#include <qcheckbox.h> -#include <qmessagebox.h> -#include <qcombobox.h> -#include <qgroupbox.h> +#include <tqstring.h> +#include <tqstringlist.h> +#include <tqcheckbox.h> +#include <tqmessagebox.h> +#include <tqcombobox.h> +#include <tqgroupbox.h> // KDE includes #include <kcombobox.h> @@ -42,7 +42,7 @@ #include "../../core/kmfundoengine.h" #include "../../core/xmlnames.h" namespace KMF { -KMFRuleEditorInterface::KMFRuleEditorInterface( QWidget *parent, const char *name, WFlags fl /*,IPTRule* cr */ ) : KMyFirewallRuleEditorInterface( parent, name, fl ) { +KMFRuleEditorInterface::KMFRuleEditorInterface( TQWidget *tqparent, const char *name, WFlags fl /*,IPTRule* cr */ ) : KMyFirewallRuleEditorInterface( tqparent, name, fl ) { } KMFRuleEditorInterface::~KMFRuleEditorInterface() {} @@ -60,9 +60,9 @@ void KMFRuleEditorInterface::loadRule( IPTRule * rule ) { IPTRuleOption* opt = 0; opt = m_rule->getOptionForName("interface_opt"); if ( opt ) { - QStringList vals = opt->getValues(); - QString in = *vals.at(0); - QString out = *vals.at(1); + TQStringList vals = opt->getValues(); + TQString in = *vals.at(0); + TQString out = *vals.at(1); if ( ! in.isEmpty() && in != XML::Undefined_Value && in != XML::BoolOff_Value ) { c_in_int->setChecked( true ); if ( in.startsWith( "! " ) ) { @@ -93,23 +93,23 @@ void KMFRuleEditorInterface::loadRule( IPTRule * rule ) { /** No descriptions */ void KMFRuleEditorInterface::slotOk() { - // KMyFirewallRuleEditor* ed = (KMyFirewallRuleEditor*)parentWidget(); + // KMyFirewallRuleEditor* ed = (KMyFirewallRuleEditor*)tqparentWidget(); KMFUndoEngine::instance()->startTransaction( m_rule, - i18n("Edit Rule: %1 Interface Option").arg( m_rule->name() ) + i18n("Edit Rule: %1 Interface Option").tqarg( m_rule->name() ) ); - QString out = cb_out_int->currentText(); - QString in = cb_in_int->currentText(); - QString* option_name = new QString( "interface_opt" ); - QPtrList<QString>* args = new QPtrList<QString>; + TQString out = cb_out_int->currentText(); + TQString in = cb_in_int->currentText(); + TQString* option_name = new TQString( "interface_opt" ); + TQPtrList<TQString>* args = new TQPtrList<TQString>; if ( c_in_int->isChecked() && !in.isEmpty() ) { bool inv = c_inv_in_int->isChecked(); if ( inv ) { in.prepend( "! " ); } - QString* opt = new QString( in ); + TQString* opt = new TQString( in ); args->append( opt ); } if ( c_out_int->isChecked() && !out.isEmpty() ) { @@ -117,12 +117,12 @@ void KMFRuleEditorInterface::slotOk() { if ( inv ) { out.prepend( "! " ); } - QString* opt = new QString( out ); + TQString* opt = new TQString( out ); args->append( opt ); } while ( args->count() < 2 ) { - args->append( new QString( XML::BoolOff_Value ) ); + args->append( new TQString( XML::BoolOff_Value ) ); } m_rule->addRuleOption( *option_name, *args ); |