rename the following methods:

tqfind find
tqreplace replace
tqcontains contains


git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/libraries/kipi-plugins@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
v3.5.13-sru
tpearson 14 years ago
parent f899c4c05f
commit 94ec53c96c

@ -299,7 +299,7 @@ void BatchProcessImagesDialog::slotImagesFilesButtonRem( void )
{
m_listFiles->takeItem(pitem);
m_listFiles->setSelected( m_listFiles->currentItem(), true );
m_selectedImageFiles.remove(m_selectedImageFiles.tqfind(pitem->pathSrc()));
m_selectedImageFiles.remove(m_selectedImageFiles.find(pitem->pathSrc()));
delete pitem;
m_nbItem = m_selectedImageFiles.count();
@ -1062,7 +1062,7 @@ TQString BatchProcessImagesDialog::RenameTargetImageFile(TQFileInfo *fi)
{
++Enumerator;
Temp = Temp.setNum( Enumerator );
NewDestUrl = fi->filePath().left( fi->filePath().tqfindRev('.', -1)) + "_" + Temp
NewDestUrl = fi->filePath().left( fi->filePath().findRev('.', -1)) + "_" + Temp
+ "." + fi->filePath().section('.', -1 );
}
while ( Enumerator < 100 &&

@ -357,7 +357,7 @@ TQString ConvertImagesDialog::oldFileName2NewFileName(TQString fileName)
{
TQString Temp;
Temp = fileName.left( fileName.tqfindRev('.', -1) ); // The source file name without extension.
Temp = fileName.left( fileName.findRev('.', -1) ); // The source file name without extension.
Temp = Temp + "." + ImageFileExt(m_Type->currentText()); // Added new file extension.
return Temp;

@ -349,9 +349,9 @@ TQString RenameImagesWidget::oldToNewName(BatchProcessImagesItem* item,
{
TQString format = m_formatDateEdit->text();
format = format.simplifyWhiteSpace();
format.tqreplace("%%","%");
format.tqreplace("%s","");
format.tqreplace("/", "");
format.replace("%%","%");
format.replace("%s","");
format.replace("/", "");
time_t time = info.time().toTime_t();
struct tm* time_tm = ::localtime(&time);
@ -522,7 +522,7 @@ void RenameImagesWidget::slotAddImages()
for (KURL::List::iterator it = urls.begin(); it != urls.end(); ++it)
{
if (m_urlList.tqcontains(*it))
if (m_urlList.contains(*it))
continue;
new BatchProcessImagesItem(m_listView,

@ -447,16 +447,16 @@ TQString ResizeImagesDialog::makeProcess(KProcess* proc, BatchProcessImagesItem
if (w < h) // (w < h) because all paper dimensions are vertically given !
{
Temp = m_paperSize.left(m_paperSize.tqfind('x'));
Temp = m_paperSize.left(m_paperSize.find('x'));
m_xPixels = (int)( (float)(Temp.toInt() * Dpi) / (float)(2.54) );
Temp = m_paperSize.right(m_paperSize.tqfind('x'));
Temp = m_paperSize.right(m_paperSize.find('x'));
m_yPixels = (int)( (float)(Temp.toInt() * Dpi) / (float)(2.54) );
}
else
{
Temp = m_paperSize.left(m_paperSize.tqfind('x'));
Temp = m_paperSize.left(m_paperSize.find('x'));
m_yPixels = (int)( (float)(Temp.toInt() * Dpi) / (float)(2.54) );
Temp = m_paperSize.right(m_paperSize.tqfind('x'));
Temp = m_paperSize.right(m_paperSize.find('x'));
m_xPixels = (int)( (float)(Temp.toInt() * Dpi) / (float)(2.54) );
}
}

@ -167,7 +167,7 @@ bool KIPICalendarPlugin::CalFormatter::isSpecial(int month, int day)
TQDate dt;
KGlobal::locale()->calendar()->setYMD(dt, year_, month, day);
return (isPrayDay(month,day) || d->oh.tqcontains(dt) || d->fh.tqcontains(dt));
return (isPrayDay(month,day) || d->oh.contains(dt) || d->fh.contains(dt));
}
@ -182,10 +182,10 @@ TQColor KIPICalendarPlugin::CalFormatter::getDayColor(int month, int day)
if (isPrayDay(month, day))
return TQt::red;
if (d->oh.tqcontains(dt))
if (d->oh.contains(dt))
return TQt::red;
if (d->fh.tqcontains(dt))
if (d->fh.contains(dt))
return TQt::green;
//default
@ -203,10 +203,10 @@ TQString KIPICalendarPlugin::CalFormatter::getDayDescr(int month, int day)
TQString ret;
if (d->oh.tqcontains(dt))
if (d->oh.contains(dt))
ret = d->oh[dt].description;
if (d->fh.tqcontains(dt)) {
if (d->fh.contains(dt)) {
if (ret.isNull())
return d->fh[dt].description;
else

@ -67,7 +67,7 @@ void CalSettings::setImage(int month, const KURL& path)
KURL CalSettings::getImage(int month) const
{
return monthMap_.tqcontains(month) ? monthMap_[month] : KURL();
return monthMap_.contains(month) ? monthMap_[month] : KURL();
}
} // NameSpace KIPICalendarPlugin

@ -172,7 +172,7 @@ void MonthWidget::slotGotThumbnaiL(const KFileItem* , const TQPixmap& pix)
void MonthWidget::mouseReleaseEvent(TQMouseEvent* e)
{
if (!contentsRect().tqcontains(e->pos())) return;
if (!contentsRect().contains(e->pos())) return;
if (e->button() == Qt::LeftButton)
{

@ -1912,7 +1912,7 @@ TQString CDArchiving::webifyFileName(TQString fileName)
fileName=fileName.lower();
// Remove potentially troublesome chars
fileName=fileName.tqreplace(TQRegExp("[^-0-9a-zA-Z]+"), "_");
fileName=fileName.replace(TQRegExp("[^-0-9a-zA-Z]+"), "_");
return fileName;
}
@ -1925,7 +1925,7 @@ TQString CDArchiving::makeFileNameUnique(TQStringList& list, TQString fileName)
// Make sure the file name is unique
TQString fileNameBase=fileName;
int count=1;
while (list.tqfindIndex(fileName)!=-1)
while (list.findIndex(fileName)!=-1)
{
fileName=fileNameBase + "-" + TQString::number(count);
++count;

@ -84,7 +84,7 @@ REPEAT_BRIEF = YES
# used as the annotated text. Otherwise, the brief description is used as-is.
# If left blank, the following values are used ("$name" is automatically
# replaced with the name of the entity): "The $name class" "The $name widget"
# "The $name file" "is" "provides" "specifies" "tqcontains"
# "The $name file" "is" "provides" "specifies" "contains"
# "represents" "a" "an" "the"
ABBREVIATE_BRIEF =

@ -344,7 +344,7 @@ void DisplayCompare::slotDisplayLeft(TQListViewItem * item)
KApplication::setOverrideCursor( waitCursor );
listEq->clear();
FindOriginalItem *pitem = static_cast<FindOriginalItem*>( item );
TQPtrVector < TQFile > *list = (TQPtrVector < TQFile > *)m_cmp.tqfind(pitem->fullpath());
TQPtrVector < TQFile > *list = (TQPtrVector < TQFile > *)m_cmp.find(pitem->fullpath());
TQImage im(pitem->fullpath());
if ( !im.isNull() )

@ -67,7 +67,7 @@ TQDict < TQPtrVector < TQFile > > KIPIFindDupplicateImagesPlugin::FastCompare::c
size = TQString::number(TQFileInfo (*file).size ());
// if not in the table, we do it
if ( !dict->tqfind (size) )
if ( !dict->find (size) )
{
list = new TQPtrVector < TQFile >;
list->setAutoDelete(true);
@ -75,7 +75,7 @@ TQDict < TQPtrVector < TQFile > > KIPIFindDupplicateImagesPlugin::FastCompare::c
}
// Read the list
list = (TQPtrVector < TQFile > *)dict->tqfind (size);
list = (TQPtrVector < TQFile > *)dict->find (size);
//Add the file
list->resize (list->size () + 1);
@ -117,7 +117,7 @@ TQDict < TQPtrVector < TQFile > > KIPIFindDupplicateImagesPlugin::FastCompare::c
sendMessage( m_parent, KIPIFindDupplicateImagesPlugin::Exact,file1->name(),filesList.count() + count, true, false );
if (!fait->tqfind (file1->name()))
if (!fait->find (file1->name()))
{
for (unsigned int j = i + 1; j < list->size (); j++)
{
@ -131,14 +131,14 @@ TQDict < TQPtrVector < TQFile > > KIPIFindDupplicateImagesPlugin::FastCompare::c
// Add the file.
if (!res.tqfind (file1->name ()))
if (!res.find (file1->name ()))
{
vect = new TQPtrVector < TQFile >;
vect->setAutoDelete(true);
res.insert (file1->name (), vect);
}
else
vect = (TQPtrVector < TQFile > *)res.tqfind (file1->name ());
vect = (TQPtrVector < TQFile > *)res.find (file1->name ());
vect->resize (vect->size () + 1);
vect->insert (vect->size () - 1, file2);

@ -167,7 +167,7 @@ void FindDuplicateDialog::setupPageMethod(void)
m_approximateThreshold = new KIntNumInput(88, groupBox1);
m_approximateThreshold->setRange(60, 100, 1, true );
TQWhatsThis::add( m_approximateThreshold, i18n("<p>Select here the approximate threshold "
"value, as a percentage, for the 'Almost' tqfind-duplicates method. "
"value, as a percentage, for the 'Almost' find-duplicates method. "
"This value is used by the algorithm to distinguish two "
"similar images. The default value is 88.") );
vlay->addWidget( groupBox1 );
@ -175,7 +175,7 @@ void FindDuplicateDialog::setupPageMethod(void)
//---------------------------------------------
TQGroupBox * groupBox2 = new TQGroupBox( 1, Qt::Horizontal, i18n("Cache Maintenance"), page_setupMethod );
new TQLabel(i18n("The tqfind-duplicate-images process uses a cache folder for images' fingerprints\n"
new TQLabel(i18n("The find-duplicate-images process uses a cache folder for images' fingerprints\n"
"to speed up the analysis of items from Albums."), groupBox2);
TQPushButton* updateCache = new TQPushButton( groupBox2, "UpdateCache" );
@ -239,7 +239,7 @@ void FindDuplicateDialog::slotUpdateCache(void)
for( TQValueList<KIPI::ImageCollection>::ConstIterator album = albumsList.begin() ;
album != albumsList.end() ; ++album )
{
if ( !albumsListPath.tqcontains( (*album).path().path() ) )
if ( !albumsListPath.contains( (*album).path().path() ) )
albumsListPath.append( (*album).path().path() );
}
@ -261,7 +261,7 @@ void FindDuplicateDialog::slotPurgeCache(void)
for( TQValueList<KIPI::ImageCollection>::ConstIterator album = albumsList.begin() ;
album != albumsList.end() ; ++album )
{
if ( !albumsListPath.tqcontains( (*album).path().path() ) )
if ( !albumsListPath.contains( (*album).path().path() ) )
albumsListPath.append( (*album).path().path() );
}

@ -192,7 +192,7 @@ void FindDuplicateImages::compareAlbums(void)
for( KURL::List::Iterator it2 = Files.begin(); it2 != Files.end(); ++it2 )
{
if ( !filesList.tqcontains( (*it2).path() ) )
if ( !filesList.contains( (*it2).path() ) )
{
filesList.append( (*it2).path() ); // PENDING(blackie) handle remote URLS
}

@ -105,7 +105,7 @@ TQDict < TQPtrVector < TQFile > > KIPIFindDupplicateImagesPlugin::FuzzyCompare:
// Create the 'ImageSimilarityData' data for the first image.
ImageSimilarityData *i1 = list->at(i);
if (i1 && !fait->tqfind(i1->filename))
if (i1 && !fait->find(i1->filename))
{
sendMessage( m_parent, KIPIFindDupplicateImagesPlugin::Similar, i1->filename, 0, true, false );
@ -122,14 +122,14 @@ TQDict < TQPtrVector < TQFile > > KIPIFindDupplicateImagesPlugin::FuzzyCompare:
TQPtrVector < TQFile > *vect;
// Add file to the list.
if (!res.tqfind (i1->filename))
if (!res.find (i1->filename))
{
vect = new TQPtrVector < TQFile >;
vect->setAutoDelete(true);
res.insert (i1->filename, vect);
}
else
vect = (TQPtrVector < TQFile > *)res.tqfind(i1->filename);
vect = (TQPtrVector < TQFile > *)res.find(i1->filename);
vect->resize (vect->size () + 1);
vect->insert (vect->size () - 1, new TQFile(i2->filename));

@ -389,7 +389,7 @@ bool FlickrTalker::addPhoto(const TQString& photoPath, const FPhotoInfo& info,
TQString rawFilesExt(KDcrawIface::KDcraw::rawFiles());
#endif
TQFileInfo fileInfo(photoPath);
if (rawFilesExt.upper().tqcontains(fileInfo.extension(false).upper()))
if (rawFilesExt.upper().contains(fileInfo.extension(false).upper()))
KDcrawIface::KDcraw::loadDcrawPreview(image, photoPath);
else
image.load(photoPath);

@ -352,7 +352,7 @@ void FlickrWindow::slotAlbums( const TQValueList<GAlbum>& albumList )
}
else
{
TQListViewItem* tqparent = m_albumDict.tqfind( album.parent_ref_num );
TQListViewItem* tqparent = m_albumDict.find( album.parent_ref_num );
if ( tqparent )
{
GAlbumViewItem* item = new GAlbumViewItem( tqparent, album.name,
@ -383,7 +383,7 @@ void FlickrWindow::slotAlbums( const TQValueList<GAlbum>& albumList )
if (lastSelectedID > 0)
{
GAlbumViewItem* lastSelectedItem = m_albumDict.tqfind( lastSelectedID );
GAlbumViewItem* lastSelectedItem = m_albumDict.find( lastSelectedID );
if (lastSelectedItem)
{
m_tagView->setSelected( lastSelectedItem, true );

@ -226,7 +226,7 @@ void ImagesList::slotAddImages(const KURL::List& list)
// Check if the new item already exist in the list.
bool tqfind = false;
bool find = false;
TQListViewItemIterator it(d->listView);
while (it.current())
@ -234,12 +234,12 @@ void ImagesList::slotAddImages(const KURL::List& list)
ImagesListViewItem* item = dynamic_cast<ImagesListViewItem*>(*it);
if (item->url() == imageUrl)
tqfind = true;
find = true;
++it;
}
if (!tqfind)
if (!find)
{
new ImagesListViewItem(d->listView, imageUrl);
urls.append(imageUrl);
@ -280,10 +280,10 @@ void ImagesList::slotAddItems()
void ImagesList::slotRemoveItems()
{
bool tqfind;
bool find;
do
{
tqfind = false;
find = false;
TQListViewItemIterator it(d->listView);
while (it.current())
{
@ -291,23 +291,23 @@ void ImagesList::slotRemoveItems()
if (item->isSelected())
{
delete item;
tqfind = true;
find = true;
break;
}
++it;
}
}
while(tqfind);
while(find);
emit signalImageListChanged(imageUrls().isEmpty());
}
void ImagesList::removeItemByUrl(const KURL& url)
{
bool tqfind;
bool find;
do
{
tqfind = false;
find = false;
TQListViewItemIterator it(d->listView);
while (it.current())
{
@ -315,13 +315,13 @@ void ImagesList::removeItemByUrl(const KURL& url)
if (item->url() == url)
{
delete item;
tqfind = true;
find = true;
break;
}
++it;
}
}
while(tqfind);
while(find);
emit signalImageListChanged(imageUrls().isEmpty());
}

@ -509,9 +509,9 @@ void GalleryTalker::parseResponseListPhotos(const TQByteArray &data)
}
else
{
// Boris the Gallery default URL tqcontains "=" char. So we will split the string only from the first "=" char
// Boris the Gallery default URL contains "=" char. So we will split the string only from the first "=" char
TQStringList strlist = TQStringList();
strlist << line.left(line.tqfind('=')) << line.mid(line.tqfind('=')+1);
strlist << line.left(line.find('=')) << line.mid(line.find('=')+1);
if (strlist.count() >= 2)
{
TQString key = strlist[0];
@ -540,7 +540,7 @@ void GalleryTalker::parseResponseListPhotos(const TQByteArray &data)
}
else if (key.startsWith("baseurl"))
{
albumURL = value.tqreplace("\\","");
albumURL = value.replace("\\","");
}
}
}

@ -300,7 +300,7 @@ void GalleryWindow::slotAlbums( const TQValueList<GAlbum>& albumList )
}
else
{
TQListViewItem* tqparent = m_albumDict.tqfind( album.parent_ref_num );
TQListViewItem* tqparent = m_albumDict.find( album.parent_ref_num );
if ( tqparent )
{
GAlbumViewItem* item = new GAlbumViewItem( tqparent, album.title,
@ -331,7 +331,7 @@ void GalleryWindow::slotAlbums( const TQValueList<GAlbum>& albumList )
if (lastSelectedID > 0)
{
GAlbumViewItem* lastSelectedItem = m_albumDict.tqfind( lastSelectedID );
GAlbumViewItem* lastSelectedItem = m_albumDict.find( lastSelectedID );
if (lastSelectedItem)
{
m_albumView->setSelected( lastSelectedItem, true );

@ -94,7 +94,7 @@ TQString kmlExport::webifyFileName(const TQString &fileName)
TQString webFileName=fileName.lower();
// Remove potentially troublesome chars
webFileName=webFileName.tqreplace(TQRegExp("[^-0-9a-z]+"), "_");
webFileName=webFileName.replace(TQRegExp("[^-0-9a-z]+"), "_");
return webFileName;
}

@ -39,7 +39,7 @@ It's a .ini-style file and looks like this:
Url=http://example.com/themes/helloworld
We use a desktop file format so that entries can be translated. If you look at
the desktop file for one of the themes shipped with the plugin, you will tqfind
the desktop file for one of the themes shipped with the plugin, you will find
something like this:
[Desktop Entry]
@ -78,7 +78,7 @@ Rename the desktop file accordingly:
cd snow2
mv snow.desktop snow2.desktop
Edit "snow2.desktop": Remove all the `Name[...]` entries and tqreplace `Name=Snow`
Edit "snow2.desktop": Remove all the `Name[...]` entries and replace `Name=Snow`
with `Name=Snow 2`.
You are done, you can now open your favorite KIPI enabled application and start the

@ -66,7 +66,7 @@ TQString webifyFileName(TQString fileName) {
fileName=fileName.lower();
// Remove potentially troublesome chars
fileName=fileName.tqreplace(TQRegExp("[^-0-9a-z]+"), "_");
fileName=fileName.replace(TQRegExp("[^-0-9a-z]+"), "_");
return fileName;
}
@ -80,7 +80,7 @@ public:
TQString makeNameUnique(TQString name) {
TQString nameBase = name;
int count=2;
while (mList.tqfindIndex(name)!=-1) {
while (mList.findIndex(name)!=-1) {
name = nameBase + TQString::number(count);
++count;
};
@ -106,11 +106,11 @@ TQCString makeXsltParam(const TQString& txt) {
static const char apos='\'';
static const char quote='"';
if (txt.tqfind(apos)==-1) {
if (txt.find(apos)==-1) {
// First or second case: no apos
param= apos + txt + apos;
} else if (txt.tqfind(quote)==-1) {
} else if (txt.find(quote)==-1) {
// Third case: only apos, no quote
param= quote + txt + quote;

@ -146,7 +146,7 @@ const Theme::List& Theme::getList() {
Theme* theme=new Theme;
theme->d->init(*it);
TQString internalName = theme->internalName();
if (!internalNameList.tqcontains(internalName)) {
if (!internalNameList.contains(internalName)) {
sList << Theme::Ptr(theme);
internalNameList << internalName;
}

@ -106,7 +106,7 @@ bool Texture::load(TQString fn, TQSize size, GLuint tn)
TQString rawFilesExt(KDcrawIface::KDcraw::rawFiles());
#endif
TQFileInfo fileInfo(fn);
if (rawFilesExt.upper().tqcontains( fileInfo.extension(false).upper() )) {
if (rawFilesExt.upper().contains( fileInfo.extension(false).upper() )) {
// it's a RAW file, use the libkdcraw loader
KDcrawIface::KDcraw::loadDcrawPreview(qimage, fn);
} else {

@ -85,7 +85,7 @@ ViewerWidget::ViewerWidget(KIPI::Interface* i) {
// only add images to files
KMimeType::Ptr type = KMimeType::findByURL(s);
bool isImage=type->name().tqfind("image")>=0;
bool isImage=type->name().find("image")>=0;
if ( isImage ) {
files.append(s);
@ -681,7 +681,7 @@ OGLstate ViewerWidget::getOGLstate()
//GL_ARB_texture_rectangle is not supported
TQString s = TQString ( ( char* ) glGetString ( GL_EXTENSIONS ) );
if ( !s.tqcontains ( "GL_ARB_texture_rectangle",false ) ) {
if ( !s.contains ( "GL_ARB_texture_rectangle",false ) ) {
return oglNoRectangularTexture;
}

@ -258,7 +258,7 @@ bool ImageGrayScale::image2GrayScaleImageMagick(const TQString& src, const TQStr
}
// Processing error !
err = i18n("Cannot convert to gray scale: %1").tqarg(m_stdErr.tqreplace('\n', ' '));
err = i18n("Cannot convert to gray scale: %1").tqarg(m_stdErr.replace('\n', ' '));
return false;
}

@ -213,7 +213,7 @@ bool ImageFlip::flipImageMagick(const TQString& src, const TQString& dest, FlipA
}
// Processing error !
err = i18n("Cannot flip: %1").tqarg(m_stdErr.tqreplace('\n', ' '));
err = i18n("Cannot flip: %1").tqarg(m_stdErr.replace('\n', ' '));
return false;
}

@ -237,7 +237,7 @@ bool ImageRotate::rotateImageMagick(const TQString& src, const TQString& dest,
}
// Processing error !
err = i18n("Cannot rotate: %1").tqarg(m_stdErr.tqreplace('\n', ' '));
err = i18n("Cannot rotate: %1").tqarg(m_stdErr.replace('\n', ' '));
return false;
}

@ -175,7 +175,7 @@ bool Utils::updateMetadataImageMagick(const TQString& src, TQString& err)
}
// Processing error !
err = i18n("Cannot update metadata: %1").tqarg(m_stdErr.tqreplace('\n', ' '));
err = i18n("Cannot update metadata: %1").tqarg(m_stdErr.replace('\n', ' '));
return false;
}
@ -199,7 +199,7 @@ bool Utils::isRAW(const TQString& file)
#endif
TQFileInfo fileInfo(file);
if (rawFilesExt.upper().tqcontains( fileInfo.extension(false).upper() ))
if (rawFilesExt.upper().contains( fileInfo.extension(false).upper() ))
return true;
return false;

@ -105,11 +105,11 @@ void CameraIconView::createPixmap(TQPixmap& pix, const TQString& icon, double sc
CameraIconItem* CameraIconView::addItem(const GPFileItemInfo* fileInfo) {
TQPixmap& pix = d->unknownPix;
if(fileInfo->mime.tqcontains("image")) {
if(fileInfo->mime.contains("image")) {
pix = d->imagePix;
} else if(fileInfo->mime.tqcontains("audio")) {
} else if(fileInfo->mime.contains("audio")) {
pix = d->audioPix;
} else if(fileInfo->mime.tqcontains("video")) {
} else if(fileInfo->mime.contains("video")) {
pix = d->videoPix;
} else {
pix = d->unknownPix;

@ -150,7 +150,7 @@ TQPtrList<CameraType>* CameraList::cameraList() {
return &d->clist;
}
CameraType* CameraList::tqfind(const TQString& model) {
CameraType* CameraList::find(const TQString& model) {
for (CameraType *ctype = d->clist.first(); ctype; ctype = d->clist.next()) {
if (ctype->model() == model) {
return ctype;

@ -44,7 +44,7 @@ class CameraList : public TQObject {
bool close();
void insert(CameraType* ctype);
void remove(CameraType* ctype);
CameraType* tqfind(const TQString& title);
CameraType* find(const TQString& title);
void clear();
TQPtrList<CameraType>* cameraList();
static CameraList* instance();

@ -160,16 +160,16 @@ void CameraSelection::slotHelp()
void CameraSelection::setCamera(const TQString& model, const TQString& port) {
TQString camModel(model);
TQListViewItem* item = listView_->tqfindItem(camModel, 0);
TQListViewItem* item = listView_->findItem(camModel, 0);
if (!item) {
return;
}
listView_->setSelected(item, true);
listView_->ensureItemVisible(item);
if (port.tqcontains("usb")) {
if (port.contains("usb")) {
usbButton_->setChecked(true);
} else if (port.tqcontains("serial")) {
} else if (port.contains("serial")) {
serialButton_->setChecked(true);
for (int i=0; i<portPathComboBox_->count(); i++) {
if (port == portPathComboBox_->text(i)) {
@ -209,7 +209,7 @@ void CameraSelection::slotSelectionChanged(TQListViewItem *item) {
TQString model(item->text(0));
TQStringList plist;
GPIface::getCameraSupportedPorts(model, plist);
if (plist.tqcontains("serial")) {
if (plist.contains("serial")) {
serialButton_->setEnabled(true);
serialButton_->setChecked(true);
} else {
@ -217,7 +217,7 @@ void CameraSelection::slotSelectionChanged(TQListViewItem *item) {
serialButton_->setChecked(false);
serialButton_->setEnabled(false);
}
if (plist.tqcontains("usb")) {
if (plist.contains("usb")) {
usbButton_->setEnabled(true);
usbButton_->setChecked(true);
} else {

@ -360,7 +360,7 @@ void CameraUI::cameraNewItems(const TQString& folder, const GPFileItemInfoList&
container_->addFiles(folder, infoList);
GPFileItemInfoList::const_iterator it;
for (it = infoList.begin(); it != infoList.end(); ++it) {
if ((*it).mime.tqcontains("image")) {
if ((*it).mime.contains("image")) {
controller_->requestGetThumbnail(folder, (*it).name);
}
}
@ -378,7 +378,7 @@ void CameraUI::cameraNewItems(const GPFileItemInfoList& infoList) {
container_->addFiles(infoList);
GPFileItemInfoList::const_iterator it;
for (it = infoList.begin(); it != infoList.end(); ++it) {
if ((*it).mime.tqcontains("image")) {
if ((*it).mime.contains("image")) {
controller_->requestGetThumbnail((*it).folder, (*it).name);
}
}
@ -413,7 +413,7 @@ void CameraUI::slotCameraConnectToggle() {
KMessageBox::error(this, i18n("There is no configured camera!"));
return;
}
mCameraType = mCameraList->tqfind(mCameraComboBox->currentText());
mCameraType = mCameraList->find(mCameraComboBox->currentText());
setCameraType(*mCameraType);
setCameraConnected(false);
if(!cameraConnected_) {

@ -64,7 +64,7 @@ void GPFileItemContainer::addFolder(const TQString& folder, const TQString& subf
}
path += subfolder;
kdDebug() << "GPFileItemContainer: Adding folder " << path << endl;
if (!folderDict_.tqfind(path)) {
if (!folderDict_.find(path)) {
GPFolder *item = new GPFolder;
folderDict_.insert(path, item);
item->viewItem = folderView_->addFolder(folder, subfolder);
@ -75,7 +75,7 @@ void GPFileItemContainer::addFolder(const TQString& folder, const TQString& subf
}
void GPFileItemContainer::addFiles(const TQString& folder, const GPFileItemInfoList& infoList) {
GPFolder *folderItem = folderDict_.tqfind(folder);
GPFolder *folderItem = folderDict_.find(folder);
if (!folderItem) {
kdWarning() << "GPFileItemContainer: " << "Couldn't find Folder in Dict: " << folder << endl;
return;
@ -83,7 +83,7 @@ void GPFileItemContainer::addFiles(const TQString& folder, const GPFileItemInfoL
GPFileDict* fileDict = folderItem->fileDict;
GPFileItemInfoList::const_iterator it;
for (it = infoList.begin(); it != infoList.end(); ++it) {
GPFileItemInfo *fileInfo = fileDict->tqfind((*it).name);
GPFileItemInfo *fileInfo = fileDict->find((*it).name);
if (!fileInfo) {
// Hmm... Totally New file
fileInfo = new GPFileItemInfo((*it));
@ -113,13 +113,13 @@ void GPFileItemContainer::addFiles(const GPFileItemInfoList& infoList) {
for (it = infoList.begin(); it != infoList.end(); ++it) {
GPFileItemInfo info(*it);
GPFolder *folderItem = folderDict_.tqfind(info.folder);
GPFolder *folderItem = folderDict_.find(info.folder);
if (!folderItem) {
kdWarning() << "GPFileItemContainer: " << "Couldn't find Folder in Dict: " << info.folder << endl;
continue;
}
GPFileDict* fileDict = folderItem->fileDict;
GPFileItemInfo *fileInfo = fileDict->tqfind((*it).name);
GPFileItemInfo *fileInfo = fileDict->find((*it).name);
if (!fileInfo) {
// Hmm... Totally New file
fileInfo = new GPFileItemInfo(info);
@ -139,13 +139,13 @@ void GPFileItemContainer::addFiles(const GPFileItemInfoList& infoList) {
}
void GPFileItemContainer::addFile(const TQString& folder, const GPFileItemInfo& info) {
GPFolder *folderItem = folderDict_.tqfind(folder);
GPFolder *folderItem = folderDict_.find(folder);
if (!folderItem) {
kdWarning() << "GPFileItemContainer: " << "Couldn't find Folder in Dict: " << folder << endl;
return;
}
GPFileDict* fileDict = folderItem->fileDict;
GPFileItemInfo *fileInfo = fileDict->tqfind(info.name);
GPFileItemInfo *fileInfo = fileDict->find(info.name);
if (!fileInfo) {
// Hmm... Totally New file
fileInfo = new GPFileItemInfo(info);
@ -166,13 +166,13 @@ void GPFileItemContainer::addFile(const TQString& folder, const GPFileItemInfo&
}
void GPFileItemContainer::delFile(const TQString& folder, const TQString& name) {
GPFolder *folderItem = folderDict_.tqfind(folder);
GPFolder *folderItem = folderDict_.find(folder);
if (!folderItem) {
kdWarning() << "GPFileItemContainer: " << "Couldn't find Folder in Dict: " << folder << endl;
return;
}
GPFileDict* fileDict = folderItem->fileDict;
GPFileItemInfo* fileInfo = fileDict->tqfind(name);
GPFileItemInfo* fileInfo = fileDict->find(name);
if (!fileInfo) {
kdWarning() << "GPFileItemContainer: " << "Couldn't File Item to Delete in Dict: " << name << endl;
return;
@ -193,13 +193,13 @@ void GPFileItemContainer::delFile(const TQString& folder, const TQString& name)
}
CameraIconItem* GPFileItemContainer::findItem(const TQString& folder, const TQString& name) {
GPFolder *folderItem = folderDict_.tqfind(folder);
GPFolder *folderItem = folderDict_.find(folder);
if (!folderItem) {
kdWarning() << "GPFileItemContainer: " << "Couldn't find Folder in Dict: " << folder << endl;
return 0;
}
GPFileDict* fileDict = folderItem->fileDict;
GPFileItemInfo* fileInfo = fileDict->tqfind(name);
GPFileItemInfo* fileInfo = fileDict->find(name);
if (!fileInfo) {
kdWarning() << "GPFileItemContainer: " << "Couldn't File Item to Delete in Dict: " << name << endl;
return 0;

@ -55,11 +55,11 @@ GPFileItemInfoDlg::GPFileItemInfoDlg(const GPFileItemInfo& info,
thumbLabel->setMargin(2);
thumbLabel->setPaletteBackgroundColor(tqcolorGroup().base());
if (!pixmap) {
if (info.mime.tqcontains("image"))
if (info.mime.contains("image"))
thumbLabel->setPixmap(DesktopIcon("image"));
else if (info.mime.tqcontains("audio"))
else if (info.mime.contains("audio"))
thumbLabel->setPixmap(DesktopIcon("audio"));
else if (info.mime.tqcontains("video"))
else if (info.mime.contains("video"))
thumbLabel->setPixmap(DesktopIcon("video"));
else
thumbLabel->setPixmap(DesktopIcon("document"));

@ -197,7 +197,7 @@ void SetupCamera::slotAutoDetectCamera() {
bool found = false;
CameraList* clist = CameraList::instance();
if (clist) {
if (clist->tqfind(model)) {
if (clist->find(model)) {
found = true;
}
}

@ -614,7 +614,7 @@ void ThumbView::rebuildContainers() {
appendContainer();
ThumbViewPrivate::ItemContainer* c = d->lastContainer;
while (item) {
if (c->rect.tqcontains(item->rect())) {
if (c->rect.contains(item->rect())) {
c->items.append(item);
item = item->next;
} else if (c->rect.intersects(item->rect())) {
@ -676,10 +676,10 @@ void ThumbView::updateItemContainer(ThumbItem *item) {
c = d->firstContainer;
}
const TQRect ir = item->rect();
bool tqcontains = false;
bool contains = false;
for (;;) {
if (c->rect.intersects(ir)) {
tqcontains = c->rect.tqcontains(ir);
contains = c->rect.contains(ir);
break;
}
c = c->next;
@ -692,7 +692,7 @@ void ThumbView::updateItemContainer(ThumbItem *item) {
return;
}
c->items.append(item);
if (!tqcontains) {
if (!contains) {
c = c->next;
if (!c) {
appendContainer();
@ -711,10 +711,10 @@ ThumbItem* ThumbView::findItem(const TQPoint& pos) {
}
ThumbViewPrivate::ItemContainer *c = d->lastContainer;
for (; c; c = c->prev) {
if ( c->rect.tqcontains(pos) ) {
if ( c->rect.contains(pos) ) {
ThumbItem *item = c->items.last();
for ( ; item; item = c->items.prev()) {
if (item->rect().tqcontains( pos )) {
if (item->rect().contains( pos )) {
return item;
}
}

@ -278,7 +278,7 @@ void EXIFEditDialog::slotItemChanged()
setCaption(TQString("%1 (%2/%3) - %4")
.tqarg((*d->currItem).filename())
.tqarg(d->urls.tqfindIndex(*(d->currItem))+1)
.tqarg(d->urls.findIndex(*(d->currItem))+1)
.tqarg(d->urls.count())
.tqarg(i18n("Edit EXIF Metadata")) +
(d->isReadOnly ? TQString(" - ") + i18n("(read only)") : TQString()));

@ -304,7 +304,7 @@ void IPTCEditDialog::slotItemChanged()
setCaption(TQString("%1 (%2/%3) - %4")
.tqarg((*d->currItem).filename())
.tqarg(d->urls.tqfindIndex(*(d->currItem))+1)
.tqarg(d->urls.findIndex(*(d->currItem))+1)
.tqarg(d->urls.count())
.tqarg(i18n("Edit IPTC Metadata")) +
(d->isReadOnly ? TQString(" - ") + i18n("(read only)") : TQString()));

@ -83,34 +83,34 @@ if (MjpegToolsPath.isEmpty())
// ImageMagick external programs.
if (montage.exists(TQString (ImageMagickPath+"/montage")) == FALSE)
str = i18n("Cannot tqfind 'montage' binary program from ImageMagick package. Please install it.");
str = i18n("Cannot find 'montage' binary program from ImageMagick package. Please install it.");
if (composite.exists(TQString (ImageMagickPath+"/composite")) == FALSE)
str = i18n("Cannot tqfind 'composite' binary program from ImageMagick package. Please install it.");
str = i18n("Cannot find 'composite' binary program from ImageMagick package. Please install it.");
if (convert.exists(TQString (ImageMagickPath+"/convert")) == FALSE)
str = i18n("Cannot tqfind 'convert' binary program from ImageMagick package. Please install it.");
str = i18n("Cannot find 'convert' binary program from ImageMagick package. Please install it.");
if (identify.exists(TQString (ImageMagickPath+"/identify")) == FALSE)
str = i18n("Cannot tqfind 'identify' binary program from ImageMagick package. Please install it.");
str = i18n("Cannot find 'identify' binary program from ImageMagick package. Please install it.");
// MjpegTools external programs.
if (ppmtoy4m.exists(TQString (MjpegToolsPath+"/ppmtoy4m")) == FALSE)
str = i18n("Cannot tqfind 'ppmtoy4m' binary program from MjpegTools package. Please install it.");
str = i18n("Cannot find 'ppmtoy4m' binary program from MjpegTools package. Please install it.");
if (yuvscaler.exists(TQString (MjpegToolsPath+"/yuvscaler")) == FALSE)
str = i18n("Cannot tqfind 'yuvscaler' binary program from MjpegTools package. Please install it.");
str = i18n("Cannot find 'yuvscaler' binary program from MjpegTools package. Please install it.");
if (mpeg2enc.exists(TQString (MjpegToolsPath+"/mpeg2enc")) == FALSE)
str = i18n("Cannot tqfind 'mpeg2enc' binary program from MjpegTools package. Please install it.");
str = i18n("Cannot find 'mpeg2enc' binary program from MjpegTools package. Please install it.");
if ( mplex.exists(TQString (MjpegToolsPath+"/mplex")) == FALSE)
str = i18n("Cannot tqfind 'mplex' binary program from MjpegTools package. Please install it.");
str = i18n("Cannot find 'mplex' binary program from MjpegTools package. Please install it.");
if (mp2enc.exists(TQString (MjpegToolsPath+"/mp2enc")) == FALSE)
{
str = i18n("Cannot tqfind 'mp2enc' binary program from MjpegTools package. Please install it.\n"
str = i18n("Cannot find 'mp2enc' binary program from MjpegTools package. Please install it.\n"
"Audio capabilities will be disabled.");
ValRet = 2;
}

@ -565,19 +565,19 @@ else
# check if programs are installed
if [ ! -e $MONTAGE_BIN ]; then
echo -e "\nCan't tqfind $MONTAGE_BIN, please install it or check -I parameter"
echo -e "\nCan't find $MONTAGE_BIN, please install it or check -I parameter"
exit -1
fi
if [ ! -e $COMPOSITE_BIN ]; then
echo -e "\nCan't tqfind $COMPOSITE_BIN, please install it or check -I parameter"
echo -e "\nCan't find $COMPOSITE_BIN, please install it or check -I parameter"
exit -1
fi
if [ ! -e $CONVERT_BIN ]; then
echo -e "\nCan't tqfind $CONVERT_BIN, please install it or check -I parameter"
echo -e "\nCan't find $CONVERT_BIN, please install it or check -I parameter"
exit -1
fi
if [ ! -e $IDENTIFY_BIN ]; then
echo -e "\nCan't tqfind $IDENTIFY_BIN, please install it or check -I parameter"
echo -e "\nCan't find $IDENTIFY_BIN, please install it or check -I parameter"
exit -1
fi
fi
@ -602,31 +602,31 @@ else
fi
# check if programs are installed
if [ ! -e $PPMTOY4M_BIN ]; then
echo -e "\nCan't tqfind $PPMTOY4M_BIN, please install it or check -M parameter"
echo -e "\nCan't find $PPMTOY4M_BIN, please install it or check -M parameter"
exit -1
fi
if [ ! -e $YUVSCALER_BIN ]; then
echo -e "\nCan't tqfind $YUVSCALER_BIN, please install it or check -M parameter"
echo -e "\nCan't find $YUVSCALER_BIN, please install it or check -M parameter"
exit -1
fi
if [ ! -e $MPEG2ENC_BIN ]; then
echo -e "\nCan't tqfind $MPEG2ENC_BIN, please install it or check -M parameter"
echo -e "\nCan't find $MPEG2ENC_BIN, please install it or check -M parameter"
exit -1
fi
if [ ! -e $MP2ENC_BIN ]; then
echo -e "\nCan't tqfind $MP2ENC_BIN, please install it or check -M parameter"
echo -e "\nCan't find $MP2ENC_BIN, please install it or check -M parameter"
exit -1
fi
if [ ! -e $OGG_BIN ]; then
echo -e "\nCan't tqfind $OGG_BIN, please install it or check -M parameter"
echo -e "\nCan't find $OGG_BIN, please install it or check -M parameter"
exit -1
fi
if [ ! -e $MP3_BIN ]; then
echo -e "\nCan't tqfind $MP3_BIN, please install it or check -M parameter"
echo -e "\nCan't find $MP3_BIN, please install it or check -M parameter"
exit -1
fi
if [ ! -e $MPLEX_BIN ]; then
echo -e "\nCan't tqfind $MPLEX_BIN, please install it or check -M parameter"
echo -e "\nCan't find $MPLEX_BIN, please install it or check -M parameter"
exit -1
fi

@ -662,7 +662,7 @@ void KImg2mpgData::slotEncode( void )
if ( InputAudioFileName.isEmpty() == false )
{
if ( InputAudioFileName.tqfindRev(".mp2", -1, false) == -1 )
if ( InputAudioFileName.findRev(".mp2", -1, false) == -1 )
{
*m_Proc << "-w" << InputAudioFileName; // Input WAV/OGG/MP3 audio file name.
m_CommandLine = m_CommandLine + " -w \"" + InputAudioFileName + "\"";
@ -819,9 +819,9 @@ void KImg2mpgData::readStderr(KProcess *, char *buffer, int buflen)
m_DebugOuputMessages.append(BufferTmp.left(buflen));
if (m_EncodeString.tqcontains("Images encoding (%) :"))
if (m_EncodeString.contains("Images encoding (%) :"))
{
int pos1 = m_EncodeString.tqfind(':');
int pos1 = m_EncodeString.find(':');
if (pos1 != -1)
{
@ -829,7 +829,7 @@ void KImg2mpgData::readStderr(KProcess *, char *buffer, int buflen)
m_progress->setValue(newstring.toUInt());
}
int pos2 = m_EncodeString.tqfind('[');
int pos2 = m_EncodeString.find('[');
if (pos2 != -1)
{
@ -853,16 +853,16 @@ void KImg2mpgData::readStderr(KProcess *, char *buffer, int buflen)
{
// Print on the GUI the actual 'images2mpg' process.
if (m_EncodeString.tqcontains("Initialising..."))
if (m_EncodeString.contains("Initialising..."))
m_frame->setText(i18n("Initialising..."));
if (m_EncodeString.tqcontains("Merging MPEG flux..."))
if (m_EncodeString.contains("Merging MPEG flux..."))
{
m_frame->setText(i18n("Merging MPEG flux..."));
m_progress->setValue(100);
}
if (m_EncodeString.tqcontains("Encoding audio file..."))
if (m_EncodeString.contains("Encoding audio file..."))
{
m_frame->setText(i18n("Encoding audio file..."));
m_progress->setValue(100);
@ -870,10 +870,10 @@ void KImg2mpgData::readStderr(KProcess *, char *buffer, int buflen)
// Or errors detections...
if (m_EncodeString.tqcontains("cat:") ||
m_EncodeString.tqcontains("ERROR:") ||
m_EncodeString.tqcontains("Broken pipe") ||
m_EncodeString.tqcontains("No such file or directory"))
if (m_EncodeString.contains("cat:") ||
m_EncodeString.contains("ERROR:") ||
m_EncodeString.contains("Broken pipe") ||
m_EncodeString.contains("No such file or directory"))
{
m_Abort = true;

@ -456,7 +456,7 @@ bool PicasawebTalker::addPhoto(const TQString& photoPath, FPhotoInfo& info,
TQString rawFilesExt(KDcrawIface::KDcraw::rawFiles());
#endif
TQFileInfo fileInfo(photoPath);
if (rawFilesExt.upper().tqcontains(fileInfo.extension(false).upper()))
if (rawFilesExt.upper().contains(fileInfo.extension(false).upper()))
KDcrawIface::KDcraw::loadDcrawPreview(image, photoPath);
else
image.load(photoPath);
@ -680,7 +680,7 @@ void PicasawebTalker::parseResponseGetToken(const TQByteArray &data)
//if it is 403 handle the error mesg
//figure out the auth string from this response
if (str.tqfind("Auth="))
if (str.find("Auth="))
{
TQStringList strList = TQStringList::split("Auth=", str);
m_token = strList[1];
@ -743,7 +743,7 @@ void PicasawebTalker::parseResponseListAlbums(const TQByteArray &data)
// The node data is a URL of which album id is the string following the last /
// like <id>http://www.picasaweb.google.com/.../AlbumID<id>
TQString albumIdUrl = detailsNode.toElement().text();
int index = albumIdUrl.tqfindRev("/");
int index = albumIdUrl.findRev("/");
int length = albumIdUrl.length();
TQString album_id = albumIdUrl.right(length - index - 1);
fps.id = album_id;

@ -543,7 +543,7 @@ TQString FrmPrintWizard::captionFormatter(TPhoto *photo, const TQString& format)
if (imageSize.isValid()) {
resolution = TQString( "%1x%2" ).tqarg( imageSize.width()).tqarg( imageSize.height());
}
str.tqreplace("\\n", "\n");
str.replace("\\n", "\n");
// %f filename
// %c comment
@ -553,15 +553,15 @@ TQString FrmPrintWizard::captionFormatter(TPhoto *photo, const TQString& format)
// %r resolution
// %a aperture
// %l focal length
str.tqreplace("%f", fi.fileName());
str.tqreplace("%c", photo->exiv2Iface()->getExifComment());
str.tqreplace("%d", KGlobal::locale()->formatDateTime(photo->exiv2Iface()->getImageDateTime(),
str.replace("%f", fi.fileName());
str.replace("%c", photo->exiv2Iface()->getExifComment());
str.replace("%d", KGlobal::locale()->formatDateTime(photo->exiv2Iface()->getImageDateTime(),
false, false));
str.tqreplace("%t", photo->exiv2Iface()->getExifTagString("Exif.Photo.ExposureTime"));
str.tqreplace("%i", photo->exiv2Iface()->getExifTagString("Exif.Photo.ISOSpeedRatings"));
str.tqreplace("%r", resolution);
str.tqreplace("%a", photo->exiv2Iface()->getExifTagString("Exif.Photo.FNumber"));
str.tqreplace("%l", photo->exiv2Iface()->getExifTagString("Exif.Photo.FocalLength"));
str.replace("%t", photo->exiv2Iface()->getExifTagString("Exif.Photo.ExposureTime"));
str.replace("%i", photo->exiv2Iface()->getExifTagString("Exif.Photo.ISOSpeedRatings"));
str.replace("%r", resolution);
str.replace("%a", photo->exiv2Iface()->getExifTagString("Exif.Photo.FNumber"));
str.replace("%l", photo->exiv2Iface()->getExifTagString("Exif.Photo.FocalLength"));
return str;
}
@ -1330,7 +1330,7 @@ void FrmPrintWizard::loadSettings()
// photo size
TQString photoSize = config.readEntry("PhotoSize");
TQListBoxItem *item = ListPhotoSizes->tqfindItem(photoSize);
TQListBoxItem *item = ListPhotoSizes->findItem(photoSize);
if (item)
ListPhotoSizes->setCurrentItem(item);
else

@ -112,7 +112,7 @@ TQImage TPhoto::loadPhoto()
TQString rawFilesExt(KDcrawIface::KDcraw::rawFiles());
#endif
TQFileInfo fileInfo(filename.path());
if (rawFilesExt.upper().tqcontains( fileInfo.extension(false).upper() ))
if (rawFilesExt.upper().contains( fileInfo.extension(false).upper() ))
KDcrawIface::KDcraw::loadDcrawPreview(photo, filename.path());
else
photo.load(filename.path()); // PENDING(blackie) handle URL

@ -392,7 +392,7 @@ void BatchDialog::addItems(const TQStringList& itemList)
it != itemList.end(); ++it)
{
TQFileInfo fi(*it);
if (fi.exists() && !m_itemDict.tqfind(fi.fileName()))
if (fi.exists() && !m_itemDict.find(fi.fileName()))
{
RawItem *item = new RawItem;
item->directory = fi.dirPath();
@ -497,7 +497,7 @@ void BatchDialog::slotConvertBlinkTimerDone()
void BatchDialog::processing(const TQString& file)
{
TQString filename = TQFileInfo(file).fileName();
m_currentConvertItem = m_itemDict.tqfind(filename);
m_currentConvertItem = m_itemDict.find(filename);
if (m_currentConvertItem)
{
m_listView->setSelected(m_currentConvertItem->viewItem, true);
@ -627,7 +627,7 @@ void BatchDialog::customEvent(TQCustomEvent *event)
case(IDENTIFY):
{
TQFileInfo fi(d->filePath);
RawItem *rawItem = m_itemDict.tqfind(fi.fileName());
RawItem *rawItem = m_itemDict.find(fi.fileName());
if (rawItem)
{
if (!d->image.isNull())

@ -133,7 +133,7 @@ write_icc_profile (j_compress_ptr cinfo,
void
setup_read_icc_profile (j_decompress_ptr cinfo)
{
/* Tell the library to keep any APP2 data it may tqfind */
/* Tell the library to keep any APP2 data it may find */
jpeg_save_markers(cinfo, ICC_MARKER, 0xFFFF);
}

@ -128,7 +128,7 @@ bool Plugin_RawConverter::isRAWFile(const TQString& filePath)
#endif
TQFileInfo fileInfo(filePath);
if (rawFilesExt.upper().tqcontains( fileInfo.extension(false).upper() ))
if (rawFilesExt.upper().contains( fileInfo.extension(false).upper() ))
return true;
return false;

@ -303,7 +303,7 @@ bool RawDecodingIface::loadedFromDcraw(const TQString& filePath,
}
TQString libpngver(PNG_HEADER_VERSION_STRING);
libpngver.tqreplace('\n', ' ');
libpngver.replace('\n', ' ');
soft.append(TQString(" (%1)").tqarg(libpngver));
png_text text;
text.key = "Software";
@ -383,7 +383,7 @@ bool RawDecodingIface::loadedFromDcraw(const TQString& filePath,
#endif
TQString libtiffver(TIFFLIB_VERSION_STR);
libtiffver.tqreplace('\n', ' ');
libtiffver.replace('\n', ' ');
soft.append(TQString(" ( %1 )").tqarg(libtiffver));
TIFFSetField(tif, TIFFTAG_SOFTWARE, (const char*)soft.ascii());

@ -172,7 +172,7 @@ void SendImages::run()
}
else
{
commentItem = ItemName.left(ItemName.tqfindRev('.'));
commentItem = ItemName.left(ItemName.findRev('.'));
qDebug("commentItem is empty");
}
@ -183,12 +183,12 @@ void SendImages::run()
// Thunderbird does not like (). Replace them, BUG:131343
TempFileName.tqreplace(TQChar('('), "_").tqreplace(TQChar(')'), "_");
TempFileName.replace(TQChar('('), "_").replace(TQChar(')'), "_");
// and these characters are better eliminated, too ;-)
TempFileName.tqreplace(TQChar(','), "_").tqreplace(TQChar(' '), "_");
TempFileName.tqreplace(TQChar(';'), "_").tqreplace(TQChar('%'), "_");
TempFileName.tqreplace(TQChar('/'), "-").tqreplace(TQChar('?'), "");
TempFileName.tqreplace(TQChar('"'), "");
TempFileName.replace(TQChar(','), "_").replace(TQChar(' '), "_");
TempFileName.replace(TQChar(';'), "_").replace(TQChar('%'), "_");
TempFileName.replace(TQChar('/'), "-").replace(TQChar('?'), "");
TempFileName.replace(TQChar('"'), "");
//If TempFileName already exists, add a number oder increase number
if (entry_already_exists(m_filesSendList,m_tmp + TempFileName))
{
@ -216,7 +216,7 @@ void SendImages::run()
{
// Prepare resizing images.
//TQString imageNameFormat = TempFileName.tqreplace(TQChar('.'), "_") +
//TQString imageNameFormat = TempFileName.replace(TQChar('.'), "_") +
// extension(m_imageFormat);
qDebug( "Resizing %s-> '%s %s ' (%s ; %d )",imageName.ascii(),
@ -799,7 +799,7 @@ bool SendImages::resizeImageProcess(const TQString &SourcePath, const TQString &
TQString rawFilesExt(KDcrawIface::KDcraw::rawFiles());
#endif
TQFileInfo fileInfo(SourcePath);
if (rawFilesExt.upper().tqcontains( fileInfo.extension(false).upper() ))
if (rawFilesExt.upper().contains( fileInfo.extension(false).upper() ))
KDcrawIface::KDcraw::loadDcrawPreview(img, SourcePath);
else
img.load(SourcePath);
@ -865,7 +865,7 @@ void SendImages::slotMozillaExited(KProcess*)
m_mailAgentProc->disconnect(TQT_SIGNAL(processExited(KProcess *)), this, TQT_SLOT(slotMozillaExited(KProcess*)));
qDebug("Number of elements in m_filesSendList=%d, and in m_filesSendList_copy=%d)",(int)m_filesSendList.size(),(int)m_filesSendList_copy.size());
if ( m_mozillaStdErr.tqfind("No running window found") != -1 ) // No remote Mozilla | Netscape |
if ( m_mozillaStdErr.find("No running window found") != -1 ) // No remote Mozilla | Netscape |
{ // Thunderbird env. loaded !
m_mailAgentProc2 = new KProcess; // Init a new env.

@ -342,9 +342,9 @@ bool SimpleViewerExport::exportImages()
xmlDoc.appendChild( galleryElem );
galleryElem.setAttribute(TQString::tqfromLatin1("maxImageWidth"), m_configDlg->maxImageDimension());
galleryElem.setAttribute(TQString::tqfromLatin1("maxImageHeight"), m_configDlg->maxImageDimension());
galleryElem.setAttribute(TQString::tqfromLatin1("textColor"), TQString(m_configDlg->textColor().name()).tqreplace("#", "0x"));
galleryElem.setAttribute(TQString::tqfromLatin1("frameColor"), TQString(m_configDlg->frameColor().name()).tqreplace("#", "0x"));
galleryElem.setAttribute(TQString::tqfromLatin1("bgColor"), TQString(m_configDlg->backgroundColor().name()).tqreplace("#", "0x"));
galleryElem.setAttribute(TQString::tqfromLatin1("textColor"), TQString(m_configDlg->textColor().name()).replace("#", "0x"));
galleryElem.setAttribute(TQString::tqfromLatin1("frameColor"), TQString(m_configDlg->frameColor().name()).replace("#", "0x"));
galleryElem.setAttribute(TQString::tqfromLatin1("bgColor"), TQString(m_configDlg->backgroundColor().name()).replace("#", "0x"));
galleryElem.setAttribute(TQString::tqfromLatin1("frameWidth"), m_configDlg->frameWidth());
galleryElem.setAttribute(TQString::tqfromLatin1("stagePadding"), m_configDlg->stagePadding());
galleryElem.setAttribute(TQString::tqfromLatin1("thumbnailColumns"), m_configDlg->thumbnailColumns());
@ -385,7 +385,7 @@ bool SimpleViewerExport::exportImages()
#else
TQString rawFilesExt(KDcrawIface::KDcraw::rawFiles());
#endif
if (rawFilesExt.upper().tqcontains( fileInfo.extension(false).upper() ))
if (rawFilesExt.upper().contains( fileInfo.extension(false).upper() ))
KDcrawIface::KDcraw::loadDcrawPreview(image, url.path());
else
image.load(url.path());
@ -545,11 +545,11 @@ bool SimpleViewerExport::createIndex()
TQString indexTemplate = in.read();
infile.close();
indexTemplate.tqreplace("{TITLE}", m_configDlg->title());
indexTemplate.tqreplace("{COLOR}", m_configDlg->textColor().name());
indexTemplate.tqreplace("{BGCOLOR}", m_configDlg->backgroundColor().name());
indexTemplate.tqreplace("{HOSTURL}", m_hostURL);
indexTemplate.tqreplace("{HOSTNAME}", m_hostName);
indexTemplate.replace("{TITLE}", m_configDlg->title());
indexTemplate.replace("{COLOR}", m_configDlg->textColor().name());
indexTemplate.replace("{BGCOLOR}", m_configDlg->backgroundColor().name());
indexTemplate.replace("{HOSTURL}", m_hostURL);
indexTemplate.replace("{HOSTNAME}", m_hostName);
TQFile outfile(m_tempDir->name() + "/index.html");
outfile.open(IO_WriteOnly);

@ -198,7 +198,7 @@ namespace KIPISlideShowPlugin
void SlideShowLoader::checkIsIn(int index)
{
m_threadLock->lock();
if (m_loadingThreads->tqcontains(m_pathList[index].first))
if (m_loadingThreads->contains(m_pathList[index].first))
{
if ( (*m_loadingThreads)[m_pathList[index].first]->running() )
(*m_loadingThreads)[m_pathList[index].first]->wait();

@ -285,7 +285,7 @@ void GalleryWindow::slotAlbums( const TQValueList<GAlbum>& albumList )
}
else
{
TQListViewItem* tqparent = m_albumDict.tqfind( album.parent_ref_num );
TQListViewItem* tqparent = m_albumDict.find( album.parent_ref_num );
if ( tqparent )
{
GAlbumViewItem* item = new GAlbumViewItem( tqparent, album.title,
@ -316,7 +316,7 @@ void GalleryWindow::slotAlbums( const TQValueList<GAlbum>& albumList )
if (lastSelectedID > 0)
{
GAlbumViewItem* lastSelectedItem = m_albumDict.tqfind( lastSelectedID );
GAlbumViewItem* lastSelectedItem = m_albumDict.find( lastSelectedID );
if (lastSelectedItem)
{
m_albumView->setSelected( lastSelectedItem, true );

@ -27,7 +27,7 @@ SinkMap SinkFactory::mSinkProxies;
// Define the register method
bool SinkFactory::Register(TQString type, SinkProxy* pSinkProxy)
{
if (mSinkProxies.tqcontains(type))
if (mSinkProxies.contains(type))
return false;
mSinkProxies[type] = pSinkProxy;
@ -37,7 +37,7 @@ bool SinkFactory::Register(TQString type, SinkProxy* pSinkProxy)
// The main creation method
Sink* SinkFactory::Create(TQString type, unsigned int sinkId, TQString name, KConfig* pConfig, KWallet::Wallet* pWallet)
{
if (!mSinkProxies.tqcontains(type))
if (!mSinkProxies.contains(type))
return NULL;
return (*(mSinkProxies[type]))(sinkId, name, pConfig, pWallet);

@ -514,9 +514,9 @@ void GallerySink::parseResponseListPhotos(const TQByteArray &data)
}
else
{
// Boris the Gallery default URL tqcontains "=" char. So we will split the string only from the first "=" char
// Boris the Gallery default URL contains "=" char. So we will split the string only from the first "=" char
TQStringList strlist = TQStringList();
strlist << line.left(line.tqfind('=')) << line.mid(line.tqfind('=')+1);
strlist << line.left(line.find('=')) << line.mid(line.find('=')+1);
if (strlist.count() >= 2)
{
TQString key = strlist[0];
@ -545,7 +545,7 @@ void GallerySink::parseResponseListPhotos(const TQByteArray &data)
}
else if (key.startsWith("baseurl"))
{
albumURL = value.tqreplace("\\","");
albumURL = value.replace("\\","");
}
}
}

Loading…
Cancel
Save