diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-23 01:42:07 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-23 01:42:07 +0000 |
commit | a2277b6bc715464e83882b90c2a058139b8a6b54 (patch) | |
tree | ab09b14014f59b4d8e2ddd12226aa0b22e4dfc5d /kdf/mntconfig.cpp | |
parent | d3f79e04b34bd1f70a458b81b28fc8799498c8dc (diff) | |
download | tdeutils-a2277b6bc715464e83882b90c2a058139b8a6b54.tar.gz tdeutils-a2277b6bc715464e83882b90c2a058139b8a6b54.zip |
TQt4 port kdeutils
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeutils@1238125 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kdf/mntconfig.cpp')
-rw-r--r-- | kdf/mntconfig.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/kdf/mntconfig.cpp b/kdf/mntconfig.cpp index 0186cc4..caf584c 100644 --- a/kdf/mntconfig.cpp +++ b/kdf/mntconfig.cpp @@ -3,7 +3,7 @@ * * Copyright (c) 1999 Michael Kropfberger <michael.kropfberger@gmx.net> * - * Requires the Qt widget libraries, available at no cost at + * Requires the TQt widget libraries, available at no cost at * http://www.troll.no/ * * This program is free software; you can redistribute it and/or modify @@ -47,8 +47,8 @@ static bool GUI; #endif -MntConfigWidget::MntConfigWidget(TQWidget *parent, const char *name, bool init) - : TQWidget(parent, name) +MntConfigWidget::MntConfigWidget(TQWidget *tqparent, const char *name, bool init) + : TQWidget(tqparent, name) { mInitializing = false; @@ -102,7 +102,7 @@ MntConfigWidget::MntConfigWidget(TQWidget *parent, const char *name, bool init) mIconButton = new KIconButton(mGroupBox); mIconButton->setIconType(KIcon::Small, KIcon::Device); Q_CHECK_PTR(mIconButton); - mIconButton->setFixedWidth( mIconButton->sizeHint().height() ); + mIconButton->setFixedWidth( mIconButton->tqsizeHint().height() ); connect(mIconButton,TQT_SIGNAL(iconChanged(TQString)),this,TQT_SLOT(iconChangedButton(TQString))); gl->addWidget( mIconButton, 2, 1 ); @@ -164,7 +164,7 @@ void MntConfigWidget::readDFDone( void ) TQListViewItem *item = 0; for( DiskEntry *disk=mDiskList.first(); disk!=0; disk=mDiskList.next(),++i ) { - item = new TQListViewItem( mList, item, TQString::null, disk->deviceName(), + item = new TQListViewItem( mList, item, TQString(), disk->deviceName(), disk->mountPoint(), disk->mountCommand(), disk->umountCommand() ); item->setPixmap( ICONCOL, SmallIcon( disk->iconName() ) ); mDiskLookup[i] = item; @@ -251,14 +251,14 @@ void MntConfigWidget::iconChangedButton(TQString iconName) } void MntConfigWidget::iconChanged(const TQString &iconName) { - if( iconName.findRev('_') == 0 || - (iconName.right(iconName.length()-iconName.findRev('_'))!="_mount" && - iconName.right(iconName.length()-iconName.findRev('_'))!="_unmount")) + if( iconName.tqfindRev('_') == 0 || + (iconName.right(iconName.length()-iconName.tqfindRev('_'))!="_mount" && + iconName.right(iconName.length()-iconName.tqfindRev('_'))!="_unmount")) { TQString msg = i18n("" "This filename is not valid: %1\n" "It must end with " - "\"_mount\" or \"_unmount\".").arg(iconName); + "\"_mount\" or \"_unmount\".").tqarg(iconName); KMessageBox::sorry( this, msg ); return; } |