diff options
Diffstat (limited to 'src/combobutton.cpp')
-rwxr-xr-x | src/combobutton.cpp | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/src/combobutton.cpp b/src/combobutton.cpp index ff5d758..edf4780 100755 --- a/src/combobutton.cpp +++ b/src/combobutton.cpp @@ -1,32 +1,32 @@ #include "combobutton.h" -#include <qlayout.h> -#include <qstring.h> -#include <qpixmap.h> -#include <qstyle.h> +#include <tqlayout.h> +#include <tqstring.h> +#include <tqpixmap.h> +#include <tqstyle.h> #include <kpushbutton.h> #include <kcombobox.h> -ComboButton::ComboButton( QWidget *parent, const char *name ) - : QWidget( parent, name ) +ComboButton::ComboButton( TQWidget *tqparent, const char *name ) + : TQWidget( tqparent, name ) { m_increaseHeight = 0; - QGridLayout *grid = new QGridLayout( this, 1, 1 ); + TQGridLayout *grid = new TQGridLayout( this, 1, 1 ); m_box = new KComboBox(this); grid->addWidget(m_box,0,0); - connect( m_box, SIGNAL(activated(int)), - this, SLOT(boxActivated(int)) + connect( m_box, TQT_SIGNAL(activated(int)), + this, TQT_SLOT(boxActivated(int)) ); - m_button = new KPushButton( QString::null, this, "pushbutton" ); + m_button = new KPushButton( TQString(), this, "pushbutton" ); grid->addWidget( m_button, 0, 0 ); - connect( m_button, SIGNAL(clicked()), - this, SLOT(buttonClicked()) + connect( m_button, TQT_SIGNAL(clicked()), + this, TQT_SLOT(buttonClicked()) ); m_sizeMode = Max; @@ -43,17 +43,17 @@ void ComboButton::balanceSize() int width; if( m_sizeMode == Max ) - width = m_box->sizeHint().width()-17; + width = m_box->tqsizeHint().width()-17; else - width = m_button->sizeHint().width(); + width = m_button->tqsizeHint().width(); - int height = ( m_box->sizeHint().height() > m_button->sizeHint().height() ) ? m_box->sizeHint().height() : m_button->sizeHint().height(); + int height = ( m_box->tqsizeHint().height() > m_button->tqsizeHint().height() ) ? m_box->tqsizeHint().height() : m_button->tqsizeHint().height(); m_box->setFixedSize( width+17, height+m_increaseHeight ); m_button->setFixedSize( width, height+m_increaseHeight ); } -void ComboButton::repaintButton() +void ComboButton::tqrepaintButton() { m_button->setText( m_box->currentText() ); if(m_box->pixmap( m_box->currentItem()) ) @@ -61,16 +61,16 @@ void ComboButton::repaintButton() balanceSize(); } -void ComboButton::insertItem( const QString &text, int index ) +void ComboButton::insertItem( const TQString &text, int index ) { m_box->insertItem( text, index ); - repaintButton(); + tqrepaintButton(); } -void ComboButton::insertItem( const QPixmap &pixmap, const QString &text, int index ) +void ComboButton::insertItem( const TQPixmap &pixmap, const TQString &text, int index ) { m_box->insertItem( pixmap, text, index ); - repaintButton(); + tqrepaintButton(); } void ComboButton::increaseHeight( int height ) @@ -81,7 +81,7 @@ void ComboButton::increaseHeight( int height ) void ComboButton::boxActivated( int index ) { - repaintButton(); + tqrepaintButton(); emit clicked( index ); } @@ -101,13 +101,13 @@ int ComboButton::sizeMode() return m_sizeMode; } -void ComboButton::setFont( const QFont& font ) +void ComboButton::setFont( const TQFont& font ) { m_button->setFont( font ); m_box->setFont( font ); } -QFont ComboButton::font() +TQFont ComboButton::font() { return m_button->font(); } |