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

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/18/head
Michele Calgaro 12 months ago
parent b32a017aa6
commit 236b93c726
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -1701,7 +1701,7 @@ void KviUserListViewArea::paintEvent(TQPaintEvent *ev)
//p.drawLine(1,height()-1,wdth,height()-1); //p.drawLine(1,height()-1,wdth,height()-1);
//p.drawLine(wdth - 1,1,wdth - 1,height()); //p.drawLine(wdth - 1,1,wdth - 1,height());
bitBlt(TQT_TQPAINTDEVICE(this),r.left(),r.top(),TQT_TQPAINTDEVICE(pMemBuffer),r.left(),r.top(),r.width(),r.height(),TQt::CopyROP,false); bitBlt(this,r.left(),r.top(),pMemBuffer,r.left(),r.top(),r.width(),r.height(),TQt::CopyROP,false);
} }
void KviUserListViewArea::resizeEvent(TQResizeEvent *) void KviUserListViewArea::resizeEvent(TQResizeEvent *)

@ -611,10 +611,10 @@ void KviDockWidget::paintEvent(TQPaintEvent * event)
erase(); erase();
bitBlt(this,4,4,g_pIconManager->getSmallIcon(KVI_SMALLICON_MESSAGE),0,0,16,16); bitBlt(this,4,4,g_pIconManager->getSmallIcon(KVI_SMALLICON_MESSAGE),0,0,16,16);
} else { } else {
bitBlt(TQT_TQPAINTDEVICE(this),0,0,TQT_TQPAINTDEVICE(m_iOther ? ((m_iOther == 2) ? g_pDock3 : g_pDock2) : g_pDock1),0,0,12,12,TQt::CopyROP,false); bitBlt(this,0,0,m_iOther ? ((m_iOther == 2) ? g_pDock3 : g_pDock2) : g_pDock1,0,0,12,12,TQt::CopyROP,false);
bitBlt(TQT_TQPAINTDEVICE(this),0,12,TQT_TQPAINTDEVICE(m_iConsoles ? ((m_iConsoles == 2) ? g_pDock3 : g_pDock2) : g_pDock1),0,12,12,12,TQt::CopyROP,false); bitBlt(this,0,12,m_iConsoles ? ((m_iConsoles == 2) ? g_pDock3 : g_pDock2) : g_pDock1,0,12,12,12,TQt::CopyROP,false);
bitBlt(TQT_TQPAINTDEVICE(this),12,0,TQT_TQPAINTDEVICE(m_iQueries ? ((m_iQueries == 2) ? g_pDock3 : g_pDock2) : g_pDock1),12,0,12,12,TQt::CopyROP,false); bitBlt(this,12,0,m_iQueries ? ((m_iQueries == 2) ? g_pDock3 : g_pDock2) : g_pDock1,12,0,12,12,TQt::CopyROP,false);
bitBlt(TQT_TQPAINTDEVICE(this),12,12,TQT_TQPAINTDEVICE(m_iChannels ? ((m_iChannels == 2) ? g_pDock3 : g_pDock2) : g_pDock1),12,12,12,12,TQt::CopyROP,false); bitBlt(this,12,12,m_iChannels ? ((m_iChannels == 2) ? g_pDock3 : g_pDock2) : g_pDock1,12,12,12,12,TQt::CopyROP,false);
} }
} }

@ -80,7 +80,7 @@ bool IdlePlatform::init()
old_handler = XSetErrorHandler(xerrhandler); old_handler = XSetErrorHandler(xerrhandler);
int event_base, error_base; int event_base, error_base;
if(XScreenSaverQueryExtension(TQT_TQPAINTDEVICE(TQApplication::desktop()->screen())->x11Display(), &event_base, &error_base)) { if(XScreenSaverQueryExtension(TQApplication::desktop()->screen()->x11Display(), &event_base, &error_base)) {
d->ss_info = XScreenSaverAllocInfo(); d->ss_info = XScreenSaverAllocInfo();
return true; return true;
} }
@ -92,7 +92,7 @@ int IdlePlatform::secondsIdle()
{ {
if(!d->ss_info) if(!d->ss_info)
return 0; return 0;
if(!XScreenSaverQueryInfo(TQT_TQPAINTDEVICE(TQApplication::desktop()->screen())->x11Display(), tqt_xrootwin(), d->ss_info)) if(!XScreenSaverQueryInfo(TQApplication::desktop()->screen()->x11Display(), tqt_xrootwin(), d->ss_info))
return 0; return 0;
return d->ss_info->idle / 1000; return d->ss_info->idle / 1000;
} }

@ -771,8 +771,8 @@ bool KviKvsObject_painter::functionbegin(KviKvsObjectFunctionCall *c)
} }
TQPaintDevice * pd = 0; TQPaintDevice * pd = 0;
if(pObject->inherits("KviKvsObject_pixmap"))pd =TQT_TQPAINTDEVICE(((KviKvsObject_pixmap *)pObject)->getPixmap()); if(pObject->inherits("KviKvsObject_pixmap"))pd =((KviKvsObject_pixmap *)pObject)->getPixmap();
else if (pObject->inherits("KviKvsObject_widget")) pd=TQT_TQPAINTDEVICE(((KviKvsObject_widget *)pObject)->widget()); else if (pObject->inherits("KviKvsObject_widget")) pd=((KviKvsObject_widget *)pObject)->widget();
if (!pd) if (!pd)
c->warning(__tr2qs("Widget or Pixmap required ")); c->warning(__tr2qs("Widget or Pixmap required "));

@ -616,8 +616,8 @@ static bool objects_kvs_cmd_bitBlt(KviKvsModuleCommandCall * c)
TQImage * imgSource=0; TQImage * imgSource=0;
TQPaintDevice * pdSource = 0; TQPaintDevice * pdSource = 0;
if(obSrc->inherits("KviKvsObject_pixmap")) pdSource =TQT_TQPAINTDEVICE(((KviKvsObject_pixmap *)obSrc)->getPixmap()); if(obSrc->inherits("KviKvsObject_pixmap")) pdSource =((KviKvsObject_pixmap *)obSrc)->getPixmap();
else if (obSrc->inherits("KviKvsObject_widget")) pdSource=TQT_TQPAINTDEVICE(((KviKvsObject_widget *)obSrc)->widget()); else if (obSrc->inherits("KviKvsObject_widget")) pdSource=((KviKvsObject_widget *)obSrc)->widget();
if (!pdSource) if (!pdSource)
{ {
c->warning(__tr2qs("Widget, Image or Pixmap required ")); c->warning(__tr2qs("Widget, Image or Pixmap required "));
@ -625,9 +625,9 @@ static bool objects_kvs_cmd_bitBlt(KviKvsModuleCommandCall * c)
} }
TQPaintDevice * pdDest = 0; TQPaintDevice * pdDest = 0;
if(obDst->inherits("KviKvsObject_pixmap")){ if(obDst->inherits("KviKvsObject_pixmap")){
pdDest= TQT_TQPAINTDEVICE(((KviKvsObject_pixmap *)obDst)->getPixmap()); pdDest= ((KviKvsObject_pixmap *)obDst)->getPixmap();
} }
else if (obDst->inherits("KviKvsObject_widget")) pdDest=TQT_TQPAINTDEVICE(((KviKvsObject_widget *)obDst)->widget()); else if (obDst->inherits("KviKvsObject_widget")) pdDest=((KviKvsObject_widget *)obDst)->widget();
if (!pdDest) if (!pdDest)
{ {
c->warning(__tr2qs("Widget or Pixmap required")); c->warning(__tr2qs("Widget or Pixmap required"));
@ -711,8 +711,8 @@ static bool objects_kvs_cmd_blend(KviKvsModuleCommandCall * c)
} }
TQPaintDevice * pdDest = 0; TQPaintDevice * pdDest = 0;
if(obDest->inherits("KviKvsObject_pixmap")) pdDest = TQT_TQPAINTDEVICE(((KviKvsObject_pixmap *)obDest)->getPixmap()); if(obDest->inherits("KviKvsObject_pixmap")) pdDest = ((KviKvsObject_pixmap *)obDest)->getPixmap();
else if (obDest->inherits("KviKvsObject_widget")) pdDest=TQT_TQPAINTDEVICE(((KviKvsObject_widget *)obDest)->widget()); else if (obDest->inherits("KviKvsObject_widget")) pdDest=((KviKvsObject_widget *)obDest)->widget();
if (!pdDest) if (!pdDest)
{ {

@ -734,7 +734,7 @@ void KviRegisteredUsersDialog::exportClicked()
if(!f.save(1))goto write_error; if(!f.save(1))goto write_error;
TQImageIO io; TQImageIO io;
io.setImage(av->pixmap()->convertToImage()); io.setImage(av->pixmap()->convertToImage());
io.setIODevice(TQT_TQIODEVICE(&f)); io.setIODevice(&f);
io.setFormat("PNG"); io.setFormat("PNG");
if(!io.write())goto write_error; if(!io.write())goto write_error;
} else { } else {
@ -832,7 +832,7 @@ void KviRegisteredUsersDialog::importClicked()
TQImage img; TQImage img;
TQImageIO io; TQImageIO io;
io.setImage(img); io.setImage(img);
io.setIODevice(TQT_TQIODEVICE(&f)); io.setIODevice(&f);
io.setFormat("PNG"); io.setFormat("PNG");
if(!io.read())goto read_error; if(!io.read())goto read_error;

Loading…
Cancel
Save