summaryrefslogtreecommitdiffstats
path: root/src/k3bfiletreecombobox.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 06:08:18 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 06:08:18 +0000
commit33881ea4441221b1ca0789a72c4c7249d923a0df (patch)
treeffe5603da373bb346bb29c8e0f533776f66560a5 /src/k3bfiletreecombobox.cpp
parent6d99e1e138ae5aafc10f14682c48221bf563152e (diff)
downloadk3b-33881ea4441221b1ca0789a72c4c7249d923a0df.tar.gz
k3b-33881ea4441221b1ca0789a72c4c7249d923a0df.zip
rename the following methods:
tqfind find tqreplace replace tqcontains contains git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/k3b@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/k3bfiletreecombobox.cpp')
-rw-r--r--src/k3bfiletreecombobox.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/k3bfiletreecombobox.cpp b/src/k3bfiletreecombobox.cpp
index 3710d25..50b58d4 100644
--- a/src/k3bfiletreecombobox.cpp
+++ b/src/k3bfiletreecombobox.cpp
@@ -213,9 +213,9 @@ void K3bFileTreeComboBox::slotGoUrl()
}
// check for our own internal format
- else if( p.tqcontains("/dev/") ) {
- int pos1 = p.tqfindRev('(');
- int pos2 = p.tqfindRev(')');
+ else if( p.contains("/dev/") ) {
+ int pos1 = p.findRev('(');
+ int pos2 = p.findRev(')');
TQString devStr = p.mid( pos1+1, pos2-pos1-1 );
if( K3bDevice::Device* dev = k3bcore->deviceManager()->findDevice( devStr ) ) {
emit deviceExecuted( dev );
@@ -239,13 +239,13 @@ void K3bFileTreeComboBox::slotGoUrl()
while( ( pos = someUsersHomeDir.search( p, pos ) ) != -1 ) {
KUser user( someUsersHomeDir.cap(1) );
if( user.isValid() )
- p.tqreplace( pos, someUsersHomeDir.cap(1).length() + 1, user.homeDir() );
+ p.replace( pos, someUsersHomeDir.cap(1).length() + 1, user.homeDir() );
else
++pos; // skip this ~
}
// now replace the unmatched tildes with our home dir
- p.tqreplace( "~", K3b::prepareDir( TQDir::homeDirPath() ) );
+ p.replace( "~", K3b::prepareDir( TQDir::homeDirPath() ) );
lineEdit()->setText( p );
@@ -273,7 +273,7 @@ bool K3bFileTreeComboBox::eventFilter( TQObject* o, TQEvent* e )
}
else if( e->type() == TQEvent::MouseButtonPress ) {
TQMouseEvent* me = (TQMouseEvent*)e;
- if ( !TQT_TQRECT_OBJECT(m_fileTreeView->rect()).tqcontains( me->pos() ) ) {
+ if ( !TQT_TQRECT_OBJECT(m_fileTreeView->rect()).contains( me->pos() ) ) {
TQRect arrowRect = tqstyle().querySubControlMetrics( TQStyle::CC_ComboBox, this,
TQStyle::SC_ComboBoxArrow);
arrowRect = TQStyle::tqvisualRect(arrowRect, this);
@@ -282,7 +282,7 @@ bool K3bFileTreeComboBox::eventFilter( TQObject* o, TQEvent* e )
// and thus has a rect that doesn't fit the button.
arrowRect.setHeight( TQMAX( height() - (2 * arrowRect.y()), arrowRect.height() ) );
- if ( arrowRect.tqcontains( mapFromGlobal(me->globalPos()) ) ) {
+ if ( arrowRect.contains( mapFromGlobal(me->globalPos()) ) ) {
d->ignoreNextMouseClick = true; // in the case we hit the arrow button
}
popdown();
@@ -316,7 +316,7 @@ void K3bFileTreeComboBox::mousePressEvent( TQMouseEvent* e )
// and thus has a rect that doesn't fit the button.
arrowRect.setHeight( TQMAX( height() - (2 * arrowRect.y()), arrowRect.height() ) );
- if ( arrowRect.tqcontains( e->pos() ) ) {
+ if ( arrowRect.contains( e->pos() ) ) {
popup();
tqrepaint( FALSE );
}