Replace TQ_*Focus* and TQ_Scale* defines

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/9/head
Michele Calgaro 1 year ago
parent 074a3e6db6
commit d82c9bd8b6
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -69,7 +69,7 @@ void barcodeRecognitionThread::run()
// //DEBUG
if (!img.isNull()) {
TQImage preview = img.scale( 320, 240, TQ_ScaleMin );
TQImage preview = img.scale( 320, 240, TQImage::ScaleMin );
emit gotImage( preview );
Barcode_EAN13 barcode = recognize( img );
if (barcode.isValid() && (old != barcode)) {

@ -30,7 +30,7 @@ TQPixmap* EntryIconFactory::createPixmap(const TQIconSet&, TQIconSet::Size, TQIc
// if we're 22x22 or smaller, just use entry icon
if(m_size < 23) {
TQImage entryImg = entryPix.convertToImage();
entryPix.convertFromImage(entryImg.smoothScale(m_size, m_size, TQ_ScaleMin), 0);
entryPix.convertFromImage(entryImg.smoothScale(m_size, m_size, TQImage::ScaleMin), 0);
return new TQPixmap(entryPix);
}

@ -105,7 +105,7 @@ const TQPixmap& EntryIconView::defaultPixmap() {
tmp = UserIcon(TQString::fromLatin1("tellico"));
}
if(TQMAX(tmp.width(), tmp.height()) > static_cast<int>(MIN_ENTRY_ICON_SIZE)) {
tmp.convertFromImage(tmp.convertToImage().smoothScale(m_maxIconWidth, m_maxIconHeight, TQ_ScaleMin));
tmp.convertFromImage(tmp.convertToImage().smoothScale(m_maxIconWidth, m_maxIconHeight, TQImage::ScaleMin));
}
pix = new TQPixmap(tmp);
m_defaultPixmaps.insert(m_coll->type(), pix);

@ -540,7 +540,7 @@ void Dialog::slotPreviewResult(TDEIO::Job* job_) {
if(!pix.isNull()) {
if(pix.width() > 64 || pix.height() > 64) {
pix.convertFromImage(pix.convertToImage().smoothScale(64, 64, TQ_ScaleMin));
pix.convertFromImage(pix.convertToImage().smoothScale(64, 64, TQImage::ScaleMin));
}
// only set label if it's still current
if(m_listView->selectedItem() == m_lastPreviewItem) {

@ -167,11 +167,11 @@ bool AlexandriaExporter::writeFile(const TQDir& dir_, Data::ConstEntryPtr entry_
TQString filename = dir_.absPath() + TQDir::separator() + isbn;
if(img1.height() > ALEXANDRIA_MAX_SIZE_SMALL) {
if(img1.height() > ALEXANDRIA_MAX_SIZE_MEDIUM) { // limit maximum size
img1 = img1.scale(ALEXANDRIA_MAX_SIZE_MEDIUM, ALEXANDRIA_MAX_SIZE_MEDIUM, TQ_ScaleMin);
img1 = img1.scale(ALEXANDRIA_MAX_SIZE_MEDIUM, ALEXANDRIA_MAX_SIZE_MEDIUM, TQImage::ScaleMin);
}
img2 = img1.scale(ALEXANDRIA_MAX_SIZE_SMALL, ALEXANDRIA_MAX_SIZE_SMALL, TQ_ScaleMin);
img2 = img1.scale(ALEXANDRIA_MAX_SIZE_SMALL, ALEXANDRIA_MAX_SIZE_SMALL, TQImage::ScaleMin);
} else {
img2 = img1.smoothScale(ALEXANDRIA_MAX_SIZE_MEDIUM, ALEXANDRIA_MAX_SIZE_MEDIUM, TQ_ScaleMin); // scale up
img2 = img1.smoothScale(ALEXANDRIA_MAX_SIZE_MEDIUM, ALEXANDRIA_MAX_SIZE_MEDIUM, TQImage::ScaleMin); // scale up
}
if(!img1.save(filename + TQString::fromLatin1("_medium.jpg"), "JPEG")
|| !img2.save(filename + TQString::fromLatin1("_small.jpg"), "JPEG")) {

Loading…
Cancel
Save