summaryrefslogtreecommitdiffstats
path: root/kolourpaint/widgets
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-19 11:56:05 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-19 11:56:05 -0600
commit74c05bbf9d92e43a6cf3799355b5f3598884409e (patch)
tree9371e52e1564e08fd280f28e49981ffeb881b9d2 /kolourpaint/widgets
parent45f529de247fc4b3662f6b474abe03fe904306ec (diff)
downloadtdegraphics-74c05bbf9d92e43a6cf3799355b5f3598884409e.tar.gz
tdegraphics-74c05bbf9d92e43a6cf3799355b5f3598884409e.zip
Remove additional unneeded tq method conversions
Diffstat (limited to 'kolourpaint/widgets')
-rw-r--r--kolourpaint/widgets/kpcolorsimilaritycube.cpp2
-rw-r--r--kolourpaint/widgets/kptooltoolbar.cpp2
-rw-r--r--kolourpaint/widgets/kptoolwidgetbrush.cpp32
-rw-r--r--kolourpaint/widgets/kptoolwidgetbrush.h2
-rw-r--r--kolourpaint/widgets/kptoolwidgetspraycansize.cpp2
5 files changed, 20 insertions, 20 deletions
diff --git a/kolourpaint/widgets/kpcolorsimilaritycube.cpp b/kolourpaint/widgets/kpcolorsimilaritycube.cpp
index edea872e..4d06d46e 100644
--- a/kolourpaint/widgets/kpcolorsimilaritycube.cpp
+++ b/kolourpaint/widgets/kpcolorsimilaritycube.cpp
@@ -133,7 +133,7 @@ void kpColorSimilarityCube::setColorSimilarity (double similarity)
m_colorSimilarity = similarity;
- tqrepaint (false/*no erase*/);
+ repaint (false/*no erase*/);
}
diff --git a/kolourpaint/widgets/kptooltoolbar.cpp b/kolourpaint/widgets/kptooltoolbar.cpp
index ba048d5c..2ba8d816 100644
--- a/kolourpaint/widgets/kptooltoolbar.cpp
+++ b/kolourpaint/widgets/kptooltoolbar.cpp
@@ -199,7 +199,7 @@ int kpToolToolBar::defaultIconSize ()
if (m_defaultIconSize <= 0)
{
- // Adapt according to screen tqgeometry
+ // Adapt according to screen geometry
const TQRect desktopSize = KGlobalSettings::desktopGeometry (this);
#if DEBUG_KP_TOOL_TOOL_BAR
kdDebug () << "\tadapting to screen size=" << desktopSize << endl;
diff --git a/kolourpaint/widgets/kptoolwidgetbrush.cpp b/kolourpaint/widgets/kptoolwidgetbrush.cpp
index 0c583126..57986b63 100644
--- a/kolourpaint/widgets/kptoolwidgetbrush.cpp
+++ b/kolourpaint/widgets/kptoolwidgetbrush.cpp
@@ -59,7 +59,7 @@ kpToolWidgetBrush::kpToolWidgetBrush (TQWidget *parent, const char *name)
TQPixmap *pm = m_brushBitmaps;
- for (int tqshape = 0; tqshape < BRUSH_SIZE_NUM_ROWS; tqshape++)
+ for (int shape = 0; shape < BRUSH_SIZE_NUM_ROWS; shape++)
{
for (int i = 0; i < BRUSH_SIZE_NUM_COLS; i++)
{
@@ -68,7 +68,7 @@ kpToolWidgetBrush::kpToolWidgetBrush (TQWidget *parent, const char *name)
pm->resize ((w <= 0 ? width () : w),
(h <= 0 ? height () : h));
- const int s = brushSize [tqshape][i];
+ const int s = brushSize [shape][i];
TQRect rect;
if (s >= pm->width () || s >= pm->height ())
@@ -92,7 +92,7 @@ kpToolWidgetBrush::kpToolWidgetBrush (TQWidget *parent, const char *name)
painter.setBrush (TQt::black);
// sync: <brushes>
- switch (tqshape)
+ switch (shape)
{
case 0:
painter.drawEllipse (rect);
@@ -110,7 +110,7 @@ kpToolWidgetBrush::kpToolWidgetBrush (TQWidget *parent, const char *name)
painter.end ();
pm->setMask (pm->createHeuristicMask ());
- addOption (*pm, brushName (tqshape, i)/*tooltip*/);
+ addOption (*pm, brushName (shape, i)/*tooltip*/);
pm++;
}
@@ -127,38 +127,38 @@ kpToolWidgetBrush::~kpToolWidgetBrush ()
// private
-TQString kpToolWidgetBrush::brushName (int tqshape, int whichSize)
+TQString kpToolWidgetBrush::brushName (int shape, int whichSize)
{
- int s = brushSize [tqshape][whichSize];
+ int s = brushSize [shape][whichSize];
if (s == 1)
return i18n ("1x1");
- TQString tqshapeName;
+ TQString shapeName;
// sync: <brushes>
- switch (tqshape)
+ switch (shape)
{
case 0:
- tqshapeName = i18n ("Circle");
+ shapeName = i18n ("Circle");
break;
case 1:
- tqshapeName = i18n ("Square");
+ shapeName = i18n ("Square");
break;
case 2:
- // TODO: is this really the name of a tqshape? :)
- tqshapeName = i18n ("Slash");
+ // TODO: is this really the name of a shape? :)
+ shapeName = i18n ("Slash");
break;
case 3:
- // TODO: is this really the name of a tqshape? :)
- tqshapeName = i18n ("Backslash");
+ // TODO: is this really the name of a shape? :)
+ shapeName = i18n ("Backslash");
break;
}
- if (tqshapeName.isEmpty ())
+ if (shapeName.isEmpty ())
return TQString();
- return i18n ("%1x%2 %3").arg (s).arg (s).arg (tqshapeName);
+ return i18n ("%1x%2 %3").arg (s).arg (s).arg (shapeName);
}
TQPixmap kpToolWidgetBrush::brush () const
diff --git a/kolourpaint/widgets/kptoolwidgetbrush.h b/kolourpaint/widgets/kptoolwidgetbrush.h
index 0fd2f46a..c67db05e 100644
--- a/kolourpaint/widgets/kptoolwidgetbrush.h
+++ b/kolourpaint/widgets/kptoolwidgetbrush.h
@@ -43,7 +43,7 @@ public:
virtual ~kpToolWidgetBrush ();
private:
- TQString brushName (int tqshape, int whichSize);
+ TQString brushName (int shape, int whichSize);
public:
TQPixmap brush () const;
diff --git a/kolourpaint/widgets/kptoolwidgetspraycansize.cpp b/kolourpaint/widgets/kptoolwidgetspraycansize.cpp
index 503cecd2..24569a21 100644
--- a/kolourpaint/widgets/kptoolwidgetspraycansize.cpp
+++ b/kolourpaint/widgets/kptoolwidgetspraycansize.cpp
@@ -54,7 +54,7 @@ kpToolWidgetSpraycanSize::kpToolWidgetSpraycanSize (TQWidget *parent, const char
for (int i = 0; i < int (sizeof (spraycanSizes) / sizeof (spraycanSizes [0])); i++)
{
int s = spraycanSizes [i];
- TQString iconName = TQString ("tool_spraycan_%1x%1").tqarg (s).tqarg(s);
+ TQString iconName = TQString ("tool_spraycan_%1x%1").arg (s).arg(s);
#if DEBUG_KP_TOOL_WIDGET_SPRAYCAN_SIZE
kdDebug () << "\ticonName=" << iconName << endl;