summaryrefslogtreecommitdiffstats
path: root/kicker-applets/kolourpicker/kolourpicker.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kicker-applets/kolourpicker/kolourpicker.cpp')
-rw-r--r--kicker-applets/kolourpicker/kolourpicker.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/kicker-applets/kolourpicker/kolourpicker.cpp b/kicker-applets/kolourpicker/kolourpicker.cpp
index 101bd42..fbce8cf 100644
--- a/kicker-applets/kolourpicker/kolourpicker.cpp
+++ b/kicker-applets/kolourpicker/kolourpicker.cpp
@@ -48,18 +48,18 @@ $Id$
// Applet initialization function
extern "C"
{
- KDE_EXPORT KPanelApplet* init(TQWidget *tqparent, const TQString& configFile)
+ KDE_EXPORT KPanelApplet* init(TQWidget *parent, const TQString& configFile)
{
KGlobal::locale()->insertCatalogue("kolourpicker");
return new KolourPicker(configFile, KPanelApplet::Normal,
KPanelApplet::About,
- tqparent, "kolourpicker");
+ parent, "kolourpicker");
}
}
KolourPicker::KolourPicker(const TQString& configFile, Type type,
- int actions, TQWidget *tqparent, const char *name)
- : KPanelApplet(configFile, type, actions, tqparent, name),
+ int actions, TQWidget *parent, const char *name)
+ : KPanelApplet(configFile, type, actions, parent, name),
m_picking(0)
{
KAboutData *about = new KAboutData("kolourpicker",
@@ -339,16 +339,16 @@ TQPixmap KolourPicker::colorPixmap(const TQColor &c) const
img.setPixel(x, y, tqRgba(128, 128, 128, 255));
}
- TQBitmap tqmask(16, 16);
- tqmask.fill(TQt::color0);
- TQPainter p(&tqmask);
+ TQBitmap mask(16, 16);
+ mask.fill(TQt::color0);
+ TQPainter p(&mask);
p.setPen(TQt::NoPen);
p.setBrush(TQt::color1);
p.drawEllipse(0, 0, 15, 15);
p.end();
TQPixmap pm = TQPixmap(img.smoothScale(16, 16));
- pm.setMask(tqmask);
+ pm.setMask(mask);
return pm;
}