summaryrefslogtreecommitdiffstats
path: root/tdeui/kcolordialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tdeui/kcolordialog.cpp')
-rw-r--r--tdeui/kcolordialog.cpp54
1 files changed, 27 insertions, 27 deletions
diff --git a/tdeui/kcolordialog.cpp b/tdeui/kcolordialog.cpp
index e5832f81f..9eb28b07f 100644
--- a/tdeui/kcolordialog.cpp
+++ b/tdeui/kcolordialog.cpp
@@ -191,23 +191,23 @@ static void createStandardPalette()
int i = 0;
- standardPalette[i++] = Qt::red;
- standardPalette[i++] = Qt::green;
- standardPalette[i++] = Qt::blue;
- standardPalette[i++] = Qt::cyan;
- standardPalette[i++] = Qt::magenta;
- standardPalette[i++] = Qt::yellow;
- standardPalette[i++] = Qt::darkRed;
- standardPalette[i++] = Qt::darkGreen;
- standardPalette[i++] = Qt::darkBlue;
- standardPalette[i++] = Qt::darkCyan;
- standardPalette[i++] = Qt::darkMagenta;
- standardPalette[i++] = Qt::darkYellow;
- standardPalette[i++] = Qt::white;
- standardPalette[i++] = Qt::lightGray;
- standardPalette[i++] = Qt::gray;
- standardPalette[i++] = Qt::darkGray;
- standardPalette[i++] = Qt::black;
+ standardPalette[i++] = TQt::red;
+ standardPalette[i++] = TQt::green;
+ standardPalette[i++] = TQt::blue;
+ standardPalette[i++] = TQt::cyan;
+ standardPalette[i++] = TQt::magenta;
+ standardPalette[i++] = TQt::yellow;
+ standardPalette[i++] = TQt::darkRed;
+ standardPalette[i++] = TQt::darkGreen;
+ standardPalette[i++] = TQt::darkBlue;
+ standardPalette[i++] = TQt::darkCyan;
+ standardPalette[i++] = TQt::darkMagenta;
+ standardPalette[i++] = TQt::darkYellow;
+ standardPalette[i++] = TQt::white;
+ standardPalette[i++] = TQt::lightGray;
+ standardPalette[i++] = TQt::gray;
+ standardPalette[i++] = TQt::darkGray;
+ standardPalette[i++] = TQt::black;
}
@@ -263,7 +263,7 @@ void KHSSelector::drawPalette( TQPixmap *pixmap )
//-----------------------------------------------------------------------------
KValueSelector::KValueSelector( TQWidget *parent, const char *name )
- : TDESelector( Qt::Vertical, parent, name ), _hue(0), _sat(0)
+ : TDESelector( TQt::Vertical, parent, name ), _hue(0), _sat(0)
{
setRange( 0, 255 );
pixmap.setOptimization( TQPixmap::BestOptim );
@@ -300,7 +300,7 @@ void KValueSelector::drawPalette( TQPixmap *pixmap )
uint *p;
TQRgb rgb;
- if ( orientation() == Qt::Horizontal )
+ if ( orientation() == TQt::Horizontal )
{
for ( int v = 0; v < ySize; v++ )
{
@@ -315,7 +315,7 @@ void KValueSelector::drawPalette( TQPixmap *pixmap )
}
}
- if( orientation() == Qt::Vertical )
+ if( orientation() == TQt::Vertical )
{
for ( int v = 0; v < ySize; v++ )
{
@@ -429,7 +429,7 @@ int KColorCells::posToCell(const TQPoint &pos, bool ignoreBorders)
void KColorCells::mouseMoveEvent( TQMouseEvent *e )
{
- if( !(e->state() & Qt::LeftButton)) return;
+ if( !(e->state() & TQt::LeftButton)) return;
if(inMouse) {
int delay = TDEGlobalSettings::dndEventDelay();
@@ -533,7 +533,7 @@ void KColorPatch::drawContents( TQPainter *painter )
void KColorPatch::mouseMoveEvent( TQMouseEvent *e )
{
// Drag color object
- if( !(e->state() & Qt::LeftButton)) return;
+ if( !(e->state() & TQt::LeftButton)) return;
KColorDrag *d = new KColorDrag( color, this);
d->dragCopy();
}
@@ -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, Qt::AlignLeft);
+ l_grid->addWidget(TQT_TQWIDGET(label), 0, 1, TQt::AlignLeft);
d->colorName = new TQLabel( page );
- l_grid->addWidget(TQT_TQWIDGET(d->colorName), 0, 2, Qt::AlignLeft);
+ l_grid->addWidget(TQT_TQWIDGET(d->colorName), 0, 2, TQt::AlignLeft);
label = new TQLabel( page );
label->setText(i18n("HTML:"));
- l_grid->addWidget(TQT_TQWIDGET(label), 1, 1, Qt::AlignLeft);
+ l_grid->addWidget(TQT_TQWIDGET(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, Qt::AlignLeft);
+ l_grid->addWidget(TQT_TQWIDGET(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, Qt::AlignHCenter | Qt::AlignVCenter);
+ l_grid->addMultiCellWidget(TQT_TQWIDGET(d->patch), 0, 1, 0, 0, TQt::AlignHCenter | TQt::AlignVCenter);
connect( d->patch, TQT_SIGNAL( colorChanged( const TQColor&)),
TQT_SLOT( setColor( const TQColor&)));