diff options
Diffstat (limited to 'src/gui/microselectwidget.cpp')
-rw-r--r-- | src/gui/microselectwidget.cpp | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/src/gui/microselectwidget.cpp b/src/gui/microselectwidget.cpp index 1c4150b..a1af719 100644 --- a/src/gui/microselectwidget.cpp +++ b/src/gui/microselectwidget.cpp @@ -15,15 +15,15 @@ #include <kcombobox.h> #include <klocale.h> -#include <qgroupbox.h> -#include <qlabel.h> -#include <qlayout.h> -#include <qtooltip.h> -#include <qvariant.h> -#include <qwhatsthis.h> - -MicroSelectWidget::MicroSelectWidget( QWidget* parent, const char* name, WFlags ) - : QGroupBox( 4, Qt::Horizontal, i18n("Microprocessor"), parent, name ) +#include <tqgroupbox.h> +#include <tqlabel.h> +#include <tqlayout.h> +#include <tqtooltip.h> +#include <tqvariant.h> +#include <tqwhatsthis.h> + +MicroSelectWidget::MicroSelectWidget( TQWidget* tqparent, const char* name, WFlags ) + : TQGroupBox( 4, Qt::Horizontal, i18n("Microprocessor"), tqparent, name ) { m_allowedAsmSet = AsmInfo::AsmSetAll; m_allowedGpsimSupport = m_allowedFlowCodeSupport = m_allowedMicrobeSupport = MicroInfo::AllSupport; @@ -31,22 +31,22 @@ MicroSelectWidget::MicroSelectWidget( QWidget* parent, const char* name, WFlags if ( !name ) setName( "MicroSelectWidget" ); - m_pMicroFamilyLabel = new QLabel( this, "m_pMicroFamilyLabel" ); + m_pMicroFamilyLabel = new TQLabel( this, "m_pMicroFamilyLabel" ); m_pMicroFamilyLabel->setText( i18n("Family") ); m_pMicroFamily = new KComboBox( FALSE, this, "m_pMicroFamily" ); - m_pMicroFamily->setSizePolicy( QSizePolicy::MinimumExpanding, QSizePolicy::Preferred ); + m_pMicroFamily->tqsetSizePolicy( TQSizePolicy::MinimumExpanding, TQSizePolicy::Preferred ); - m_pMicroLabel = new QLabel( this, "m_pMicroLabel" ); + m_pMicroLabel = new TQLabel( this, "m_pMicroLabel" ); m_pMicroLabel->setText( i18n("Micro") ); m_pMicro = new KComboBox( FALSE, this, "m_pMicro" ); - m_pMicro->setSizePolicy( QSizePolicy::MinimumExpanding, QSizePolicy::Preferred ); + m_pMicro->tqsetSizePolicy( TQSizePolicy::MinimumExpanding, TQSizePolicy::Preferred ); m_pMicro->setEditable( TRUE ); m_pMicro->setAutoCompletion(true); updateFromAllowed(); setMicro("P16F84"); - connect( m_pMicroFamily, SIGNAL(activated(const QString & )), this, SLOT(microFamilyChanged(const QString& )) ); + connect( m_pMicroFamily, TQT_SIGNAL(activated(const TQString & )), this, TQT_SLOT(microFamilyChanged(const TQString& )) ); } @@ -78,7 +78,7 @@ void MicroSelectWidget::setAllowedMicrobeSupport( unsigned allowed ) void MicroSelectWidget::updateFromAllowed() { - QString oldFamily = m_pMicroFamily->currentText(); + TQString oldFamily = m_pMicroFamily->currentText(); m_pMicroFamily->clear(); @@ -95,7 +95,7 @@ void MicroSelectWidget::updateFromAllowed() } -void MicroSelectWidget::setMicro( const QString & id ) +void MicroSelectWidget::setMicro( const TQString & id ) { MicroInfo * info = MicroLibrary::self()->microInfoWithID(id); if (!info) @@ -109,15 +109,15 @@ void MicroSelectWidget::setMicro( const QString & id ) } -QString MicroSelectWidget::micro() const +TQString MicroSelectWidget::micro() const { return m_pMicro->currentText(); } -void MicroSelectWidget::microFamilyChanged( const QString & family ) +void MicroSelectWidget::microFamilyChanged( const TQString & family ) { - QString oldID = m_pMicro->currentText(); + TQString oldID = m_pMicro->currentText(); m_pMicro->clear(); m_pMicro->insertStringList( MicroLibrary::self()->microIDs( AsmInfo::stringToSet(family), m_allowedGpsimSupport, m_allowedFlowCodeSupport, m_allowedMicrobeSupport ) ); |