summaryrefslogtreecommitdiffstats
path: root/kpovmodeler/pmlinkedit.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-08-02 19:23:46 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-08-02 19:23:46 +0000
commiteba47f8f0637f451e21348187591e1f1fd58ac74 (patch)
tree448f10b95c656604acc331a3236c1e59bde5c1ad /kpovmodeler/pmlinkedit.cpp
parentc7e8736c69373f48b0401319757c742e8607431a (diff)
downloadtdegraphics-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/pmlinkedit.cpp')
-rw-r--r--kpovmodeler/pmlinkedit.cpp42
1 files changed, 21 insertions, 21 deletions
diff --git a/kpovmodeler/pmlinkedit.cpp b/kpovmodeler/pmlinkedit.cpp
index a878e02e..8ebca5c6 100644
--- a/kpovmodeler/pmlinkedit.cpp
+++ b/kpovmodeler/pmlinkedit.cpp
@@ -16,9 +16,9 @@
**************************************************************************/
#include "pmlinkedit.h"
-#include <qlineedit.h>
-#include <qlabel.h>
-#include <qlayout.h>
+#include <tqlineedit.h>
+#include <tqlabel.h>
+#include <tqlayout.h>
#include <klocale.h>
#include <kdialog.h>
#include <kpushbutton.h>
@@ -27,24 +27,24 @@
#include "pmdeclare.h"
#include "pmobjectselect.h"
-PMLinkEdit::PMLinkEdit( const QString& declareType,
- QWidget* parent, const char* name )
- : QWidget( parent, name )
+PMLinkEdit::PMLinkEdit( const TQString& declareType,
+ TQWidget* parent, const char* name )
+ : TQWidget( parent, name )
{
m_declareTypes.append( declareType );
init( );
}
-PMLinkEdit::PMLinkEdit( const QStringList& declareTypes,
- QWidget* parent, const char* name )
- : QWidget( parent, name )
+PMLinkEdit::PMLinkEdit( const TQStringList& declareTypes,
+ TQWidget* parent, const char* name )
+ : TQWidget( parent, name )
{
m_declareTypes = declareTypes;
init( );
}
-PMLinkEdit::PMLinkEdit( QWidget* parent, const char* name )
- : QWidget( parent, name )
+PMLinkEdit::PMLinkEdit( TQWidget* parent, const char* name )
+ : TQWidget( parent, name )
{
init( );
}
@@ -55,24 +55,24 @@ void PMLinkEdit::init( )
m_pDisplayedObject = 0;
m_bReadOnly = false;
- QGridLayout* grid = new QGridLayout( this, 2, 2, 0, KDialog::spacingHint( ) );
+ TQGridLayout* grid = new TQGridLayout( this, 2, 2, 0, KDialog::spacingHint( ) );
- grid->addWidget( new QLabel( i18n( "Prototype:" ), this ), 0, 0 );
+ grid->addWidget( new TQLabel( i18n( "Prototype:" ), this ), 0, 0 );
grid->setColStretch( 0, 0 );
grid->setColStretch( 1, 1 );
- m_pIDEdit = new QLineEdit( this );
+ m_pIDEdit = new TQLineEdit( this );
m_pIDEdit->setReadOnly( true );
grid->addWidget( m_pIDEdit, 0, 1 );
- QHBoxLayout* layout = new QHBoxLayout( );
+ TQHBoxLayout* layout = new TQHBoxLayout( );
grid->addLayout( layout, 1, 1 );
- m_pSelectButton = new QPushButton( i18n( "Select..." ), this );
+ m_pSelectButton = new TQPushButton( i18n( "Select..." ), this );
layout->addWidget( m_pSelectButton );
m_pClearButton = new KPushButton( KStdGuiItem::clear(), this );
layout->addWidget( m_pClearButton );
- connect( m_pSelectButton, SIGNAL( clicked( ) ), SLOT( slotSelectClicked( ) ) );
- connect( m_pClearButton, SIGNAL( clicked( ) ), SLOT( slotClearClicked( ) ) );
+ connect( m_pSelectButton, TQT_SIGNAL( clicked( ) ), TQT_SLOT( slotSelectClicked( ) ) );
+ connect( m_pClearButton, TQT_SIGNAL( clicked( ) ), TQT_SLOT( slotClearClicked( ) ) );
}
void PMLinkEdit::setDisplayedObject( PMObject* obj )
@@ -93,14 +93,14 @@ void PMLinkEdit::setDisplayedObject( PMObject* obj )
}
}
-void PMLinkEdit::setLinkPossibility( const QString& t )
+void PMLinkEdit::setLinkPossibility( const TQString& t )
{
m_declareTypes.clear( );
m_declareTypes.append( t );
}
-void PMLinkEdit::setLinkPossibilities( const QStringList& t )
+void PMLinkEdit::setLinkPossibilities( const TQStringList& t )
{
m_declareTypes = t;
}
@@ -126,7 +126,7 @@ void PMLinkEdit::slotSelectClicked( )
result = PMObjectSelect::selectDeclare(
m_pDisplayedObject, m_declareTypes, obj, this );
- if( ( result == QDialog::Accepted ) && obj )
+ if( ( result == TQDialog::Accepted ) && obj )
{
m_pDeclare = ( PMDeclare* ) obj;
m_pIDEdit->setText( m_pDeclare->id( ) );