From 4ae0c208b66e0f7954e194384464fe2d0a2c56dd Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:51:49 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdesdk@1157652 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kompare/libdialogpages/filespage.cpp | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) (limited to 'kompare/libdialogpages/filespage.cpp') diff --git a/kompare/libdialogpages/filespage.cpp b/kompare/libdialogpages/filespage.cpp index 9e15a129..f326bbde 100644 --- a/kompare/libdialogpages/filespage.cpp +++ b/kompare/libdialogpages/filespage.cpp @@ -16,8 +16,8 @@ ** ***************************************************************************/ -#include -#include +#include +#include #include #include @@ -31,27 +31,27 @@ #include "filessettings.h" #include "filespage.h" -FilesPage::FilesPage( QWidget* parent ) : PageBase( parent ), m_URLChanged( false ) +FilesPage::FilesPage( TQWidget* parent ) : PageBase( parent ), m_URLChanged( false ) { - QWidget* page = new QWidget( this ); - QVBoxLayout* layout = new QVBoxLayout( page ); + TQWidget* page = new TQWidget( this ); + TQVBoxLayout* layout = new TQVBoxLayout( page ); layout->setSpacing( KDialog::spacingHint() ); layout->setMargin( KDialog::marginHint() ); - m_firstGB = new QGroupBox( 1, Qt::Vertical, "You have to set this moron :)", page ); + m_firstGB = new TQGroupBox( 1, Qt::Vertical, "You have to set this moron :)", page ); m_firstURLComboBox = new KURLComboBox( KURLComboBox::Both, true, m_firstGB, "SourceURLComboBox" ); m_firstURLRequester = new KURLRequester( m_firstURLComboBox, m_firstGB ); m_firstURLRequester->setFocus(); - m_secondGB = new QGroupBox( 1, Qt::Vertical, "This too moron !", page ); + m_secondGB = new TQGroupBox( 1, Qt::Vertical, "This too moron !", page ); m_secondURLComboBox = new KURLComboBox( KURLComboBox::Both, true, m_secondGB, "DestURLComboBox" ); m_secondURLRequester = new KURLRequester( m_secondURLComboBox, m_secondGB ); - connect( m_firstURLRequester, SIGNAL( urlSelected( const QString & ) ), SLOT( setSecondURL( const QString & ) ) ); - connect( m_secondURLRequester, SIGNAL( urlSelected( const QString & ) ), SLOT( setFirstURL( const QString & ) ) ); + connect( m_firstURLRequester, TQT_SIGNAL( urlSelected( const TQString & ) ), TQT_SLOT( setSecondURL( const TQString & ) ) ); + connect( m_secondURLRequester, TQT_SIGNAL( urlSelected( const TQString & ) ), TQT_SLOT( setFirstURL( const TQString & ) ) ); - m_thirdGB = new QGroupBox( 1, Qt::Vertical, i18n( "Encoding" ), page ); - m_encodingComboBox = new QComboBox( false, m_thirdGB, "encoding_combobox" ); + m_thirdGB = new TQGroupBox( 1, Qt::Vertical, i18n( "Encoding" ), page ); + m_encodingComboBox = new TQComboBox( false, m_thirdGB, "encoding_combobox" ); m_encodingComboBox->insertStringList( KGlobal::charsets()->availableEncodingNames() ); layout->addWidget( m_firstGB ); @@ -79,17 +79,17 @@ KURLRequester* FilesPage::secondURLRequester() const return m_secondURLRequester; } -QString FilesPage::encoding() const +TQString FilesPage::encoding() const { return m_encodingComboBox->currentText(); } -void FilesPage::setFirstGroupBoxTitle( const QString& title ) +void FilesPage::setFirstGroupBoxTitle( const TQString& title ) { m_firstGB->setTitle( title ); } -void FilesPage::setSecondGroupBoxTitle( const QString& title ) +void FilesPage::setSecondGroupBoxTitle( const TQString& title ) { m_secondGB->setTitle( title ); } @@ -147,9 +147,9 @@ void FilesPage::setDefaults() m_encodingComboBox->setCurrentText( "Default" ); } -void FilesPage::setFirstURL( const QString &url ) +void FilesPage::setFirstURL( const TQString &url ) { - QString _url = url; + TQString _url = url; if ( !m_URLChanged ) { m_firstURLRequester->setURL( _url.remove( url.section( '/', -1 ) ) ); @@ -157,9 +157,9 @@ void FilesPage::setFirstURL( const QString &url ) } } -void FilesPage::setSecondURL( const QString &url ) +void FilesPage::setSecondURL( const TQString &url ) { - QString _url = url; + TQString _url = url; if ( !m_URLChanged ) { m_secondURLRequester->setURL( _url.remove( url.section( '/', -1 ) ) ); -- cgit v1.2.1