diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-27 17:52:36 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-27 17:52:36 +0000 |
commit | ff419492931de3748936967da36948af7a04d7a0 (patch) | |
tree | 31a70be62d3bfb8e405d51e4b256a7210940ffe8 /KMFSysTray/mainwidget.cpp | |
parent | f1fd95abe28acef708caac65af44473461d7026c (diff) | |
download | kmyfirewall-ff419492.tar.gz kmyfirewall-ff419492.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 'KMFSysTray/mainwidget.cpp')
-rw-r--r-- | KMFSysTray/mainwidget.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/KMFSysTray/mainwidget.cpp b/KMFSysTray/mainwidget.cpp index 5eeded9..37fb869 100644 --- a/KMFSysTray/mainwidget.cpp +++ b/KMFSysTray/mainwidget.cpp @@ -22,9 +22,9 @@ #include "mainwidget.h" // QT includes -#include <qcolor.h> -#include <qpushbutton.h> -#include <qwidget.h> +#include <tqcolor.h> +#include <tqpushbutton.h> +#include <tqwidget.h> // KDE includes #include <kled.h> @@ -33,29 +33,29 @@ // Project Includes #include "details.h" -MainWidget::MainWidget(QWidget* parent, const char* name, WFlags fl) -: MainWidgetDesigner(parent,name,fl) +MainWidget::MainWidget(TQWidget* tqparent, const char* name, WFlags fl) +: MainWidgetDesigner(tqparent,name,fl) { m_ledActive->off(); m_cmd_info->setEnabled( false ); m_wid_details = new Details( 0 ); - connect( m_wid_details, SIGNAL( closing() ), this, SLOT ( slotDetailsClosed() ) ); - connect( this, SIGNAL( sigUpdateRuleCount( const QString&, const QString&, int ) ), - m_wid_details, SLOT( slotUpdateRuleCount( const QString&, const QString&, int ) ) ); - connect( m_cmd_info, SIGNAL( clicked() ), this, SLOT( slotShowDetails() ) ) ; + connect( m_wid_details, TQT_SIGNAL( closing() ), this, TQT_SLOT ( slotDetailsClosed() ) ); + connect( this, TQT_SIGNAL( sigUpdateRuleCount( const TQString&, const TQString&, int ) ), + m_wid_details, TQT_SLOT( slotUpdateRuleCount( const TQString&, const TQString&, int ) ) ); + connect( m_cmd_info, TQT_SIGNAL( clicked() ), this, TQT_SLOT( slotShowDetails() ) ) ; } MainWidget::~MainWidget() { } -void MainWidget::slotSetRunningStatus( bool on ) { +void MainWidget::slotSetRunningtqStatus( bool on ) { m_ledActive->on(); m_cmd_info->setEnabled( on ); if ( on ) { - m_ledActive -> setColor( QColor(0, 255, 0) ); + m_ledActive -> setColor( TQColor(0, 255, 0) ); } else { - m_ledActive -> setColor( QColor(255, 0, 0) ); + m_ledActive -> setColor( TQColor(255, 0, 0) ); } } |