summaryrefslogtreecommitdiffstats
path: root/kmyfirewall/kmfwidgets/kmfselectactivetarget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kmyfirewall/kmfwidgets/kmfselectactivetarget.cpp')
-rw-r--r--kmyfirewall/kmfwidgets/kmfselectactivetarget.cpp74
1 files changed, 37 insertions, 37 deletions
diff --git a/kmyfirewall/kmfwidgets/kmfselectactivetarget.cpp b/kmyfirewall/kmfwidgets/kmfselectactivetarget.cpp
index 7802541..7e0b250 100644
--- a/kmyfirewall/kmfwidgets/kmfselectactivetarget.cpp
+++ b/kmyfirewall/kmfwidgets/kmfselectactivetarget.cpp
@@ -14,22 +14,22 @@
#include "kmfselectactivetarget.h"
// QT includes
-#include <qstring.h>
-#include <qcheckbox.h>
-#include <qfile.h>
-#include <qdir.h>
-#include <qdom.h>
-#include <qstring.h>
-#include <qstringlist.h>
-#include <qlistview.h>
-#include <qradiobutton.h>
-#include <qpushbutton.h>
-#include <qlineedit.h>
-#include <qtextedit.h>
-#include <qlabel.h>
-#include <qbuttongroup.h>
-#include <qgroupbox.h>
-#include <qspinbox.h>
+#include <tqstring.h>
+#include <tqcheckbox.h>
+#include <tqfile.h>
+#include <tqdir.h>
+#include <tqdom.h>
+#include <tqstring.h>
+#include <tqstringlist.h>
+#include <tqlistview.h>
+#include <tqradiobutton.h>
+#include <tqpushbutton.h>
+#include <tqlineedit.h>
+#include <tqtextedit.h>
+#include <tqlabel.h>
+#include <tqbuttongroup.h>
+#include <tqgroupbox.h>
+#include <tqspinbox.h>
// KDE includes
#include <klocale.h>
@@ -57,9 +57,9 @@
//##### static stuff
namespace KMF {
-KMFTarget * KMFSelectActiveTarget::selectTarget( KMFNetwork* network, const QString& msg ) {
- kdDebug() << "KMFTarget * KMFSelectActiveTarget::selectTarget( KMFNetwork* network, const QString& " << msg << " )" << endl;
- QPtrList<KMFTarget> *list = new QPtrList<KMFTarget>;
+KMFTarget * KMFSelectActiveTarget::selectTarget( KMFNetwork* network, const TQString& msg ) {
+ kdDebug() << "KMFTarget * KMFSelectActiveTarget::selectTarget( KMFNetwork* network, const TQString& " << msg << " )" << endl;
+ TQPtrList<KMFTarget> *list = new TQPtrList<KMFTarget>;
network->netzone()->getAllTargets( network->netzone(), list );
if ( list->count() == 1 ) {
return network->currentTarget();
@@ -68,7 +68,7 @@ KMFTarget * KMFSelectActiveTarget::selectTarget( KMFNetwork* network, const QStr
KMFSelectActiveTarget *selTG = new KMFSelectActiveTarget( 0, "KMFSelectActiveTarget",
- QWidget::WType_Dialog | QWidget::WShowModal
+ TQWidget::WType_Dialog | TQWidget::WShowModal
);
selTG->setMessage( msg );
selTG->loadNetwork( network );
@@ -84,21 +84,21 @@ KMFTarget * KMFSelectActiveTarget::selectTarget( KMFNetwork* network, const QStr
//##### end static
-KMFSelectActiveTarget::KMFSelectActiveTarget ( QWidget* parent, const char* name, bool modal, WFlags fl )
- : KMyFirewallSelectActiveTarget ( parent,name,modal,fl )
+KMFSelectActiveTarget::KMFSelectActiveTarget ( TQWidget* tqparent, const char* name, bool modal, WFlags fl )
+ : KMyFirewallSelectActiveTarget ( tqparent,name,modal,fl )
{
m_cmd_ok->setEnabled( false );
- connect( m_lv_zones, SIGNAL( pressed( QListViewItem* ) ) ,
- this, SLOT( slotNewItemSelected( QListViewItem* ) ) );
+ connect( m_lv_zones, TQT_SIGNAL( pressed( TQListViewItem* ) ) ,
+ this, TQT_SLOT( slotNewItemSelected( TQListViewItem* ) ) );
- connect( m_lv_zones, SIGNAL( doubleClicked ( QListViewItem *, const QPoint &, int ) ) ,
- this, SLOT( slotNewItemDBLClicked( QListViewItem*, const QPoint &, int ) ) );
+ connect( m_lv_zones, TQT_SIGNAL( doubleClicked ( TQListViewItem *, const TQPoint &, int ) ) ,
+ this, TQT_SLOT( slotNewItemDBLClicked( TQListViewItem*, const TQPoint &, int ) ) );
- connect( m_cmd_cancel, SIGNAL( clicked() ) ,
- this, SLOT( slotCancel() ) );
- connect( m_cmd_ok, SIGNAL( clicked() ) ,
- this, SLOT( slotOk() ) );
+ connect( m_cmd_cancel, TQT_SIGNAL( clicked() ) ,
+ this, TQT_SLOT( slotCancel() ) );
+ connect( m_cmd_ok, TQT_SIGNAL( clicked() ) ,
+ this, TQT_SLOT( slotOk() ) );
adjustSize();
}
@@ -119,8 +119,8 @@ void KMFSelectActiveTarget::loadNetwork( KMFNetwork* net ) {
KMFListViewItem *it = new KMFListViewItem( m_lv_zones, 0, m_network->netzone() );
it->setupZoneView();
}
-void KMFSelectActiveTarget::setMessage( const QString& msg ) {
- kdDebug() << "KMFSelectActiveTarget::setMessage( const QString& )" << endl;
+void KMFSelectActiveTarget::setMessage( const TQString& msg ) {
+ kdDebug() << "KMFSelectActiveTarget::setMessage( const TQString& )" << endl;
m_lbl_message->setText( msg );
}
void KMFSelectActiveTarget::slotTargetSelected() {
@@ -129,15 +129,15 @@ void KMFSelectActiveTarget::slotTargetSelected() {
}
-void KMFSelectActiveTarget::slotNewItemDBLClicked( QListViewItem* item, const QPoint &, int ) {
+void KMFSelectActiveTarget::slotNewItemDBLClicked( TQListViewItem* item, const TQPoint &, int ) {
slotNewItemSelected( item );
if ( m_target ) {
slotOk();
}
}
-void KMFSelectActiveTarget::slotNewItemSelected( QListViewItem* item ) {
- kdDebug() << "void KMFMyNetworkWidget::slotNewItemSelected( QListViewItem* item )" << endl;
+void KMFSelectActiveTarget::slotNewItemSelected( TQListViewItem* item ) {
+ kdDebug() << "void KMFMyNetworkWidget::slotNewItemSelected( TQListViewItem* item )" << endl;
if ( ! item )
return ;
m_target = 0;
@@ -172,11 +172,11 @@ void KMFSelectActiveTarget::slotNewItemSelected( QListViewItem* item ) {
void KMFSelectActiveTarget::slotCancel() {
kdDebug() << "KMFSelectActiveTarget::slotCancel()" << endl;
m_target = 0;
- QDialog::reject();
+ TQDialog::reject();
}
void KMFSelectActiveTarget::slotOk() {
kdDebug() << "KMFSelectActiveTarget::slotOk()" << endl;
- QDialog::accept();
+ TQDialog::accept();
}
KMFTarget *KMFSelectActiveTarget::selectedTarget() {