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/komparepart/komparesaveoptionswidget.cpp | 58 ++++++++++++------------ 1 file changed, 29 insertions(+), 29 deletions(-) (limited to 'kompare/komparepart/komparesaveoptionswidget.cpp') diff --git a/kompare/komparepart/komparesaveoptionswidget.cpp b/kompare/komparepart/komparesaveoptionswidget.cpp index 866ecc0d..723093ac 100644 --- a/kompare/komparepart/komparesaveoptionswidget.cpp +++ b/kompare/komparepart/komparesaveoptionswidget.cpp @@ -17,11 +17,11 @@ ** ***************************************************************************/ -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include #include #include @@ -30,8 +30,8 @@ #include "diffsettings.h" #include "komparesaveoptionswidget.h" -KompareSaveOptionsWidget::KompareSaveOptionsWidget( QString source, QString destination, - DiffSettings * settings, QWidget * parent ) +KompareSaveOptionsWidget::KompareSaveOptionsWidget( TQString source, TQString destination, + DiffSettings * settings, TQWidget * parent ) : KompareSaveOptionsBase( parent, "save options" ) , m_source( source ) , m_destination( destination ) @@ -58,23 +58,23 @@ KompareSaveOptionsWidget::KompareSaveOptionsWidget( QString source, QString dest m_directoryRequester->setURL( root.url() ); } - connect( m_SmallerChangesCB, SIGNAL(toggled(bool)), SLOT(updateCommandLine()) ); - connect( m_LargeFilesCB, SIGNAL(toggled(bool)), SLOT(updateCommandLine()) ); - connect( m_IgnoreCaseCB, SIGNAL(toggled(bool)), SLOT(updateCommandLine()) ); - connect( m_ExpandTabsCB, SIGNAL(toggled(bool)), SLOT(updateCommandLine()) ); - connect( m_IgnoreEmptyLinesCB, SIGNAL(toggled(bool)), SLOT(updateCommandLine()) ); - connect( m_IgnoreWhiteSpaceCB, SIGNAL(toggled(bool)), SLOT(updateCommandLine()) ); - connect( m_FunctionNamesCB, SIGNAL(toggled(bool)), SLOT(updateCommandLine()) ); - connect( m_RecursiveCB, SIGNAL(toggled(bool)), SLOT(updateCommandLine()) ); - connect( m_NewFilesCB, SIGNAL(toggled(bool)), SLOT(updateCommandLine()) ); - connect( m_ContextRB, SIGNAL(toggled(bool)), SLOT(updateCommandLine()) ); - connect( m_EdRB, SIGNAL(toggled(bool)), SLOT(updateCommandLine()) ); - connect( m_NormalRB, SIGNAL(toggled(bool)), SLOT(updateCommandLine()) ); - connect( m_RCSRB, SIGNAL(toggled(bool)), SLOT(updateCommandLine()) ); - connect( m_UnifiedRB, SIGNAL(toggled(bool)), SLOT(updateCommandLine()) ); - connect( m_SideBySideRB, SIGNAL(toggled(bool)), SLOT(updateCommandLine()) ); - connect( m_ContextLinesSB, SIGNAL(valueChanged(int)), SLOT(updateCommandLine()) ); - connect( m_directoryRequester, SIGNAL(textChanged(const QString&)), SLOT(updateCommandLine()) ); + connect( m_SmallerChangesCB, TQT_SIGNAL(toggled(bool)), TQT_SLOT(updateCommandLine()) ); + connect( m_LargeFilesCB, TQT_SIGNAL(toggled(bool)), TQT_SLOT(updateCommandLine()) ); + connect( m_IgnoreCaseCB, TQT_SIGNAL(toggled(bool)), TQT_SLOT(updateCommandLine()) ); + connect( m_ExpandTabsCB, TQT_SIGNAL(toggled(bool)), TQT_SLOT(updateCommandLine()) ); + connect( m_IgnoreEmptyLinesCB, TQT_SIGNAL(toggled(bool)), TQT_SLOT(updateCommandLine()) ); + connect( m_IgnoreWhiteSpaceCB, TQT_SIGNAL(toggled(bool)), TQT_SLOT(updateCommandLine()) ); + connect( m_FunctionNamesCB, TQT_SIGNAL(toggled(bool)), TQT_SLOT(updateCommandLine()) ); + connect( m_RecursiveCB, TQT_SIGNAL(toggled(bool)), TQT_SLOT(updateCommandLine()) ); + connect( m_NewFilesCB, TQT_SIGNAL(toggled(bool)), TQT_SLOT(updateCommandLine()) ); + connect( m_ContextRB, TQT_SIGNAL(toggled(bool)), TQT_SLOT(updateCommandLine()) ); + connect( m_EdRB, TQT_SIGNAL(toggled(bool)), TQT_SLOT(updateCommandLine()) ); + connect( m_NormalRB, TQT_SIGNAL(toggled(bool)), TQT_SLOT(updateCommandLine()) ); + connect( m_RCSRB, TQT_SIGNAL(toggled(bool)), TQT_SLOT(updateCommandLine()) ); + connect( m_UnifiedRB, TQT_SIGNAL(toggled(bool)), TQT_SLOT(updateCommandLine()) ); + connect( m_SideBySideRB, TQT_SIGNAL(toggled(bool)), TQT_SLOT(updateCommandLine()) ); + connect( m_ContextLinesSB, TQT_SIGNAL(valueChanged(int)), TQT_SLOT(updateCommandLine()) ); + connect( m_directoryRequester, TQT_SIGNAL(textChanged(const TQString&)), TQT_SLOT(updateCommandLine()) ); loadOptions(); } @@ -84,23 +84,23 @@ KompareSaveOptionsWidget::~KompareSaveOptionsWidget() } -QString KompareSaveOptionsWidget::directory() const +TQString KompareSaveOptionsWidget::directory() const { return KURL( m_directoryRequester->url() ).path(); } void KompareSaveOptionsWidget::updateCommandLine() { - QString cmdLine = "diff"; + TQString cmdLine = "diff"; - QString options = ""; + TQString options = ""; switch( static_cast( m_FormatBG->id( m_FormatBG->selected() ) ) ) { case Kompare::Unified : - cmdLine += " -U " + QString::number( m_ContextLinesSB->value() ); + cmdLine += " -U " + TQString::number( m_ContextLinesSB->value() ); break; case Kompare::Context : - cmdLine += " -C " + QString::number( m_ContextLinesSB->value() ); + cmdLine += " -C " + TQString::number( m_ContextLinesSB->value() ); break; case Kompare::RCS : options += "n"; -- cgit v1.2.1