summaryrefslogtreecommitdiffstats
path: root/tdeui/kcolordialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tdeui/kcolordialog.cpp')
-rw-r--r--tdeui/kcolordialog.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/tdeui/kcolordialog.cpp b/tdeui/kcolordialog.cpp
index d80e317af..8bfcd8084 100644
--- a/tdeui/kcolordialog.cpp
+++ b/tdeui/kcolordialog.cpp
@@ -1006,7 +1006,7 @@ KColorDialog::KColorDialog( TQWidget *parent, const char *name, bool modal )
label->setAlignment(AlignRight | AlignVCenter);
l_lbot->addWidget(label, 0, 2);
d->hedit = new KColorSpinBox( 0, 359, 1, page );
- d->hedit->setValidator( new TQIntValidator( TQT_TQOBJECT(d->hedit) ) );
+ d->hedit->setValidator( new TQIntValidator( d->hedit ) );
l_lbot->addWidget(d->hedit, 0, 3);
connect( d->hedit, TQT_SIGNAL( valueChanged(int) ),
TQT_SLOT( slotHSVChanged() ) );
@@ -1015,7 +1015,7 @@ KColorDialog::KColorDialog( TQWidget *parent, const char *name, bool modal )
label->setAlignment(AlignRight | AlignVCenter);
l_lbot->addWidget(label, 1, 2);
d->sedit = new KColorSpinBox( 0, 255, 1, page );
- d->sedit->setValidator( new TQIntValidator( TQT_TQOBJECT(d->sedit) ) );
+ d->sedit->setValidator( new TQIntValidator( d->sedit ) );
l_lbot->addWidget(d->sedit, 1, 3);
connect( d->sedit, TQT_SIGNAL( valueChanged(int) ),
TQT_SLOT( slotHSVChanged() ) );
@@ -1024,7 +1024,7 @@ KColorDialog::KColorDialog( TQWidget *parent, const char *name, bool modal )
label->setAlignment(AlignRight | AlignVCenter);
l_lbot->addWidget(label, 2, 2);
d->vedit = new KColorSpinBox( 0, 255, 1, page );
- d->vedit->setValidator( new TQIntValidator( TQT_TQOBJECT(d->vedit) ) );
+ d->vedit->setValidator( new TQIntValidator( d->vedit ) );
l_lbot->addWidget(d->vedit, 2, 3);
connect( d->vedit, TQT_SIGNAL( valueChanged(int) ),
TQT_SLOT( slotHSVChanged() ) );
@@ -1036,7 +1036,7 @@ KColorDialog::KColorDialog( TQWidget *parent, const char *name, bool modal )
label->setAlignment(AlignRight | AlignVCenter);
l_lbot->addWidget(label, 0, 4);
d->redit = new KColorSpinBox( 0, 255, 1, page );
- d->redit->setValidator( new TQIntValidator( TQT_TQOBJECT(d->redit) ) );
+ d->redit->setValidator( new TQIntValidator( d->redit ) );
l_lbot->addWidget(d->redit, 0, 5);
connect( d->redit, TQT_SIGNAL( valueChanged(int) ),
TQT_SLOT( slotRGBChanged() ) );
@@ -1045,7 +1045,7 @@ KColorDialog::KColorDialog( TQWidget *parent, const char *name, bool modal )
label->setAlignment(AlignRight | AlignVCenter);
l_lbot->addWidget( label, 1, 4);
d->gedit = new KColorSpinBox( 0, 255,1, page );
- d->gedit->setValidator( new TQIntValidator( TQT_TQOBJECT(d->gedit) ) );
+ d->gedit->setValidator( new TQIntValidator( d->gedit ) );
l_lbot->addWidget(d->gedit, 1, 5);
connect( d->gedit, TQT_SIGNAL( valueChanged(int) ),
TQT_SLOT( slotRGBChanged() ) );
@@ -1054,7 +1054,7 @@ KColorDialog::KColorDialog( TQWidget *parent, const char *name, bool modal )
label->setAlignment(AlignRight | AlignVCenter);
l_lbot->addWidget(label, 2, 4);
d->bedit = new KColorSpinBox( 0, 255, 1, page );
- d->bedit->setValidator( new TQIntValidator( TQT_TQOBJECT(d->bedit) ) );
+ d->bedit->setValidator( new TQIntValidator( d->bedit ) );
l_lbot->addWidget(d->bedit, 2, 5);
connect( d->bedit, TQT_SIGNAL( valueChanged(int) ),
TQT_SLOT( slotRGBChanged() ) );
@@ -1131,28 +1131,28 @@ KColorDialog::KColorDialog( TQWidget *parent, const char *name, bool modal )
label = new TQLabel( page );
label->setText(i18n("Name:"));
- l_grid->addWidget(TQT_TQWIDGET(label), 0, 1, TQt::AlignLeft);
+ l_grid->addWidget(label, 0, 1, TQt::AlignLeft);
d->colorName = new TQLabel( page );
- l_grid->addWidget(TQT_TQWIDGET(d->colorName), 0, 2, TQt::AlignLeft);
+ l_grid->addWidget(d->colorName, 0, 2, TQt::AlignLeft);
label = new TQLabel( page );
label->setText(i18n("HTML:"));
- l_grid->addWidget(TQT_TQWIDGET(label), 1, 1, TQt::AlignLeft);
+ l_grid->addWidget(label, 1, 1, TQt::AlignLeft);
d->htmlName = new KLineEdit( page );
d->htmlName->setMaxLength( 13 ); // Qt's TQColor allows 12 hexa-digits
d->htmlName->setText("#FFFFFF"); // But HTML uses only 6, so do not worry about the size
w = d->htmlName->fontMetrics().width(TQString::fromLatin1("#DDDDDDD"));
d->htmlName->setFixedWidth(w);
- l_grid->addWidget(TQT_TQWIDGET(d->htmlName), 1, 2, TQt::AlignLeft);
+ l_grid->addWidget(d->htmlName, 1, 2, TQt::AlignLeft);
connect( d->htmlName, TQT_SIGNAL( textChanged(const TQString &) ),
TQT_SLOT( slotHtmlChanged() ) );
d->patch = new KColorPatch( page );
d->patch->setFixedSize(48, 48);
- l_grid->addMultiCellWidget(TQT_TQWIDGET(d->patch), 0, 1, 0, 0, TQt::AlignHCenter | TQt::AlignVCenter);
+ l_grid->addMultiCellWidget(d->patch, 0, 1, 0, 0, TQt::AlignHCenter | TQt::AlignVCenter);
connect( d->patch, TQT_SIGNAL( colorChanged( const TQColor&)),
TQT_SLOT( setColor( const TQColor&)));
@@ -1532,7 +1532,7 @@ KColorDialog::mouseReleaseEvent( TQMouseEvent *e )
TQColor
KColorDialog::grabColor(const TQPoint &p)
{
- TQWidget *desktop = TQT_TQWIDGET(TQApplication::desktop());
+ TQWidget *desktop = TQApplication::desktop();
TQPixmap pm = TQPixmap::grabWindow( desktop->winId(), p.x(), p.y(), 1, 1);
TQImage i = pm.convertToImage();
return i.pixel(0,0);