diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-08-02 19:23:46 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-08-02 19:23:46 +0000 |
commit | eba47f8f0637f451e21348187591e1f1fd58ac74 (patch) | |
tree | 448f10b95c656604acc331a3236c1e59bde5c1ad /kpovmodeler/pmcoloredit.cpp | |
parent | c7e8736c69373f48b0401319757c742e8607431a (diff) | |
download | tdegraphics-eba47f8f0637f451e21348187591e1f1fd58ac74.tar.gz tdegraphics-eba47f8f0637f451e21348187591e1f1fd58ac74.zip |
TQt conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegraphics@1158446 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kpovmodeler/pmcoloredit.cpp')
-rw-r--r-- | kpovmodeler/pmcoloredit.cpp | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/kpovmodeler/pmcoloredit.cpp b/kpovmodeler/pmcoloredit.cpp index 06ac4d0f..9695f9eb 100644 --- a/kpovmodeler/pmcoloredit.cpp +++ b/kpovmodeler/pmcoloredit.cpp @@ -19,13 +19,13 @@ #include "pmlineedits.h" #include <kcolorbutton.h> #include <klocale.h> -#include <qlabel.h> -#include <qlayout.h> -#include <qcolor.h> +#include <tqlabel.h> +#include <tqlayout.h> +#include <tqcolor.h> #include <kdialog.h> -PMColorEdit::PMColorEdit( bool filterAndTransmit, QWidget* parent, const char* name ) - : QWidget( parent, name ) +PMColorEdit::PMColorEdit( bool filterAndTransmit, TQWidget* parent, const char* name ) + : TQWidget( parent, name ) { m_bFilterAndTransmit = filterAndTransmit; @@ -44,35 +44,35 @@ PMColorEdit::PMColorEdit( bool filterAndTransmit, QWidget* parent, const char* n } m_pButton = new KColorButton( this ); - QVBoxLayout* topLayout = new QVBoxLayout( this, 0, KDialog::spacingHint( ) ); - QHBoxLayout* l = new QHBoxLayout( topLayout ); + TQVBoxLayout* topLayout = new TQVBoxLayout( this, 0, KDialog::spacingHint( ) ); + TQHBoxLayout* l = new TQHBoxLayout( topLayout ); l->addWidget( m_pButton ); - l = new QHBoxLayout( topLayout ); - l->addWidget( new QLabel( i18n( "red:" ), this ) ); + l = new TQHBoxLayout( topLayout ); + l->addWidget( new TQLabel( i18n( "red:" ), this ) ); l->addWidget( m_edits[0] ); - l->addWidget( new QLabel( i18n( "green:" ), this ) ); + l->addWidget( new TQLabel( i18n( "green:" ), this ) ); l->addWidget( m_edits[1] ); - l->addWidget( new QLabel( i18n( "blue:" ), this ) ); + l->addWidget( new TQLabel( i18n( "blue:" ), this ) ); l->addWidget( m_edits[2] ); if( filterAndTransmit ) { - l = new QHBoxLayout( topLayout ); - l->addWidget( new QLabel( i18n( "filter" ), this ) ); + l = new TQHBoxLayout( topLayout ); + l->addWidget( new TQLabel( i18n( "filter" ), this ) ); l->addWidget( m_edits[3] ); - l->addWidget( new QLabel( i18n( "transmit" ), this ) ); + l->addWidget( new TQLabel( i18n( "transmit" ), this ) ); l->addWidget( m_edits[4] ); } - connect( m_edits[0], SIGNAL( dataChanged( ) ), SLOT( slotEditChanged( ) ) ); - connect( m_edits[1], SIGNAL( dataChanged( ) ), SLOT( slotEditChanged( ) ) ); - connect( m_edits[2], SIGNAL( dataChanged( ) ), SLOT( slotEditChanged( ) ) ); + connect( m_edits[0], TQT_SIGNAL( dataChanged( ) ), TQT_SLOT( slotEditChanged( ) ) ); + connect( m_edits[1], TQT_SIGNAL( dataChanged( ) ), TQT_SLOT( slotEditChanged( ) ) ); + connect( m_edits[2], TQT_SIGNAL( dataChanged( ) ), TQT_SLOT( slotEditChanged( ) ) ); if( filterAndTransmit ) { - connect( m_edits[3], SIGNAL( dataChanged( ) ), SLOT( slotEditChanged( ) ) ); - connect( m_edits[4], SIGNAL( dataChanged( ) ), SLOT( slotEditChanged( ) ) ); + connect( m_edits[3], TQT_SIGNAL( dataChanged( ) ), TQT_SLOT( slotEditChanged( ) ) ); + connect( m_edits[4], TQT_SIGNAL( dataChanged( ) ), TQT_SLOT( slotEditChanged( ) ) ); } - connect( m_pButton, SIGNAL( changed( const QColor& ) ), - SLOT( slotColorChanged( const QColor& ) ) ); + connect( m_pButton, TQT_SIGNAL( changed( const TQColor& ) ), + TQT_SLOT( slotColorChanged( const TQColor& ) ) ); } void PMColorEdit::setColor( const PMColor& c ) @@ -141,7 +141,7 @@ void PMColorEdit::setReadOnly( bool yes ) m_pButton->setEnabled( !yes ); } -void PMColorEdit::slotColorChanged( const QColor& c ) +void PMColorEdit::slotColorChanged( const TQColor& c ) { int i; bool blocked[3]; |