summaryrefslogtreecommitdiffstats
path: root/kompare/libdialogpages/filespage.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kompare/libdialogpages/filespage.cpp')
-rw-r--r--kompare/libdialogpages/filespage.cpp36
1 files changed, 18 insertions, 18 deletions
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 <qlayout.h>
-#include <qgroupbox.h>
+#include <tqlayout.h>
+#include <tqgroupbox.h>
#include <kapplication.h>
#include <kcharsets.h>
@@ -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 ) ) );