// KDE
@@ -89,7 +89,7 @@ void FileOpObject::slotResult(KIO::Job* job) {
void FileOpObject::polishJob(KIO::Job* job) {
- job->setWindow(mParent->tqtopLevelWidget());
+ job->setWindow(mParent->topLevelWidget());
connect( job, TQT_SIGNAL( result(KIO::Job*) ),
this, TQT_SLOT( slotResult(KIO::Job*) ) );
}
@@ -259,7 +259,7 @@ void FileOpTrashObject::operator()() {
} else {
TQString filename=TQStyleSheet::escape(mURLList.first().filename());
response=KMessageBox::warningContinueCancel(mParent,
- i18n("Do you really want to move %1 to the trash?
").tqarg(filename),i18n("Trash used as a verb", "Trash File"),KGuiItem(i18n("Trash used as a verb", "&Trash"),"edittrash"));
+ i18n("Do you really want to move %1 to the trash?
").arg(filename),i18n("Trash used as a verb", "Trash File"),KGuiItem(i18n("Trash used as a verb", "&Trash"),"edittrash"));
}
if (response!=KMessageBox::Continue) return;
}
@@ -287,7 +287,7 @@ void FileOpRealDeleteObject::operator()() {
} else {
TQString filename=TQStyleSheet::escape(mURLList.first().filename());
response=KMessageBox::warningContinueCancel(mParent,
- i18n("Do you really want to delete %1?
").tqarg(filename),
+ i18n("Do you really want to delete %1?
").arg(filename),
i18n("Delete File"),
KStdGuiItem::del()
);
@@ -309,7 +309,7 @@ void FileOpRenameObject::operator()() {
TQString filename = srcURL.filename();
InputDialog dlg(mParent);
dlg.setCaption(i18n("Renaming File"));
- dlg.setLabel(i18n("Rename file %1 to:
").tqarg(TQStyleSheet::escape(filename)));
+ dlg.setLabel(i18n("Rename file %1 to:
").arg(TQStyleSheet::escape(filename)));
dlg.setButtonOK( KGuiItem(i18n("&Rename"), "edit") );
dlg.lineEdit()->setText(filename);
diff --git a/src/gvcore/filethumbnailview.cpp b/src/gvcore/filethumbnailview.cpp
index 51445be..cc338ca 100644
--- a/src/gvcore/filethumbnailview.cpp
+++ b/src/gvcore/filethumbnailview.cpp
@@ -21,7 +21,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
// TQt
#include
-#include
+#include
#include
#include
#include
@@ -77,8 +77,8 @@ public:
ProgressWidget(FileThumbnailView* view, int count)
: TQFrame(view)
{
- TQHBoxLayout* tqlayout=new TQHBoxLayout(this, 3, 3);
- tqlayout->setAutoAdd(true);
+ TQHBoxLayout* layout=new TQHBoxLayout(this, 3, 3);
+ layout->setAutoAdd(true);
setFrameStyle( TQFrame::StyledPanel | TQFrame::Raised );
mStop=new TQPushButton(this);
@@ -93,7 +93,7 @@ public:
void polish() {
TQFrame::polish();
- setMinimumWidth(tqlayout()->tqminimumSize().width());
+ setMinimumWidth(layout()->minimumSize().width());
//setFixedHeight( mProgressBar->height() );
setFixedHeight( mStop->height() );
}
@@ -142,7 +142,7 @@ struct FileThumbnailView::Private {
mWaitThumbnail.fill(view->paletteBackgroundColor());
TQPainter painter(&mWaitThumbnail);
- painter.setPen(view->tqcolorGroup().button());
+ painter.setPen(view->colorGroup().button());
painter.drawRect(0,0,mThumbnailSize,mThumbnailSize);
painter.drawPixmap(
(mThumbnailSize-mWaitPixmap.width())/2,
@@ -285,7 +285,7 @@ void FileThumbnailView::setThumbnailPixmap(const KFileItem* fileItem, const TQPi
if (size.isValid()) {
iconItem->setImageSize(size);
}
- iconItem->tqrepaint();
+ iconItem->repaint();
// Notify progress
if (d->mProgressWidget) {
diff --git a/src/gvcore/filethumbnailviewitem.cpp b/src/gvcore/filethumbnailviewitem.cpp
index 65da494..cd607b7 100644
--- a/src/gvcore/filethumbnailviewitem.cpp
+++ b/src/gvcore/filethumbnailviewitem.cpp
@@ -271,16 +271,16 @@ void FileThumbnailViewItem::calcRect(const TQString&) {
textH+=(*it)->height();
}
- TQRect tqitemRect(x(), y(), view->gridX(), 0);
+ TQRect itemRect(x(), y(), view->gridX(), 0);
TQRect itemPixmapRect(PADDING, PADDING, thumbnailSize, thumbnailSize);
TQRect itemTextRect(0, 0, textW, textH);
if (isRight) {
- tqitemRect.setHeight( TQMAX(thumbnailSize + PADDING*2, textH) );
+ itemRect.setHeight( TQMAX(thumbnailSize + PADDING*2, textH) );
itemTextRect.moveLeft(thumbnailSize + PADDING * 2 );
- itemTextRect.moveTop((tqitemRect.height() - textH)/2);
+ itemTextRect.moveTop((itemRect.height() - textH)/2);
} else {
- itemPixmapRect.moveLeft( (tqitemRect.width() - itemPixmapRect.width()) / 2 );
- tqitemRect.setHeight(thumbnailSize + PADDING*3 + textH);
+ itemPixmapRect.moveLeft( (itemRect.width() - itemPixmapRect.width()) / 2 );
+ itemRect.setHeight(thumbnailSize + PADDING*3 + textH);
itemTextRect.moveLeft(PADDING);
itemTextRect.moveTop(thumbnailSize + PADDING * 2);
}
@@ -292,8 +292,8 @@ void FileThumbnailViewItem::calcRect(const TQString&) {
if ( itemTextRect != textRect() ) {
setTextRect( itemTextRect );
}
- if ( tqitemRect != rect() ) {
- setItemRect( tqitemRect );
+ if ( itemRect != rect() ) {
+ setItemRect( itemRect );
}
}
diff --git a/src/gvcore/filethumbnailviewitem.h b/src/gvcore/filethumbnailviewitem.h
index b242355..d3a1063 100644
--- a/src/gvcore/filethumbnailviewitem.h
+++ b/src/gvcore/filethumbnailviewitem.h
@@ -52,7 +52,7 @@ public:
void updateLines();
protected:
- void paintItem(TQPainter* painter, const TQColorGroup& tqcolorGroup);
+ void paintItem(TQPainter* painter, const TQColorGroup& colorGroup);
void calcRect( const TQString& text_=TQString() );
void paintFocus(TQPainter*, const TQColorGroup&) {}
bool acceptDrop(const TQMimeSource*) const;
diff --git a/src/gvcore/fileviewcontroller.cpp b/src/gvcore/fileviewcontroller.cpp
index bdacf01..7222c27 100644
--- a/src/gvcore/fileviewcontroller.cpp
+++ b/src/gvcore/fileviewcontroller.cpp
@@ -23,7 +23,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
#include
#include
#include
-#include
+#include
#include
#include
#include
@@ -191,7 +191,7 @@ public:
void initFilterBar() {
mFilterBar=new FilterBar(that);
- mFilterBar->tqsetSizePolicy(TQSizePolicy::Preferred, TQSizePolicy::Fixed);
+ mFilterBar->setSizePolicy(TQSizePolicy::Preferred, TQSizePolicy::Fixed);
mFilterBar->hide();
TQIconSet resetIS=BarIcon("locationbar_erase");
@@ -256,7 +256,7 @@ FileViewController::FileViewController(TQWidget* parent,KActionCollection* actio
: TQWidget(parent)
, mMode(FILE_LIST)
, mPrefetch( NULL )
-, mChangeDirtqStatus(CHANGE_DIR_STATUS_NONE)
+, mChangeDirStatus(CHANGE_DIR_STATUS_NONE)
, mBrowsing(false)
, mSelecting(false)
{
@@ -268,10 +268,10 @@ FileViewController::FileViewController(TQWidget* parent,KActionCollection* actio
d->initFilterCombo();
d->mStack=new TQWidgetStack(this);
- TQVBoxLayout *tqlayout=new TQVBoxLayout(this);
- tqlayout->addWidget(d->mToolBar);
- tqlayout->addWidget(d->mFilterBar);
- tqlayout->addWidget(d->mStack);
+ TQVBoxLayout *layout=new TQVBoxLayout(this);
+ layout->addWidget(d->mToolBar);
+ layout->addWidget(d->mFilterBar);
+ layout->addWidget(d->mStack);
// Actions
mSelectFirst=new KAction(i18n("&First"),
@@ -338,7 +338,7 @@ FileViewController::FileViewController(TQWidget* parent,KActionCollection* actio
// Dir lister
mDirLister=new DirLister;
- mDirLister->setMainWindow(tqtopLevelWidget());
+ mDirLister->setMainWindow(topLevelWidget());
connect(mDirLister,TQT_SIGNAL(clear()),
TQT_TQOBJECT(this),TQT_SLOT(dirListerClear()) );
@@ -575,13 +575,13 @@ void FileViewController::slotSelectNext() {
}
void FileViewController::slotSelectPreviousDir() {
- mChangeDirtqStatus = CHANGE_DIR_STATUS_PREV;
+ mChangeDirStatus = CHANGE_DIR_STATUS_PREV;
mDirLister->clearError();
mDirLister->openURL(mDirURL.upURL());
}
void FileViewController::slotSelectNextDir() {
- mChangeDirtqStatus = CHANGE_DIR_STATUS_NEXT;
+ mChangeDirStatus = CHANGE_DIR_STATUS_NEXT;
mDirLister->clearError();
mDirLister->openURL(mDirURL.upURL());
}
@@ -747,7 +747,7 @@ void FileViewController::updateViewMode() {
void FileViewController::updateThumbnailSize(int size) {
size*=SLIDER_RESOLUTION;
- d->mSliderTracker->setText(i18n("Thumbnail size: %1x%2").tqarg(size).tqarg(size));
+ d->mSliderTracker->setText(i18n("Thumbnail size: %1x%2").arg(size).arg(size));
FileViewConfig::setThumbnailSize(size);
mFileThumbnailView->setThumbnailSize(size);
Cache::instance()->checkThumbnailSize(size);
@@ -1102,12 +1102,12 @@ void FileViewController::delayedDirListerCompleted() {
mFileThumbnailView->sort(mFileThumbnailView->sortDirection());
}
- if (mChangeDirtqStatus != CHANGE_DIR_STATUS_NONE) {
+ if (mChangeDirStatus != CHANGE_DIR_STATUS_NONE) {
KFileItem *item;
TQString fileName = mDirURL.filename();
for (item=currentFileView()->firstFileItem(); item; item=currentFileView()->nextItem(item) ) {
if (item->name() == fileName) {
- if (mChangeDirtqStatus == CHANGE_DIR_STATUS_NEXT) {
+ if (mChangeDirStatus == CHANGE_DIR_STATUS_NEXT) {
do {
item=currentFileView()->nextItem(item);
} while (item && !Archive::fileItemIsDirOrArchive(item));
@@ -1119,7 +1119,7 @@ void FileViewController::delayedDirListerCompleted() {
break;
};
}
- mChangeDirtqStatus = CHANGE_DIR_STATUS_NONE;
+ mChangeDirStatus = CHANGE_DIR_STATUS_NONE;
if (!item) {
mDirLister->openURL(mDirURL);
} else {
diff --git a/src/gvcore/fileviewcontroller.h b/src/gvcore/fileviewcontroller.h
index de0de53..8339659 100644
--- a/src/gvcore/fileviewcontroller.h
+++ b/src/gvcore/fileviewcontroller.h
@@ -227,7 +227,7 @@ private:
CHANGE_DIR_STATUS_NONE,
CHANGE_DIR_STATUS_PREV,
CHANGE_DIR_STATUS_NEXT
- } mChangeDirtqStatus;
+ } mChangeDirStatus;
bool mBrowsing;
bool mSelecting;
diff --git a/src/gvcore/filterbar.ui b/src/gvcore/filterbar.ui
index b407ce1..2c9f11c 100644
--- a/src/gvcore/filterbar.ui
+++ b/src/gvcore/filterbar.ui
@@ -64,7 +64,7 @@
Maximum
-
+
16
16
@@ -125,7 +125,7 @@ equal to this date
Maximum
-
+
16
16
@@ -185,7 +185,7 @@ equal to this date
Maximum
-
+
16
16
@@ -210,7 +210,7 @@ equal to this date
Expanding
-
+
16
16
diff --git a/src/gvcore/fullscreenbar.cpp b/src/gvcore/fullscreenbar.cpp
index 311b98d..d288429 100644
--- a/src/gvcore/fullscreenbar.cpp
+++ b/src/gvcore/fullscreenbar.cpp
@@ -21,7 +21,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
// TQt
#include
#include
-#include
+#include
#include
#include
@@ -83,8 +83,8 @@ FullScreenBar::FullScreenBar(TQWidget* parent)
setIconSize(FULLSCREEN_ICON_SIZE);
setMovingEnabled(false);
- TQColor bg=tqcolorGroup().highlight();
- TQColor fg=tqcolorGroup().highlightedText();
+ TQColor bg=colorGroup().highlight();
+ TQColor fg=colorGroup().highlightedText();
TQPalette pal(palette());
pal.setColor(TQColorGroup::Background, bg);
pal.setColor(TQColorGroup::Foreground, fg);
@@ -123,7 +123,7 @@ void FullScreenBar::showEvent(TQShowEvent* event) {
if (!d->mFirstShow) return;
d->mFirstShow=false;
move(0, -height());
- tqlayout()->setResizeMode(TQLayout::Fixed);
+ layout()->setResizeMode(TQLayout::Fixed);
}
diff --git a/src/gvcore/imageloader.cpp b/src/gvcore/imageloader.cpp
index 06a9011..699d088 100644
--- a/src/gvcore/imageloader.cpp
+++ b/src/gvcore/imageloader.cpp
@@ -113,7 +113,7 @@ public:
int getch() {
if (mThread->testCancel()) {
LOG("cancel detected");
- setqStatus(IO_ReadError);
+ seStatus(IO_ReadError);
return -1;
}
return TQBuffer::getch();
diff --git a/src/gvcore/imagesavedialog.cpp b/src/gvcore/imagesavedialog.cpp
index 7831830..17101e2 100644
--- a/src/gvcore/imagesavedialog.cpp
+++ b/src/gvcore/imagesavedialog.cpp
@@ -70,7 +70,7 @@ ImageSaveDialog::ImageSaveDialog(KURL& url, const TQCString& imageFormat, TQWidg
if (!patterns.contains(pattern)) patterns.append(pattern);
}
if (patterns.isEmpty()) {
- patterns.append( TQString("*.%1").tqarg(format.lower()) );
+ patterns.append( TQString("*.%1").arg(format.lower()) );
}
TQString patternString=patterns.join(" ");
diff --git a/src/gvcore/imageview.cpp b/src/gvcore/imageview.cpp
index a6c5b9f..cbfc459 100644
--- a/src/gvcore/imageview.cpp
+++ b/src/gvcore/imageview.cpp
@@ -113,7 +113,7 @@ as approximate as possible). However when converting from widget to image and ba
this can result in the final rectangle being smaller than the original.
The widgetToImageBounding() function converts from widget to image coordinates
in a way which makes sure the reverse conversion will be at least as large
-as the original tqgeometry.
+as the original geometry.
There are no conversion functions for only width/height, as their conversion
depends on the position (because of the rounding etc.). For similar reasons
@@ -257,7 +257,7 @@ struct ImageView::Private {
const double zoomValues[] = { 0.5, 1, 2 };
int nbValues=sizeof(zoomValues) / sizeof(double);
for (int pos=0; posinsertItem(txt);
}
}
@@ -423,7 +423,7 @@ ImageView::~ImageView() {
void ImageView::slotLoaded() {
if (d->mDocument->isNull()) {
resizeContents(0,0);
- viewport()->tqrepaint(false);
+ viewport()->repaint(false);
return;
}
@@ -488,7 +488,7 @@ KToggleAction* ImageView::zoomToFit() const {
void ImageView::updateFromSettings() {
- // Reset, so that next tqrepaint doesn't possibly take longer because of
+ // Reset, so that next repaint doesn't possibly take longer because of
// smoothing
ImageViewConfig::setMaxRepaintSize(DEFAULT_MAX_REPAINT_SIZE);
ImageViewConfig::setMaxScaleRepaintSize(DEFAULT_MAX_REPAINT_SIZE);
@@ -625,7 +625,7 @@ void ImageView::drawContents(TQPainter* painter,int clipx,int clipy,int clipw,in
TQRect widgetRect = TQRect(0, 0, visibleWidth(), visibleHeight());
TQRegion region = TQRegion(widgetRect) - imageRect;
- TQMemArray rects = region.tqrects();
+ TQMemArray rects = region.rects();
for(unsigned int pos = 0; pos < rects.count(); ++pos ) {
painter->eraseRect(rects[pos]);
}
@@ -701,7 +701,7 @@ void ImageView::limitPaintSize( PendingPaint& paint ) {
// don't paint more than max_size pixels at a time
int maxHeight = ( maxSize + paint.rect.width() - 1 ) / paint.rect.width(); // round up
maxHeight = TQMAX( maxHeight, 5 ); // at least 5 lines together
- // can't tqrepaint whole paint at once, adjust height and schedule the rest
+ // can't repaint whole paint at once, adjust height and schedule the rest
if( maxHeight < paint.rect.height()) {
TQRect remaining = paint.rect;
remaining.setTop( remaining.top() + maxHeight );
@@ -781,12 +781,12 @@ void ImageView::slotBusyLevelChanged( BusyLevel level ) {
// How to do painting:
// When something needs to be erased: TQPainter on viewport and eraseRect()
// When whole picture needs to be repainted: fullRepaint()
-// When a part of the picture needs to be updated: viewport()->tqrepaint(area,false)
+// When a part of the picture needs to be updated: viewport()->repaint(area,false)
// All other paints will be changed to progressive painting.
void ImageView::fullRepaint() {
if( !viewport()->isUpdatesEnabled()) return;
cancelPending();
- viewport()->tqrepaint(false);
+ viewport()->repaint(false);
}
void ImageView::cancelPending() {
@@ -832,7 +832,7 @@ void ImageView::performPaint( TQPainter* painter, int clipx, int clipy, int clip
int extraPixels = ImageUtils::extraScalePixels( smoothAlgo, zoom());
TQRect imageRect = d->widgetToImageBounding( TQRect(clipx,clipy,clipw,cliph), extraPixels );
imageRect = imageRect.intersect( TQRect( 0, 0, d->mDocument->width(), d->mDocument->height()));
- TQMemArray< TQRect > rects = TQRegion(d->mValidImageArea.intersect( imageRect )).tqrects();
+ TQMemArray< TQRect > rects = TQRegion(d->mValidImageArea.intersect( imageRect )).rects();
for( unsigned int i = 1; i < rects.count(); ++i ) {
addPendingPaint( secondPass, d->imageToWidget( rects[ i ] ));
}
@@ -1024,7 +1024,7 @@ bool ImageView::eventFilter(TQObject* obj, TQEvent* event) {
return true;
// Getting/loosing focus causes repaints, but repainting here is expensive,
- // and there's no need to tqrepaint on focus changes, as the focus is not
+ // and there's no need to repaint on focus changes, as the focus is not
// indicated.
case TQEvent::FocusIn:
case TQEvent::FocusOut:
@@ -1313,7 +1313,7 @@ void ImageView::slotImageSizeUpdated() {
void ImageView::slotImageRectUpdated(const TQRect& imageRect) {
d->mValidImageArea += imageRect;
- viewport()->tqrepaint( d->imageToWidget( imageRect ), false );
+ viewport()->repaint( d->imageToWidget( imageRect ), false );
}
@@ -1339,7 +1339,7 @@ double ImageView::computeZoomToFit() const {
return 1.0;
}
TQSize size=d->mDocument->image().size();
- size.tqscale(width(),height(),TQSize::ScaleMin);
+ size.scale(width(),height(),TQSize::ScaleMin);
double zoom=double(size.width())/d->mDocument->width();
if (zoom>1.0 && !ImageViewConfig::enlargeSmallImages()) return 1.0;
@@ -1350,7 +1350,7 @@ double ImageView::computeZoomToWidth() const {
if (d->mDocument->isNull()) {
return 1.0;
}
- int sw = verticalScrollBar()->tqsizeHint().width(); // tqgeometry is not valid before first show()
+ int sw = verticalScrollBar()->sizeHint().width(); // geometry is not valid before first show()
int w = width();
int dw = d->mDocument->width();
switch( vScrollBarMode()) {
@@ -1370,7 +1370,7 @@ double ImageView::computeZoomToHeight() const {
if (d->mDocument->isNull()) {
return 1.0;
}
- int sh = horizontalScrollBar()->tqsizeHint().height();
+ int sh = horizontalScrollBar()->sizeHint().height();
int h = height();
int dh = d->mDocument->height();
switch( vScrollBarMode()) {
@@ -1425,11 +1425,11 @@ void ImageView::updateImageOffset() {
int zpixHeight=int(d->mDocument->height() * d->mZoom);
if (zpixWidth>viewWidth && hScrollBarMode()!=AlwaysOff) {
- // use tqsizeHint() - tqgeometry is not valid before first show()
- viewHeight-=horizontalScrollBar()->tqsizeHint().height();
+ // use sizeHint() - geometry is not valid before first show()
+ viewHeight-=horizontalScrollBar()->sizeHint().height();
}
if (zpixHeight>viewHeight && vScrollBarMode()!=AlwaysOff) {
- viewWidth-=verticalScrollBar()->tqsizeHint().width();
+ viewWidth-=verticalScrollBar()->sizeHint().width();
}
d->mXOffset=TQMAX(0,(viewWidth-zpixWidth)/2);
@@ -1457,7 +1457,7 @@ void ImageView::updateZoomActions() {
if (d->mZoomMode==ZOOM_FREE) {
d->mZoomIn->setEnabled(d->mZoommZoomOut->setEnabled(d->mZoom>1/MAX_ZOOM);
- TQString zoomText=TQString("%1%").tqarg(int(d->mZoom*100));
+ TQString zoomText=TQString("%1%").arg(int(d->mZoom*100));
d->mZoomCombo->setCurrentText(zoomText);
} else {
d->mZoomIn->setEnabled(true);
diff --git a/src/gvcore/imageviewconfig.kcfg b/src/gvcore/imageviewconfig.kcfg
index 6424202..d93051a 100644
--- a/src/gvcore/imageviewconfig.kcfg
+++ b/src/gvcore/imageviewconfig.kcfg
@@ -2,7 +2,7 @@
tqapplication.h
- tqpalette.h
+ palette.h
@@ -18,7 +18,7 @@
false
- TQApplication::tqpalette().active().dark()
+ TQApplication::palette().active().dark()
false
diff --git a/src/gvcore/imageviewcontroller.cpp b/src/gvcore/imageviewcontroller.cpp
index f24a2e8..8293b44 100644
--- a/src/gvcore/imageviewcontroller.cpp
+++ b/src/gvcore/imageviewcontroller.cpp
@@ -22,7 +22,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
// TQt
#include
-#include
+#include
#include
#include
#include
@@ -275,12 +275,12 @@ ImageViewController::ImageViewController(TQWidget* parent, Document* document, K
d->mContainer=new TQWidget(parent);
d->mContainer->setMinimumWidth(1); // Make sure we can resize the toolbar smaller than its minimum size
- TQVBoxLayout* tqlayout=new TQVBoxLayout(d->mContainer);
+ TQVBoxLayout* layout=new TQVBoxLayout(d->mContainer);
d->mToolBar=new KToolBar(d->mContainer, "", true);
- tqlayout->add(d->mToolBar);
+ layout->add(d->mToolBar);
d->mStack=new TQWidgetStack(d->mContainer);
- tqlayout->add(d->mStack);
+ layout->add(d->mStack);
d->mImageView=new ImageView(d->mStack, document, actionCollection);
d->mStack->addWidget(d->mImageView);
diff --git a/src/gvcore/imageviewtools.cpp b/src/gvcore/imageviewtools.cpp
index 699868a..da9044a 100644
--- a/src/gvcore/imageviewtools.cpp
+++ b/src/gvcore/imageviewtools.cpp
@@ -36,7 +36,7 @@ namespace Gwenview {
// Helper function
static TQCursor loadCursor(const TQString& name) {
TQString path;
- path=locate("data", TQString("gwenview/cursors/%1.png").tqarg(name));
+ path=locate("data", TQString("gwenview/cursors/%1.png").arg(name));
return TQCursor(TQPixmap(path));
}
diff --git a/src/gvcore/printdialog.cpp b/src/gvcore/printdialog.cpp
index 98524af..1f07979 100644
--- a/src/gvcore/printdialog.cpp
+++ b/src/gvcore/printdialog.cpp
@@ -20,7 +20,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
// TQt
#include
-#include
+#include
#include
#include
#include
@@ -82,8 +82,8 @@ PrintDialogPage::PrintDialogPage( Document* document, TQWidget *parent, const ch
mContent = new PrintDialogPageBase(this);
setTitle( mContent->caption() );
- TQVBoxLayout *tqlayout = new TQVBoxLayout( this );
- tqlayout->addWidget( mContent );
+ TQVBoxLayout *layout = new TQVBoxLayout( this );
+ layout->addWidget( mContent );
connect(mContent->mWidth, TQT_SIGNAL( valueChanged( double )), TQT_SLOT( slotWidthChanged( double )));
connect(mContent->mHeight, TQT_SIGNAL( valueChanged( double )), TQT_SLOT( slotHeightChanged( double )));
@@ -169,57 +169,57 @@ void PrintDialogPage::setScaleHeight( double value ) {
}
int PrintDialogPage::getPosition(const TQString& align) {
- int tqalignment;
+ int alignment;
if (align == i18n("Central-Left")) {
- tqalignment = TQt::AlignLeft | TQt::AlignVCenter;
+ alignment = TQt::AlignLeft | TQt::AlignVCenter;
} else if (align == i18n("Central-Right")) {
- tqalignment = TQt::AlignRight | TQt::AlignVCenter;
+ alignment = TQt::AlignRight | TQt::AlignVCenter;
} else if (align == i18n("Top-Left")) {
- tqalignment = TQt::AlignTop | TQt::AlignLeft;
+ alignment = TQt::AlignTop | TQt::AlignLeft;
} else if (align == i18n("Top-Right")) {
- tqalignment = TQt::AlignTop | TQt::AlignRight;
+ alignment = TQt::AlignTop | TQt::AlignRight;
} else if (align == i18n("Bottom-Left")) {
- tqalignment = TQt::AlignBottom | TQt::AlignLeft;
+ alignment = TQt::AlignBottom | TQt::AlignLeft;
} else if (align == i18n("Bottom-Right")) {
- tqalignment = TQt::AlignBottom | TQt::AlignRight;
+ alignment = TQt::AlignBottom | TQt::AlignRight;
} else if (align == i18n("Top-Central")) {
- tqalignment = TQt::AlignTop | TQt::AlignHCenter;
+ alignment = TQt::AlignTop | TQt::AlignHCenter;
} else if (align == i18n("Bottom-Central")) {
- tqalignment = TQt::AlignBottom | TQt::AlignHCenter;
+ alignment = TQt::AlignBottom | TQt::AlignHCenter;
} else {
// Central
- tqalignment = TQt::AlignCenter; // TQt::AlignHCenter || TQt::AlignVCenter
+ alignment = TQt::AlignCenter; // TQt::AlignHCenter || TQt::AlignVCenter
}
- return tqalignment;
+ return alignment;
}
TQString PrintDialogPage::setPosition(int align) {
- TQString tqalignment;
+ TQString alignment;
if (align == (TQt::AlignLeft | TQt::AlignVCenter)) {
- tqalignment = i18n("Central-Left");
+ alignment = i18n("Central-Left");
} else if (align == (TQt::AlignRight | TQt::AlignVCenter)) {
- tqalignment = i18n("Central-Right");
+ alignment = i18n("Central-Right");
} else if (align == (TQt::AlignTop | TQt::AlignLeft)) {
- tqalignment = i18n("Top-Left");
+ alignment = i18n("Top-Left");
} else if (align == (TQt::AlignTop | TQt::AlignRight)) {
- tqalignment = i18n("Top-Right");
+ alignment = i18n("Top-Right");
} else if (align == (TQt::AlignBottom | TQt::AlignLeft)) {
- tqalignment = i18n("Bottom-Left");
+ alignment = i18n("Bottom-Left");
} else if (align == (TQt::AlignBottom | TQt::AlignRight)) {
- tqalignment = i18n("Bottom-Right");
+ alignment = i18n("Bottom-Right");
} else if (align == (TQt::AlignTop | TQt::AlignHCenter)) {
- tqalignment = i18n("Top-Central");
+ alignment = i18n("Top-Central");
} else if (align == (TQt::AlignBottom | TQt::AlignHCenter)) {
- tqalignment = i18n("Bottom-Central");
+ alignment = i18n("Bottom-Central");
} else {
// Central: TQt::AlignCenter or (TQt::AlignHCenter || TQt::AlignVCenter)
- tqalignment = i18n("Central");
+ alignment = i18n("Central");
}
- return tqalignment;
+ return alignment;
}
// SLOTS
diff --git a/src/gvcore/printdialogpagebase.ui b/src/gvcore/printdialogpagebase.ui
index 6d92eda..6ae7696 100644
--- a/src/gvcore/printdialogpagebase.ui
+++ b/src/gvcore/printdialogpagebase.ui
@@ -24,7 +24,7 @@
- tqlayout2
+ layout2
@@ -98,7 +98,7 @@
Expanding
-
+
101
21
@@ -170,7 +170,7 @@
- tqlayout4
+ layout4
@@ -186,7 +186,7 @@
Fixed
-
+
20
20
@@ -214,7 +214,7 @@
Expanding
-
+
240
21
@@ -236,7 +236,7 @@
- tqlayout4
+ layout4
@@ -252,7 +252,7 @@
Fixed
-
+
20
20
@@ -351,7 +351,7 @@
Expanding
-
+
16
20
diff --git a/src/gvcore/qxcfi.cpp b/src/gvcore/qxcfi.cpp
index 9fb146a..27ad0b9 100644
--- a/src/gvcore/qxcfi.cpp
+++ b/src/gvcore/qxcfi.cpp
@@ -486,7 +486,7 @@ void XCFImageFormat::readXCF ( TQImageIO* image_io )
}
image_io->setImage( xcf_image.image );
- image_io->setqStatus( 0 );
+ image_io->seStatus( 0 );
}
/*!
diff --git a/src/gvcore/thumbnaildetailsdialogbase.ui b/src/gvcore/thumbnaildetailsdialogbase.ui
index 1dd6646..ae03c98 100644
--- a/src/gvcore/thumbnaildetailsdialogbase.ui
+++ b/src/gvcore/thumbnaildetailsdialogbase.ui
@@ -29,7 +29,7 @@
- tqlayout6
+ layout6
@@ -45,7 +45,7 @@
Fixed
-
+
21
20
@@ -96,7 +96,7 @@
Fixed
-
+
21
21
diff --git a/src/gvcore/xpm.cpp b/src/gvcore/xpm.cpp
index cc2cabc..b56ba59 100644
--- a/src/gvcore/xpm.cpp
+++ b/src/gvcore/xpm.cpp
@@ -74,7 +74,7 @@ static TQString fbname( const TQString &fileName ) // get file basename (sort of
s = s.mid( i );
if ( (i = s.findRev('\\')) >= 0 )
s = s.mid( i );
- TQRegExp r( TQString::tqfromLatin1("[a-zA-Z][a-zA-Z0-9_]*") );
+ TQRegExp r( TQString::fromLatin1("[a-zA-Z][a-zA-Z0-9_]*") );
int p = r.search( s );
if ( p == -1 )
s.truncate( 0 );
@@ -82,7 +82,7 @@ static TQString fbname( const TQString &fileName ) // get file basename (sort of
s = s.mid( p, r.matchedLength() );
}
if ( s.isEmpty() )
- s = TQString::tqfromLatin1( "dummy" );
+ s = TQString::fromLatin1( "dummy" );
return s;
}
@@ -161,10 +161,10 @@ static void read_xpm_image_or_array( TQImageIO * iio, const char * const * sourc
int i, cpp, ncols, w, h, index = 0;
if ( iio ) {
- iio->setqStatus( 1 );
+ iio->seStatus( 1 );
d = iio ? iio->ioDevice() : 0;
d->readLine( buf.data(), buf.size() ); // "/* XPM */"
- TQRegExp r( TQString::tqfromLatin1("/\\*.XPM.\\*/") );
+ TQRegExp r( TQString::fromLatin1("/\\*.XPM.\\*/") );
if ( buf.find(r) == -1 )
return; // bad magic
} else if ( !source ) {
@@ -291,7 +291,7 @@ static void read_xpm_image_or_array( TQImageIO * iio, const char * const * sourc
}
if ( iio ) {
iio->setImage( image );
- iio->setqStatus( 0 ); // image ok
+ iio->seStatus( 0 ); // image ok
}
}
@@ -340,7 +340,7 @@ static const char* xpm_color_name( int cpp, int index )
static void write_xpm_image( TQImageIO * iio )
{
if ( iio )
- iio->setqStatus( 1 );
+ iio->seStatus( 1 );
else
return;
@@ -424,7 +424,7 @@ static void write_xpm_image( TQImageIO * iio )
}
s << "};" << endl;
- iio->setqStatus( 0 );
+ iio->seStatus( 0 );
}
// TQt code end ---------------------------
diff --git a/src/gvdirpart/gvdirpart.cpp b/src/gvdirpart/gvdirpart.cpp
index 4745bfe..3f321e5 100644
--- a/src/gvdirpart/gvdirpart.cpp
+++ b/src/gvdirpart/gvdirpart.cpp
@@ -173,7 +173,7 @@ bool GVDirPart::openURL(const KURL& url) {
void GVDirPart::loaded(const KURL& url) {
TQString caption = url.filename();
if( !mDocument->image().isNull())
- caption += TQString(" %1 x %2").tqarg(mDocument->width()).tqarg(mDocument->height());
+ caption += TQString(" %1 x %2").arg(mDocument->width()).arg(mDocument->height());
emit setWindowCaption(caption);
emit completed();
}
diff --git a/src/gvimagepart/gvimagepart.cpp b/src/gvimagepart/gvimagepart.cpp
index 95712b5..95c67e3 100644
--- a/src/gvimagepart/gvimagepart.cpp
+++ b/src/gvimagepart/gvimagepart.cpp
@@ -194,7 +194,7 @@ void GVImagePart::slotLoading() {
}
void GVImagePart::slotLoaded(const KURL& url) {
- TQString caption = url.filename() + TQString(" - %1x%2").tqarg(mDocument->width()).tqarg(mDocument->height());
+ TQString caption = url.filename() + TQString(" - %1x%2").arg(mDocument->width()).arg(mDocument->height());
emit setWindowCaption(caption);
emit completed();
emit setStatusBarText(i18n("Done."));
@@ -363,7 +363,7 @@ void GVImagePart::saveOriginalAs() {
if (!file.open(IO_WriteOnly)) {
KMessageBox::error(
widget(),
- i18n("Could not open '%1' for writing.").tqarg(path));
+ i18n("Could not open '%1' for writing.").arg(path));
return;
}
storeData(widget(), &file, data);
diff --git a/src/imageutils/jpegcontent.cpp b/src/imageutils/jpegcontent.cpp
index 5bcb7ef..c007267 100644
--- a/src/imageutils/jpegcontent.cpp
+++ b/src/imageutils/jpegcontent.cpp
@@ -120,7 +120,7 @@ struct inmem_dest_mgr : public jpeg_destination_mgr {
void inmem_init_destination(j_compress_ptr cinfo) {
inmem_dest_mgr* dest=(inmem_dest_mgr*)(cinfo->dest);
if (dest->mOutput->size()==0) {
- bool result=dest->mOutput->tqresize(INMEM_DST_DELTA);
+ bool result=dest->mOutput->resize(INMEM_DST_DELTA);
Q_ASSERT(result);
}
dest->free_in_buffer=dest->mOutput->size();
@@ -129,7 +129,7 @@ void inmem_init_destination(j_compress_ptr cinfo) {
int inmem_empty_output_buffer(j_compress_ptr cinfo) {
inmem_dest_mgr* dest=(inmem_dest_mgr*)(cinfo->dest);
- bool result=dest->mOutput->tqresize(dest->mOutput->size() + INMEM_DST_DELTA);
+ bool result=dest->mOutput->resize(dest->mOutput->size() + INMEM_DST_DELTA);
Q_ASSERT(result);
dest->next_output_byte=(JOCTET*)( dest->mOutput->data() + dest->mOutput->size() - INMEM_DST_DELTA );
dest->free_in_buffer=INMEM_DST_DELTA;
@@ -141,7 +141,7 @@ void inmem_term_destination(j_compress_ptr cinfo) {
inmem_dest_mgr* dest=(inmem_dest_mgr*)(cinfo->dest);
int finalSize=dest->next_output_byte - (JOCTET*)(dest->mOutput->data());
Q_ASSERT(finalSize>=0);
- dest->mOutput->tqresize(finalSize);
+ dest->mOutput->resize(finalSize);
}
diff --git a/src/imageutils/scale.cpp b/src/imageutils/scale.cpp
index c8a70a7..733dc1a 100644
--- a/src/imageutils/scale.cpp
+++ b/src/imageutils/scale.cpp
@@ -1929,7 +1929,7 @@ TQImage scale(const TQImage& image, int width, int height,
if( image.isNull()) return image.copy();
TQSize newSize( image.size() );
- newSize.tqscale( TQSize( width, height ), (TQSize::ScaleMode)mode ); // ### remove cast in TQt 4.0
+ newSize.scale( TQSize( width, height ), (TQSize::ScaleMode)mode ); // ### remove cast in TQt 4.0
newSize = newSize.expandedTo( TQSize( 1, 1 )); // make sure it doesn't become null
if ( newSize == image.size() ) return image.copy();
diff --git a/src/spec/gwenview-mdk.spec b/src/spec/gwenview-mdk.spec
index e2ad754..c524954 100644
--- a/src/spec/gwenview-mdk.spec
+++ b/src/spec/gwenview-mdk.spec
@@ -272,7 +272,7 @@ rm -rf $RPM_BUILD_ROOT
o Update the EXIF thumbnail when rotating a JPEG file.
o In the folder view, folders now open with a single click (By Daniel Thaler).
o Reworked coordinate conversions in order to avoid subtle paint errors.
- o Remember computed optimal tqrepaint sizes in the config file,
+ o Remember computed optimal repaint sizes in the config file,
so they are available immediately after next start.
o Remember shown URL after session restore.
* Sat Oct 16 2004 Angelo Naselli 1.1.5-0.3mdk
@@ -317,7 +317,7 @@ rm -rf $RPM_BUILD_ROOT
- Avoid data loss if the JPEG images are saved while being rotated by
JPEGTran.
- The back button in Konqueror now works correctly with gvimagepart.
- - The default tqlayout is more user-friendly.
+ - The default layout is more user-friendly.
- Non-trivial URLs (e.g. http query URL) are correctly handled.
- You can now drop images on the image view.
diff --git a/src/tsthread/tsthread.cpp b/src/tsthread/tsthread.cpp
index 6363f2e..c845cce 100644
--- a/src/tsthread/tsthread.cpp
+++ b/src/tsthread/tsthread.cpp
@@ -175,7 +175,7 @@ void TSThread::customEvent( TQCustomEvent* ev )
}
bool deleted = false;
deleted_flag = &deleted; // this is like TQGuardedPtr for self, but faster
- int signal_id = e->object->tqmetaObject()->findSignal( normalizeSignalSlot( e->signal ).data() + 1, true );
+ int signal_id = e->object->metaObject()->findSignal( normalizeSignalSlot( e->signal ).data() + 1, true );
if( signal_id >= 0 )
e->object->qt_emit( signal_id, e->args );
else