summaryrefslogtreecommitdiffstats
path: root/krdc/maindialogwidget.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-22 00:30:31 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-22 00:30:31 +0000
commit69cac65817d949cda2672ec4f0aa73d5e66a0ba1 (patch)
tree073fde0496ea90eb5bf5cffe66a8da43a9f55fbc /krdc/maindialogwidget.cpp
parent3467e6464beac3a162839bf7078e22e3a74d73e7 (diff)
downloadtdenetwork-69cac65817d949cda2672ec4f0aa73d5e66a0ba1.tar.gz
tdenetwork-69cac65817d949cda2672ec4f0aa73d5e66a0ba1.zip
TQt4 port kdenetwork
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1237912 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'krdc/maindialogwidget.cpp')
-rw-r--r--krdc/maindialogwidget.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/krdc/maindialogwidget.cpp b/krdc/maindialogwidget.cpp
index 09b0de52..c45f87e9 100644
--- a/krdc/maindialogwidget.cpp
+++ b/krdc/maindialogwidget.cpp
@@ -56,7 +56,7 @@ class UrlListViewItem : public KListViewItem
if ( !desc.isNull() )
setText( 0, desc );
if ( ( !userid.isEmpty() ) && ( !fullname.isEmpty() ) )
- setText( 0, TQString( "%1 (%2)" ).arg( fullname ).arg( userid ) );
+ setText( 0, TQString( "%1 (%2)" ).tqarg( fullname ).tqarg( userid ) );
else if ( !userid.isNull() )
setText( 0, userid );
else if ( !fullname.isNull() )
@@ -77,8 +77,8 @@ class UrlListViewItem : public KListViewItem
TQString m_serviceid;
};
-MainDialogWidget::MainDialogWidget( TQWidget *parent, const char *name )
- : MainDialogBase( parent, name ),
+MainDialogWidget::MainDialogWidget( TQWidget *tqparent, const char *name )
+ : MainDialogBase( tqparent, name ),
m_scanning( false )
{
HostPreferences *hp = HostPreferences::instance();
@@ -148,9 +148,9 @@ TQString MainDialogWidget::remoteHost()
void MainDialogWidget::hostChanged( const TQString &text )
{
- emit hostValid(text.contains(TQRegExp(":[0-9]+$")) ||
- text.contains(TQRegExp("^vnc:/.+")) ||
- text.contains(TQRegExp("^rdp:/.+")));
+ emit hostValid(text.tqcontains(TQRegExp(":[0-9]+$")) ||
+ text.tqcontains(TQRegExp("^vnc:/.+")) ||
+ text.tqcontains(TQRegExp("^rdp:/.+")));
}
void MainDialogWidget::toggleBrowsingArea()
@@ -166,7 +166,7 @@ void MainDialogWidget::enableBrowsingArea( bool enable )
m_browsingPanel->show();
m_browsingPanel->setMaximumSize(1000, 1000);
m_browsingPanel->setEnabled(true);
- m_browseButton->setText(m_browseButton->text().replace(">>", "<<"));
+ m_browseButton->setText(m_browseButton->text().tqreplace(">>", "<<"));
}
else
{
@@ -174,12 +174,12 @@ void MainDialogWidget::enableBrowsingArea( bool enable )
m_browsingPanel->hide();
m_browsingPanel->setMaximumSize(0, 0);
m_browsingPanel->setEnabled(false);
- m_browseButton->setText(m_browseButton->text().replace("<<", ">>"));
- int h = minimumSize().height()-hOffset;
- setMinimumSize(minimumSize().width(), (h > 0) ? h : 0);
+ m_browseButton->setText(m_browseButton->text().tqreplace("<<", ">>"));
+ int h = tqminimumSize().height()-hOffset;
+ setMinimumSize(tqminimumSize().width(), (h > 0) ? h : 0);
resize(width(), height()-hOffset);
- TQTimer::singleShot( 0, parentWidget(), TQT_SLOT( adjustSize() ) );
+ TQTimer::singleShot( 0, tqparentWidget(), TQT_SLOT( adjustSize() ) );
}
if (enable)
@@ -344,11 +344,11 @@ void MainDialogWidget::lastSignalServices( bool success )
void MainDialogWidget::foundScopes( TQStringList scopeList )
{
- int di = scopeList.findIndex( DEFAULT_SCOPE );
+ int di = scopeList.tqfindIndex( DEFAULT_SCOPE );
if ( di >= 0 )
scopeList[ di ] = i18n( "default" );
- int ct = scopeList.findIndex( m_scopeCombo->currentText() );
+ int ct = scopeList.tqfindIndex( m_scopeCombo->currentText() );
m_scopeCombo->clear();
m_scopeCombo->insertStringList( scopeList );
if ( ct >= 0 )