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->takeItem(pitem);
m_listFiles->setSelected( m_listFiles->currentItem(), true ); 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; delete pitem;
m_nbItem = m_selectedImageFiles.count(); m_nbItem = m_selectedImageFiles.count();
@ -1062,7 +1062,7 @@ TQString BatchProcessImagesDialog::RenameTargetImageFile(TQFileInfo *fi)
{ {
++Enumerator; ++Enumerator;
Temp = Temp.setNum( 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 ); + "." + fi->filePath().section('.', -1 );
} }
while ( Enumerator < 100 && while ( Enumerator < 100 &&

@ -357,7 +357,7 @@ TQString ConvertImagesDialog::oldFileName2NewFileName(TQString fileName)
{ {
TQString Temp; 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. Temp = Temp + "." + ImageFileExt(m_Type->currentText()); // Added new file extension.
return Temp; return Temp;

@ -349,9 +349,9 @@ TQString RenameImagesWidget::oldToNewName(BatchProcessImagesItem* item,
{ {
TQString format = m_formatDateEdit->text(); TQString format = m_formatDateEdit->text();
format = format.simplifyWhiteSpace(); format = format.simplifyWhiteSpace();
format.tqreplace("%%","%"); format.replace("%%","%");
format.tqreplace("%s",""); format.replace("%s","");
format.tqreplace("/", ""); format.replace("/", "");
time_t time = info.time().toTime_t(); time_t time = info.time().toTime_t();
struct tm* time_tm = ::localtime(&time); struct tm* time_tm = ::localtime(&time);
@ -522,7 +522,7 @@ void RenameImagesWidget::slotAddImages()
for (KURL::List::iterator it = urls.begin(); it != urls.end(); ++it) for (KURL::List::iterator it = urls.begin(); it != urls.end(); ++it)
{ {
if (m_urlList.tqcontains(*it)) if (m_urlList.contains(*it))
continue; continue;
new BatchProcessImagesItem(m_listView, 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 ! 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) ); 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) ); m_yPixels = (int)( (float)(Temp.toInt() * Dpi) / (float)(2.54) );
} }
else 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) ); 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) ); m_xPixels = (int)( (float)(Temp.toInt() * Dpi) / (float)(2.54) );
} }
} }

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

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

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

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

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

@ -344,7 +344,7 @@ void DisplayCompare::slotDisplayLeft(TQListViewItem * item)
KApplication::setOverrideCursor( waitCursor ); KApplication::setOverrideCursor( waitCursor );
listEq->clear(); listEq->clear();
FindOriginalItem *pitem = static_cast<FindOriginalItem*>( item ); 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()); TQImage im(pitem->fullpath());
if ( !im.isNull() ) if ( !im.isNull() )

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

@ -167,7 +167,7 @@ void FindDuplicateDialog::setupPageMethod(void)
m_approximateThreshold = new KIntNumInput(88, groupBox1); m_approximateThreshold = new KIntNumInput(88, groupBox1);
m_approximateThreshold->setRange(60, 100, 1, true ); m_approximateThreshold->setRange(60, 100, 1, true );
TQWhatsThis::add( m_approximateThreshold, i18n("<p>Select here the approximate threshold " 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 " "This value is used by the algorithm to distinguish two "
"similar images. The default value is 88.") ); "similar images. The default value is 88.") );
vlay->addWidget( groupBox1 ); vlay->addWidget( groupBox1 );
@ -175,7 +175,7 @@ void FindDuplicateDialog::setupPageMethod(void)
//--------------------------------------------- //---------------------------------------------
TQGroupBox * groupBox2 = new TQGroupBox( 1, Qt::Horizontal, i18n("Cache Maintenance"), page_setupMethod ); 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); "to speed up the analysis of items from Albums."), groupBox2);
TQPushButton* updateCache = new TQPushButton( groupBox2, "UpdateCache" ); TQPushButton* updateCache = new TQPushButton( groupBox2, "UpdateCache" );
@ -239,7 +239,7 @@ void FindDuplicateDialog::slotUpdateCache(void)
for( TQValueList<KIPI::ImageCollection>::ConstIterator album = albumsList.begin() ; for( TQValueList<KIPI::ImageCollection>::ConstIterator album = albumsList.begin() ;
album != albumsList.end() ; ++album ) album != albumsList.end() ; ++album )
{ {
if ( !albumsListPath.tqcontains( (*album).path().path() ) ) if ( !albumsListPath.contains( (*album).path().path() ) )
albumsListPath.append( (*album).path().path() ); albumsListPath.append( (*album).path().path() );
} }
@ -261,7 +261,7 @@ void FindDuplicateDialog::slotPurgeCache(void)
for( TQValueList<KIPI::ImageCollection>::ConstIterator album = albumsList.begin() ; for( TQValueList<KIPI::ImageCollection>::ConstIterator album = albumsList.begin() ;
album != albumsList.end() ; ++album ) album != albumsList.end() ; ++album )
{ {
if ( !albumsListPath.tqcontains( (*album).path().path() ) ) if ( !albumsListPath.contains( (*album).path().path() ) )
albumsListPath.append( (*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 ) 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 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. // Create the 'ImageSimilarityData' data for the first image.
ImageSimilarityData *i1 = list->at(i); 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 ); sendMessage( m_parent, KIPIFindDupplicateImagesPlugin::Similar, i1->filename, 0, true, false );
@ -122,14 +122,14 @@ TQDict < TQPtrVector < TQFile > > KIPIFindDupplicateImagesPlugin::FuzzyCompare:
TQPtrVector < TQFile > *vect; TQPtrVector < TQFile > *vect;
// Add file to the list. // Add file to the list.
if (!res.tqfind (i1->filename)) if (!res.find (i1->filename))
{ {
vect = new TQPtrVector < TQFile >; vect = new TQPtrVector < TQFile >;
vect->setAutoDelete(true); vect->setAutoDelete(true);
res.insert (i1->filename, vect); res.insert (i1->filename, vect);
} }
else else
vect = (TQPtrVector < TQFile > *)res.tqfind(i1->filename); vect = (TQPtrVector < TQFile > *)res.find(i1->filename);
vect->resize (vect->size () + 1); vect->resize (vect->size () + 1);
vect->insert (vect->size () - 1, new TQFile(i2->filename)); 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()); TQString rawFilesExt(KDcrawIface::KDcraw::rawFiles());
#endif #endif
TQFileInfo fileInfo(photoPath); TQFileInfo fileInfo(photoPath);
if (rawFilesExt.upper().tqcontains(fileInfo.extension(false).upper())) if (rawFilesExt.upper().contains(fileInfo.extension(false).upper()))
KDcrawIface::KDcraw::loadDcrawPreview(image, photoPath); KDcrawIface::KDcraw::loadDcrawPreview(image, photoPath);
else else
image.load(photoPath); image.load(photoPath);

@ -352,7 +352,7 @@ void FlickrWindow::slotAlbums( const TQValueList<GAlbum>& albumList )
} }
else else
{ {
TQListViewItem* tqparent = m_albumDict.tqfind( album.parent_ref_num ); TQListViewItem* tqparent = m_albumDict.find( album.parent_ref_num );
if ( tqparent ) if ( tqparent )
{ {
GAlbumViewItem* item = new GAlbumViewItem( tqparent, album.name, GAlbumViewItem* item = new GAlbumViewItem( tqparent, album.name,
@ -383,7 +383,7 @@ void FlickrWindow::slotAlbums( const TQValueList<GAlbum>& albumList )
if (lastSelectedID > 0) if (lastSelectedID > 0)
{ {
GAlbumViewItem* lastSelectedItem = m_albumDict.tqfind( lastSelectedID ); GAlbumViewItem* lastSelectedItem = m_albumDict.find( lastSelectedID );
if (lastSelectedItem) if (lastSelectedItem)
{ {
m_tagView->setSelected( lastSelectedItem, true ); 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. // Check if the new item already exist in the list.
bool tqfind = false; bool find = false;
TQListViewItemIterator it(d->listView); TQListViewItemIterator it(d->listView);
while (it.current()) while (it.current())
@ -234,12 +234,12 @@ void ImagesList::slotAddImages(const KURL::List& list)
ImagesListViewItem* item = dynamic_cast<ImagesListViewItem*>(*it); ImagesListViewItem* item = dynamic_cast<ImagesListViewItem*>(*it);
if (item->url() == imageUrl) if (item->url() == imageUrl)
tqfind = true; find = true;
++it; ++it;
} }
if (!tqfind) if (!find)
{ {
new ImagesListViewItem(d->listView, imageUrl); new ImagesListViewItem(d->listView, imageUrl);
urls.append(imageUrl); urls.append(imageUrl);
@ -280,10 +280,10 @@ void ImagesList::slotAddItems()
void ImagesList::slotRemoveItems() void ImagesList::slotRemoveItems()
{ {
bool tqfind; bool find;
do do
{ {
tqfind = false; find = false;
TQListViewItemIterator it(d->listView); TQListViewItemIterator it(d->listView);
while (it.current()) while (it.current())
{ {
@ -291,23 +291,23 @@ void ImagesList::slotRemoveItems()
if (item->isSelected()) if (item->isSelected())
{ {
delete item; delete item;
tqfind = true; find = true;
break; break;
} }
++it; ++it;
} }
} }
while(tqfind); while(find);
emit signalImageListChanged(imageUrls().isEmpty()); emit signalImageListChanged(imageUrls().isEmpty());
} }
void ImagesList::removeItemByUrl(const KURL& url) void ImagesList::removeItemByUrl(const KURL& url)
{ {
bool tqfind; bool find;
do do
{ {
tqfind = false; find = false;
TQListViewItemIterator it(d->listView); TQListViewItemIterator it(d->listView);
while (it.current()) while (it.current())
{ {
@ -315,13 +315,13 @@ void ImagesList::removeItemByUrl(const KURL& url)
if (item->url() == url) if (item->url() == url)
{ {
delete item; delete item;
tqfind = true; find = true;
break; break;
} }
++it; ++it;
} }
} }
while(tqfind); while(find);
emit signalImageListChanged(imageUrls().isEmpty()); emit signalImageListChanged(imageUrls().isEmpty());
} }

@ -509,9 +509,9 @@ void GalleryTalker::parseResponseListPhotos(const TQByteArray &data)
} }
else 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(); 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) if (strlist.count() >= 2)
{ {
TQString key = strlist[0]; TQString key = strlist[0];
@ -540,7 +540,7 @@ void GalleryTalker::parseResponseListPhotos(const TQByteArray &data)
} }
else if (key.startsWith("baseurl")) else if (key.startsWith("baseurl"))
{ {
albumURL = value.tqreplace("\\",""); albumURL = value.replace("\\","");
} }
} }
} }

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

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

@ -39,7 +39,7 @@ It's a .ini-style file and looks like this:
Url=http://example.com/themes/helloworld Url=http://example.com/themes/helloworld
We use a desktop file format so that entries can be translated. If you look at 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: something like this:
[Desktop Entry] [Desktop Entry]
@ -78,7 +78,7 @@ Rename the desktop file accordingly:
cd snow2 cd snow2
mv snow.desktop snow2.desktop 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`. with `Name=Snow 2`.
You are done, you can now open your favorite KIPI enabled application and start the 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(); fileName=fileName.lower();
// Remove potentially troublesome chars // Remove potentially troublesome chars
fileName=fileName.tqreplace(TQRegExp("[^-0-9a-z]+"), "_"); fileName=fileName.replace(TQRegExp("[^-0-9a-z]+"), "_");
return fileName; return fileName;
} }
@ -80,7 +80,7 @@ public:
TQString makeNameUnique(TQString name) { TQString makeNameUnique(TQString name) {
TQString nameBase = name; TQString nameBase = name;
int count=2; int count=2;
while (mList.tqfindIndex(name)!=-1) { while (mList.findIndex(name)!=-1) {
name = nameBase + TQString::number(count); name = nameBase + TQString::number(count);
++count; ++count;
}; };
@ -106,11 +106,11 @@ TQCString makeXsltParam(const TQString& txt) {
static const char apos='\''; static const char apos='\'';
static const char quote='"'; static const char quote='"';
if (txt.tqfind(apos)==-1) { if (txt.find(apos)==-1) {
// First or second case: no apos // First or second case: no apos
param= apos + txt + apos; param= apos + txt + apos;
} else if (txt.tqfind(quote)==-1) { } else if (txt.find(quote)==-1) {
// Third case: only apos, no quote // Third case: only apos, no quote
param= quote + txt + quote; param= quote + txt + quote;

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

@ -106,7 +106,7 @@ bool Texture::load(TQString fn, TQSize size, GLuint tn)
TQString rawFilesExt(KDcrawIface::KDcraw::rawFiles()); TQString rawFilesExt(KDcrawIface::KDcraw::rawFiles());
#endif #endif
TQFileInfo fileInfo(fn); 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 // it's a RAW file, use the libkdcraw loader
KDcrawIface::KDcraw::loadDcrawPreview(qimage, fn); KDcrawIface::KDcraw::loadDcrawPreview(qimage, fn);
} else { } else {

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

@ -258,7 +258,7 @@ bool ImageGrayScale::image2GrayScaleImageMagick(const TQString& src, const TQStr
} }
// Processing error ! // 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; return false;
} }

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

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

@ -175,7 +175,7 @@ bool Utils::updateMetadataImageMagick(const TQString& src, TQString& err)
} }
// Processing error ! // 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; return false;
} }
@ -199,7 +199,7 @@ bool Utils::isRAW(const TQString& file)
#endif #endif
TQFileInfo fileInfo(file); TQFileInfo fileInfo(file);
if (rawFilesExt.upper().tqcontains( fileInfo.extension(false).upper() )) if (rawFilesExt.upper().contains( fileInfo.extension(false).upper() ))
return true; return true;
return false; return false;

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

@ -150,7 +150,7 @@ TQPtrList<CameraType>* CameraList::cameraList() {
return &d->clist; 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()) { for (CameraType *ctype = d->clist.first(); ctype; ctype = d->clist.next()) {
if (ctype->model() == model) { if (ctype->model() == model) {
return ctype; return ctype;

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

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

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

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

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

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

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

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

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

@ -83,34 +83,34 @@ if (MjpegToolsPath.isEmpty())
// ImageMagick external programs. // ImageMagick external programs.
if (montage.exists(TQString (ImageMagickPath+"/montage")) == FALSE) 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) 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) 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) 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. // MjpegTools external programs.
if (ppmtoy4m.exists(TQString (MjpegToolsPath+"/ppmtoy4m")) == FALSE) 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) 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) 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) 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) 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."); "Audio capabilities will be disabled.");
ValRet = 2; ValRet = 2;
} }

@ -565,19 +565,19 @@ else
# check if programs are installed # check if programs are installed
if [ ! -e $MONTAGE_BIN ]; then 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 exit -1
fi fi
if [ ! -e $COMPOSITE_BIN ]; then 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 exit -1
fi fi
if [ ! -e $CONVERT_BIN ]; then 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 exit -1
fi fi
if [ ! -e $IDENTIFY_BIN ]; then 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 exit -1
fi fi
fi fi
@ -602,31 +602,31 @@ else
fi fi
# check if programs are installed # check if programs are installed
if [ ! -e $PPMTOY4M_BIN ]; then 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 exit -1
fi fi
if [ ! -e $YUVSCALER_BIN ]; then 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 exit -1
fi fi
if [ ! -e $MPEG2ENC_BIN ]; then 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 exit -1
fi fi
if [ ! -e $MP2ENC_BIN ]; then 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 exit -1
fi fi
if [ ! -e $OGG_BIN ]; then 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 exit -1
fi fi
if [ ! -e $MP3_BIN ]; then 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 exit -1
fi fi
if [ ! -e $MPLEX_BIN ]; then 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 exit -1
fi fi

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

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

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

@ -112,7 +112,7 @@ TQImage TPhoto::loadPhoto()
TQString rawFilesExt(KDcrawIface::KDcraw::rawFiles()); TQString rawFilesExt(KDcrawIface::KDcraw::rawFiles());
#endif #endif
TQFileInfo fileInfo(filename.path()); 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()); KDcrawIface::KDcraw::loadDcrawPreview(photo, filename.path());
else else
photo.load(filename.path()); // PENDING(blackie) handle URL photo.load(filename.path()); // PENDING(blackie) handle URL

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

@ -133,7 +133,7 @@ write_icc_profile (j_compress_ptr cinfo,
void void
setup_read_icc_profile (j_decompress_ptr cinfo) 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); jpeg_save_markers(cinfo, ICC_MARKER, 0xFFFF);
} }

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

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

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

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

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

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

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

@ -514,9 +514,9 @@ void GallerySink::parseResponseListPhotos(const TQByteArray &data)
} }
else 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(); 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) if (strlist.count() >= 2)
{ {
TQString key = strlist[0]; TQString key = strlist[0];
@ -545,7 +545,7 @@ void GallerySink::parseResponseListPhotos(const TQByteArray &data)
} }
else if (key.startsWith("baseurl")) else if (key.startsWith("baseurl"))
{ {
albumURL = value.tqreplace("\\",""); albumURL = value.replace("\\","");
} }
} }
} }

Loading…
Cancel
Save