summaryrefslogtreecommitdiffstats
path: root/kiconedit
diff options
context:
space:
mode:
Diffstat (limited to 'kiconedit')
-rw-r--r--kiconedit/kcolorgrid.cpp6
-rw-r--r--kiconedit/kicon.cpp10
-rw-r--r--kiconedit/kiconedit.cpp2
-rw-r--r--kiconedit/kiconeditslots.cpp10
-rw-r--r--kiconedit/kicongrid.cpp4
5 files changed, 16 insertions, 16 deletions
diff --git a/kiconedit/kcolorgrid.cpp b/kiconedit/kcolorgrid.cpp
index 7d1baae6..65d766c9 100644
--- a/kiconedit/kcolorgrid.cpp
+++ b/kiconedit/kcolorgrid.cpp
@@ -293,14 +293,14 @@ void KColorGrid::setColor( int colNum, uint col, bool update )
}
//kdDebug(4640) << "KColorGrid::setColor - before updateCell" << endl;
- tqrepaint((colNum%numCols())*cellsize,(colNum/numCols())*cellsize, cellsize, cellsize);
+ repaint((colNum%numCols())*cellsize,(colNum/numCols())*cellsize, cellsize, cellsize);
//updateCell( colNum/numCols(), colNum%numCols(), false );
//kdDebug(4640) << "KColorGrid::setColor - after updateCell" << endl;
}
void KColorGrid::updateCell( int row, int col, bool )
{
- //kdDebug(4640) << "updateCell - before tqrepaint" << endl;
+ //kdDebug(4640) << "updateCell - before repaint" << endl;
TQWMatrix matrix;
TQPainter p;
p.begin( this );
@@ -330,6 +330,6 @@ void KColorGrid::setCellSize( int s )
totalheight = (numRows() * s) + 1;
resize(totalwidth, totalheight);
if ( isVisible() )
- tqrepaint(viewRect(), false);
+ repaint(viewRect(), false);
}
#include "kcolorgrid.moc"
diff --git a/kiconedit/kicon.cpp b/kiconedit/kicon.cpp
index f36fde00..9a4da93c 100644
--- a/kiconedit/kicon.cpp
+++ b/kiconedit/kicon.cpp
@@ -70,7 +70,7 @@ bool KIconEditIcon::open(const TQImage *image, KURL url)
if(!url.isValid()) // Giving up
{
- TQString msg = i18n("The URL: %1 \nseems to be malformed.\n").tqarg(url.url());
+ TQString msg = i18n("The URL: %1 \nseems to be malformed.\n").arg(url.url());
KMessageBox::sorry((TQWidget*)parent(), msg);
return false;
}
@@ -86,7 +86,7 @@ bool KIconEditIcon::open(const TQImage *image, KURL url)
{
if(!KIO::NetAccess::download( url, filename, (TQWidget*)parent() ))
{
- TQString msg = i18n("There was an error loading:\n%1\n").tqarg(url.prettyURL());
+ TQString msg = i18n("There was an error loading:\n%1\n").arg(url.prettyURL());
KMessageBox::error((TQWidget*)parent(), msg);
return false;
}
@@ -101,7 +101,7 @@ bool KIconEditIcon::open(const TQImage *image, KURL url)
if(!loadedOk)
{
- TQString msg = i18n("There was an error loading:\n%1\n").tqarg(url.prettyURL());
+ TQString msg = i18n("There was an error loading:\n%1\n").arg(url.prettyURL());
KMessageBox::error((TQWidget*)parent(), msg);
}
else
@@ -208,7 +208,7 @@ bool KIconEditIcon::saveAs(const TQImage *image)
{
int r=KMessageBox::warningContinueCancel(TQT_TQWIDGET(parent()),
i18n( "A file named \"%1\" already exists. "
- "Overwrite it?" ).tqarg(file),
+ "Overwrite it?" ).arg(file),
i18n( "Overwrite File?" ),
i18n( "&Overwrite" ) );
@@ -265,7 +265,7 @@ bool KIconEditIcon::save(const TQImage *image, const TQString &_filename)
}
else
{
- TQString msg = i18n("There was an error saving:\n%1\n").tqarg(str);
+ TQString msg = i18n("There was an error saving:\n%1\n").arg(str);
KMessageBox::error((TQWidget*)parent(), msg);
kdDebug(4640) << "KIconEditIcon::save - " << msg << endl;
}
diff --git a/kiconedit/kiconedit.cpp b/kiconedit/kiconedit.cpp
index bf731571..38461262 100644
--- a/kiconedit/kiconedit.cpp
+++ b/kiconedit/kiconedit.cpp
@@ -477,7 +477,7 @@ bool KIconEdit::setupStatusBar()
statusbar->insertFixedItem("99999,99999", 0, true);
statusbar->insertFixedItem("99999 x 99999", 1, true);
statusbar->insertFixedItem(" 1:999", 2, true);
- str = i18n("Colors: %1").tqarg(9999999);
+ str = i18n("Colors: %1").arg(9999999);
statusbar->insertFixedItem(str, 3, true);
statusbar->insertItem("", 4);
diff --git a/kiconedit/kiconeditslots.cpp b/kiconedit/kiconeditslots.cpp
index f229b325..7d8fffd7 100644
--- a/kiconedit/kiconeditslots.cpp
+++ b/kiconedit/kiconeditslots.cpp
@@ -195,7 +195,7 @@ void KIconEdit::slotPrint()
{
KPrinter printer;
- if ( printer.setup(this, i18n("Print %1").tqarg(icon->url().section('/', -1))) )
+ if ( printer.setup(this, i18n("Print %1").arg(icon->url().section('/', -1))) )
{
int margin = 10, yPos = 0;
printer.setCreator("KDE Icon Editor");
@@ -422,13 +422,13 @@ void KIconEdit::slotUpdateZoom( int s )
void KIconEdit::slotUpdateStatusPos(int x, int y)
{
- TQString str = i18n("Status Position", "%1, %2").tqarg(x).tqarg(y);
+ TQString str = i18n("Status Position", "%1, %2").arg(x).arg(y);
statusbar->changeItem( str, 0);
}
void KIconEdit::slotUpdateStatusSize(int x, int y)
{
- TQString str = i18n("Status Size", "%1 x %2").tqarg(x).tqarg(y);
+ TQString str = i18n("Status Size", "%1 x %2").arg(x).arg(y);
statusbar->changeItem( str, 1);
}
@@ -443,13 +443,13 @@ void KIconEdit::slotUpdateStatusScaling(int s)
void KIconEdit::slotUpdateStatusColors(uint)
{
- TQString str = i18n("Colors: %1").tqarg(grid->numColors());
+ TQString str = i18n("Colors: %1").arg(grid->numColors());
statusbar->changeItem( str, 3);
}
void KIconEdit::slotUpdateStatusColors(uint n, uint *)
{
- TQString str = i18n("Colors: %1").tqarg(n);
+ TQString str = i18n("Colors: %1").arg(n);
statusbar->changeItem( str, 3);
}
diff --git a/kiconedit/kicongrid.cpp b/kiconedit/kicongrid.cpp
index 3389446d..2316711a 100644
--- a/kiconedit/kicongrid.cpp
+++ b/kiconedit/kicongrid.cpp
@@ -1044,7 +1044,7 @@ void KIconEditGrid::load( TQImage *image)
emit changed(pixmap());
setUpdatesEnabled(true);
emit needPainting();
- //tqrepaint(viewRect(), false);
+ //repaint(viewRect(), false);
history->clear();
}
@@ -1379,7 +1379,7 @@ void KIconEditGrid::editPasteAsNew()
*img = tmp;
load(img);
setModified(true);
- //tqrepaint(viewRect(), false);
+ //repaint(viewRect(), false);
p = *img;
emit changed(TQPixmap(p));