Replaced various '#define' with actual strings - part 5

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/432/head
Michele Calgaro 11 months ago
parent a1cbb16bad
commit 1390bece9a
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -57,7 +57,7 @@ FileTypesView::FileTypesView(TQWidget *p, const char *name)
leftLayout->setSpacing( KDialog::spacingHint() );
leftLayout->setColStretch(1, 1);
l->addLayout( TQT_TQLAYOUT(leftLayout) );
l->addLayout( leftLayout );
TQLabel *patternFilterLBL = new TQLabel(i18n("F&ind filename pattern:"), this);
leftLayout->addMultiCellWidget(patternFilterLBL, 0, 0, 0, 2);

@ -19,7 +19,7 @@ NewTypeDialog::NewTypeDialog(TQStringList groups,
TQGridLayout *grid = new TQGridLayout(2, 2);
grid->setColStretch(1, 1);
topl->addLayout(TQT_TQLAYOUT(grid));
topl->addLayout(grid);
TQLabel *l = new TQLabel(i18n("Group:"), main);
grid->addWidget(l, 0, 0);

@ -159,7 +159,7 @@ CKCmFontInst::CKCmFontInst(TQWidget *parent, const char *, const TQStringList&)
connect(button, TQT_SIGNAL(clicked()), TQT_SLOT(addFonts()));
button->setSizePolicy(TQSizePolicy::Minimum, TQSizePolicy::Minimum);
fontsLayout->addWidget(button, 1, 0);
TQT_TQLAYOUT(fontsLayout)->addItem(new TQSpacerItem(4, 4, TQSizePolicy::Expanding, TQSizePolicy::Minimum));
fontsLayout->addItem(new TQSpacerItem(4, 4, TQSizePolicy::Expanding, TQSizePolicy::Minimum));
layout->addWidget(toolbar);
#ifdef HAVE_XFT

@ -877,7 +877,7 @@ void Minicli::setIcon ()
{
TQBitmap mask = *icon.mask();
bitBlt( &mask, x, y,
overlay.mask() ? TQT_TQPIXMAP(const_cast<TQBitmap *>(overlay.mask())) : &overlay,
overlay.mask() ? const_cast<TQBitmap *>(overlay.mask()) : &overlay,
0, 0, overlay.width(), overlay.height(),
overlay.mask() ? OrROP : SetROP );
icon.setMask(mask);

@ -1427,7 +1427,7 @@ void ExtensionContainer::paintEvent(TQPaintEvent *e)
// Nastiness to both vertically flip the PE_Separator
// and make sure it pops out of, not sinks into, the screen
TQPixmap inv_pm(width(),PANEL_RESIZE_HANDLE_WIDTH);
TQPainter myp(TQT_TQPAINTDEVICE(&inv_pm));
TQPainter myp(&inv_pm);
rect = TQRect(0,0,width(),PANEL_RESIZE_HANDLE_WIDTH);
TQColorGroup darkcg = colorGroup();
darkcg.setColor(TQColorGroup::Light, colorGroup().dark());

@ -213,7 +213,7 @@ ContainerAreaLayout::ContainerAreaLayout(TQWidget* parent)
void ContainerAreaLayout::addItem(TQLayoutItem* item)
{
m_items.append(new ContainerAreaLayoutItem(static_cast<TQLayoutItem*>(item), this));
m_items.append(new ContainerAreaLayoutItem(item, this));
}
void ContainerAreaLayout::insertIntoFreeSpace(TQWidget* widget, TQPoint insertionPoint)

@ -158,12 +158,12 @@ void KMenuItem::setup()
float min_font_size = 7. * TQMAX(1., TDEGlobalSettings::generalFont().pointSizeFloat() / 10.);
const int expected_height = 38;
description_font_size = TQMAX( pointSize( expected_height * .3, TQT_TQPAINTDEVICE(listView()) ) + KickerSettings::kickoffFontPointSizeOffset(), min_font_size ) ;
title_font_size = TQMAX( pointSize( expected_height * .25, TQT_TQPAINTDEVICE(listView()) ) + KickerSettings::kickoffFontPointSizeOffset(), min_font_size + 1 );
description_font_size = TQMAX( pointSize( expected_height * .3, listView() ) + KickerSettings::kickoffFontPointSizeOffset(), min_font_size ) ;
title_font_size = TQMAX( pointSize( expected_height * .25, listView() ) + KickerSettings::kickoffFontPointSizeOffset(), min_font_size + 1 );
//kdDebug() << description_font_size << " " << title_font_size << " " << pointSize( expected_height * .25, listView() ) << endl;
TQListViewItem::setup();
setHeight( (int)TQMAX( expected_height, pixelSize( title_font_size + description_font_size * 2.3, TQT_TQPAINTDEVICE(listView()))));
setHeight( (int)TQMAX( expected_height, pixelSize( title_font_size + description_font_size * 2.3, listView())));
}
void KMenuItem::paintCell(TQPainter* p, const TQColorGroup & cg, int column, int width, int align)
@ -278,7 +278,7 @@ void KMenuItem::paintCellInter(TQPainter* p, const TQColorGroup & cg, int column
if ( m_description.isEmpty() )
spacing = ( height() - f1h ) / 2;
int right_triangle_size = pixelSize( 7, TQT_TQPAINTDEVICE(listView()) );
int right_triangle_size = pixelSize( 7, listView() );
int right_margin = listView()->verticalScrollBar()->width();
if ( m_has_children )
@ -531,7 +531,7 @@ void KMenuItemHeader::paintCell(TQPainter* p, const TQColorGroup & cg, int , int
int r = left_margin + margin * 2;
const int min_font_size = 7;
int title_font_pixelSize = tqRound( pixelSize( TQMAX( pointSize( 12, TQT_TQPAINTDEVICE(listView()) ) + KickerSettings::kickoffFontPointSizeOffset(), min_font_size + 1 ), TQT_TQPAINTDEVICE(listView()) ) );
int title_font_pixelSize = tqRound( pixelSize( TQMAX( pointSize( 12, listView() ) + KickerSettings::kickoffFontPointSizeOffset(), min_font_size + 1 ), listView() ) );
TQFont f1 = p->font();
f1.setPixelSize( title_font_pixelSize );

@ -363,11 +363,11 @@ void KeyTrans::readConfig()
TQBuffer* newbuf;
newbuf = new TQBuffer();
newbuf->setBuffer(txt);
buf=TQT_TQIODEVICE(newbuf);
buf=newbuf;
}
else
{
buf=TQT_TQIODEVICE(new TQFile(m_path));
buf=new TQFile(m_path);
};
KeytabReader ktr(m_path,*buf);
ktr.parseTo(this);

@ -219,7 +219,7 @@ void FaviconsModule::slotResult(TDEIO::Job *job)
TQBuffer buffer(download.iconData);
buffer.open(IO_ReadOnly);
TQImageIO io;
io.setIODevice(TQT_TQIODEVICE(&buffer));
io.setIODevice(&buffer);
io.setParameters("size=16");
// Check here too, the job might have had no error, but the downloaded
// file contains just a 404 message sent with a 200 status.

@ -186,7 +186,7 @@ TQPixmap KonqPixmapProvider::loadIcon( const TQString& url, const TQString& icon
if ( big.mask() ) {
TQBitmap mask = *big.mask();
bitBlt( &mask, x, y,
small.mask() ? TQT_TQPIXMAP(const_cast<TQBitmap *>(small.mask())) : &small, 0, 0,
small.mask() ? const_cast<TQBitmap *>(small.mask()) : &small, 0, 0,
small.width(), small.height(),
small.mask() ? OrROP : SetROP );
big.setMask( mask );

@ -60,7 +60,7 @@ TDEDebugDialog::TDEDebugDialog( TQStringList areaList, TQWidget *parent, const c
TQGridLayout *gbox = new TQGridLayout( 2, 2, KDialog::marginHint() );
if( gbox == 0 ) { return; }
topLayout->addLayout( TQT_TQLAYOUT(gbox) );
topLayout->addLayout( gbox );
TQStringList destList;
destList.append( i18n("File") );

@ -75,7 +75,7 @@ ConfSystem::ConfSystem(TQWidget *parent, const char *name)
TQVBoxLayout *l0 = new TQVBoxLayout(this, 10, 10);
TQGridLayout *l1 = new TQGridLayout(0, 2, 2, 0, 10);
l0->addLayout(TQT_TQLAYOUT(l1));
l0->addLayout(l1);
l1->setColStretch(1, 1);
l1->addWidget(syslabel, 0, 0);
l1->addWidget(cmdlabel, 1, 0);

@ -393,7 +393,7 @@ KGreeter::insertUser( const TQImage &default_pix,
TQBuffer buf( fc );
buf.open( IO_ReadOnly );
TQImageIO ir;
ir.setIODevice( TQT_TQIODEVICE(&buf) );
ir.setIODevice( &buf );
if (!ir.read()) {
LogInfo( "%s is no valid image\n", fn.data() );
continue;

@ -200,7 +200,7 @@ class KGStdVerify : public KGVerify {
const PluginList &pluginList,
KGreeterPlugin::Function func, KGreeterPlugin::Context ctx );
virtual ~KGStdVerify();
TQLayout *getLayout() const { return TQT_TQLAYOUT(grid); }
TQLayout *getLayout() const { return grid; }
void selectPlugin( int id );
protected:

@ -83,7 +83,7 @@ KClassicGreeter::KClassicGreeter( KGreeterPluginHandler *_handler,
if (!themer)
grid = new TQGridLayout( 0, 0, 10 );
layoutItem = TQT_TQLAYOUTITEM(grid);
layoutItem = grid;
loginLabel = passwdLabel = passwd1Label = passwd2Label = 0;
loginEdit = 0;
@ -174,7 +174,7 @@ KClassicGreeter::~KClassicGreeter()
delete passwdEdit;
return;
}
TQLayoutIterator it = TQT_TQLAYOUT(layoutItem)->iterator();
TQLayoutIterator it = static_cast<TQLayout*>(layoutItem)->iterator();
for (TQLayoutItem *itm = it.current(); itm; itm = ++it)
delete itm->widget();
delete layoutItem;

@ -111,7 +111,7 @@ KPamGreeter::KPamGreeter( KGreeterPluginHandler *_handler,
m_themer = themer;
if (!themer)
layoutItem = TQT_TQLAYOUTITEM(new TQGridLayout( 0, 0, 10 ));
layoutItem = new TQGridLayout( 0, 0, 10 );
loginLabel = 0;
authLabel.clear();
@ -211,7 +211,7 @@ KPamGreeter::~KPamGreeter()
delete loginEdit;
return;
}
TQLayoutIterator it = TQT_TQLAYOUT(layoutItem)->iterator();
TQLayoutIterator it = static_cast<TQLayout*>(layoutItem)->iterator();
for (TQLayoutItem *itm = it.current(); itm; itm = ++it)
delete itm->widget();
delete layoutItem;

@ -68,7 +68,7 @@ class KPamGreeter : public TQObject, public KGreeterPlugin {
virtual void revive();
virtual void clear();
TQGridLayout *getLayoutItem() const { return static_cast<TQGridLayout*>(TQT_TQLAYOUT(layoutItem)); }
TQGridLayout *getLayoutItem() const { return static_cast<TQGridLayout*>(layoutItem); }
public slots:
void slotLoginLostFocus();

@ -93,7 +93,7 @@ KWinbindGreeter::KWinbindGreeter( KGreeterPluginHandler *_handler,
if (!themer)
{
grid = new TQGridLayout( 0, 0, 10 );
layoutItem = TQT_TQLAYOUTITEM(grid);
layoutItem = grid;
}
domainLabel = loginLabel = passwdLabel = passwd1Label = passwd2Label = 0;
@ -217,7 +217,7 @@ KWinbindGreeter::~KWinbindGreeter()
delete domainCombo;
return;
}
TQLayoutIterator it = TQT_TQLAYOUT(layoutItem)->iterator();
TQLayoutIterator it = static_cast<TQLayout*>(layoutItem)->iterator();
for (TQLayoutItem *itm = it.current(); itm; itm = ++it)
delete itm->widget();
delete layoutItem;

@ -982,7 +982,7 @@ static void redraw_pixmaps()
TQColor color = is_act ? aGrp.button() : iGrp.button();
drawB2Rect(&thinBox, color, is_down);
pix->fill(TQt::black);
bitBlt(TQT_TQPAINTDEVICE(pix), 0, 0, TQT_TQPAINTDEVICE(&thinBox),
bitBlt(pix, 0, 0, &thinBox,
0, 0, thinBox.width(), thinBox.height(), TQt::CopyROP, true);
}
@ -1005,12 +1005,12 @@ static void redraw_pixmaps()
drawB2Rect(&smallBox, is_act ? aGrp.button() : iGrp.button(), is_down);
drawB2Rect(&largeBox, is_act ? aGrp.button() : iGrp.button(), is_down);
pix->fill(options()->color(KDecoration::ColorTitleBar, is_act));
bitBlt(TQT_TQPAINTDEVICE(pix), pix->width() - 12, pix->width() - 12, TQT_TQPAINTDEVICE(&largeBox),
bitBlt(pix, pix->width() - 12, pix->width() - 12, &largeBox,
0, 0, 12, 12, TQt::CopyROP, true);
bitBlt(TQT_TQPAINTDEVICE(pix), 0, 0, TQT_TQPAINTDEVICE(&smallBox), 0, 0, 10, 10, TQt::CopyROP, true);
bitBlt(pix, 0, 0, &smallBox, 0, 0, 10, 10, TQt::CopyROP, true);
bitBlt(TQT_TQPAINTDEVICE(pixmap[P_ICONIFY * NumStates + i]), 0, 0,
TQT_TQPAINTDEVICE(&smallBox), 0, 0, 10, 10, TQt::CopyROP, true);
bitBlt(pixmap[P_ICONIFY * NumStates + i], 0, 0,
&smallBox, 0, 0, 10, 10, TQt::CopyROP, true);
}
// resize
@ -1020,8 +1020,8 @@ static void redraw_pixmaps()
*pixmap[P_RESIZE * NumStates + i] = *pixmap[P_CLOSE * NumStates + i];
pixmap[P_RESIZE * NumStates + i]->detach();
drawB2Rect(&smallBox, is_act ? aGrp.button() : iGrp.button(), is_down);
bitBlt(TQT_TQPAINTDEVICE(pixmap[P_RESIZE * NumStates + i]),
0, 0, TQT_TQPAINTDEVICE(&smallBox), 0, 0, 10, 10, TQt::CopyROP, true);
bitBlt(pixmap[P_RESIZE * NumStates + i],
0, 0, &smallBox, 0, 0, 10, 10, TQt::CopyROP, true);
}
@ -1395,7 +1395,7 @@ void B2Titlebar::resizeEvent(TQResizeEvent *)
void B2Titlebar::paintEvent(TQPaintEvent *)
{
if(client->isActive())
bitBlt(TQT_TQPAINTDEVICE(this), 0, 0, TQT_TQPAINTDEVICE(&titleBuffer), 0, 0, titleBuffer.width(),
bitBlt(this, 0, 0, &titleBuffer, 0, 0, titleBuffer.width(),
titleBuffer.height(), TQt::CopyROP, true);
else {
TQPainter p(this);

@ -66,7 +66,7 @@ KeramikEmbedder::KeramikEmbedder()
file = new TQFile( "tiles.h" );
file->open( IO_WriteOnly | IO_Truncate );
stream.setDevice( TQT_TQIODEVICE(file) );
stream.setDevice( file );
stream << "/*\n";
stream << " * Generated by embedtool 1.0 on " << datestring << endl;

@ -1010,7 +1010,7 @@ KMovingConfig::KMovingConfig (bool _standAlone, TDEConfig *_config, TQWidget *pa
" its size."));
TQGridLayout *rLay = new TQGridLayout(2,3);
bLay->addLayout(TQT_TQLAYOUT(rLay));
bLay->addLayout(rLay);
rLay->setColStretch(0,0);
rLay->setColStretch(1,1);

Loading…
Cancel
Save