From eba47f8f0637f451e21348187591e1f1fd58ac74 Mon Sep 17 00:00:00 2001 From: tpearson Date: Mon, 2 Aug 2010 19:23:46 +0000 Subject: TQt conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegraphics@1158446 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kpovmodeler/pmlibraryhandleedit.cpp | 52 ++++++++++++++++++------------------- 1 file changed, 26 insertions(+), 26 deletions(-) (limited to 'kpovmodeler/pmlibraryhandleedit.cpp') diff --git a/kpovmodeler/pmlibraryhandleedit.cpp b/kpovmodeler/pmlibraryhandleedit.cpp index 8c26682d..e991af6e 100644 --- a/kpovmodeler/pmlibraryhandleedit.cpp +++ b/kpovmodeler/pmlibraryhandleedit.cpp @@ -17,13 +17,13 @@ #include "pmlibraryhandleedit.h" -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include #include #include @@ -34,38 +34,38 @@ #include "pmdialogeditbase.h" #include "pmlibraryhandle.h" -QSize PMLibraryHandleEdit::s_size = QSize( 600, 400 ); +TQSize PMLibraryHandleEdit::s_size = TQSize( 600, 400 ); -PMLibraryHandleEdit::PMLibraryHandleEdit( PMLibraryHandle* lib, QWidget* parent, const char* name ) +PMLibraryHandleEdit::PMLibraryHandleEdit( PMLibraryHandle* lib, TQWidget* parent, const char* name ) : KDialogBase( parent, name, true, i18n( "Create Library" ), Ok | Cancel, Ok ) { m_pLibrary = lib; resize( s_size ); - QWidget* page = new QWidget( this ); + TQWidget* page = new TQWidget( this ); setMainWidget( page ); - QVBoxLayout* vl = new QVBoxLayout( page, KDialog::spacingHint( ) ); + TQVBoxLayout* vl = new TQVBoxLayout( page, KDialog::spacingHint( ) ); - QGridLayout* grid = new QGridLayout( vl, 5, 2 ); - QLabel* lbl = new QLabel( i18n( "Name: " ), page ); - m_pNameEdit = new QLineEdit( page ); + TQGridLayout* grid = new TQGridLayout( vl, 5, 2 ); + TQLabel* lbl = new TQLabel( i18n( "Name: " ), page ); + m_pNameEdit = new TQLineEdit( page ); grid->addWidget( lbl, 0, 0 ); grid->addWidget( m_pNameEdit, 0, 1 ); - lbl = new QLabel( i18n( "Author: " ), page ); - m_pAuthorEdit = new QLineEdit( page ); + lbl = new TQLabel( i18n( "Author: " ), page ); + m_pAuthorEdit = new TQLineEdit( page ); grid->addWidget( lbl, 1, 0 ); grid->addWidget( m_pAuthorEdit, 1, 1 ); - lbl = new QLabel( i18n( "Description: " ), page ); - m_pDescriptionEdit = new QTextEdit( page ); + lbl = new TQLabel( i18n( "Description: " ), page ); + m_pDescriptionEdit = new TQTextEdit( page ); m_pDescriptionEdit->setMaximumHeight( 120 ); grid->addWidget( lbl, 2, 0 ); grid->addMultiCellWidget( m_pDescriptionEdit, 2, 3, 1, 1 ); grid->setRowStretch( 3, 1 ); - m_pReadOnlyEdit = new QCheckBox( i18n( "Allow changes to the library?" ), page ); + m_pReadOnlyEdit = new TQCheckBox( i18n( "Allow changes to the library?" ), page ); grid->addMultiCellWidget( m_pReadOnlyEdit, 4, 4, 0, 1 ); // Load the fields with values @@ -75,10 +75,10 @@ PMLibraryHandleEdit::PMLibraryHandleEdit( PMLibraryHandle* lib, QWidget* parent, m_pReadOnlyEdit->setChecked( !lib->isReadOnly( ) ); // Setup the signals - connect( m_pNameEdit, SIGNAL( textChanged( const QString& ) ), SLOT( slotEditsChanged( const QString& ) ) ); - connect( m_pAuthorEdit, SIGNAL( textChanged( const QString& ) ), SLOT( slotEditsChanged( const QString& ) ) ); - connect( m_pDescriptionEdit, SIGNAL( textChanged( ) ), SLOT( slotDescriptionChanged( ) ) ); - connect( m_pReadOnlyEdit, SIGNAL( clicked( ) ), SLOT( slotReadOnlyChanged( ) ) ); + connect( m_pNameEdit, TQT_SIGNAL( textChanged( const TQString& ) ), TQT_SLOT( slotEditsChanged( const TQString& ) ) ); + connect( m_pAuthorEdit, TQT_SIGNAL( textChanged( const TQString& ) ), TQT_SLOT( slotEditsChanged( const TQString& ) ) ); + connect( m_pDescriptionEdit, TQT_SIGNAL( textChanged( ) ), TQT_SLOT( slotDescriptionChanged( ) ) ); + connect( m_pReadOnlyEdit, TQT_SIGNAL( clicked( ) ), TQT_SLOT( slotReadOnlyChanged( ) ) ); // On startup you can only cancel enableButtonOK( false ); @@ -89,7 +89,7 @@ void PMLibraryHandleEdit::slotReadOnlyChanged( ) enableButtonOK( true ); } -void PMLibraryHandleEdit::slotEditsChanged( const QString& /*str*/ ) +void PMLibraryHandleEdit::slotEditsChanged( const TQString& /*str*/ ) { enableButtonOK( true ); } @@ -109,11 +109,11 @@ void PMLibraryHandleEdit::restoreConfig( KConfig* cfg ) { cfg->setGroup( "Appearance" ); - QSize defaultSize( 300, 200 ); + TQSize defaultSize( 300, 200 ); s_size = cfg->readSizeEntry( "LibraryHandleEditSize", &defaultSize ); } -void PMLibraryHandleEdit::resizeEvent( QResizeEvent* ev ) +void PMLibraryHandleEdit::resizeEvent( TQResizeEvent* ev ) { s_size = ev->size( ); } -- cgit v1.2.3