Rename additional global functions and variables for tqt3

pull/1/head
Timothy Pearson 12 years ago
parent e5bc9e738a
commit 6d5c221f92

@ -137,7 +137,7 @@ OSDWidget::show() //virtual
const TQRect newGeometry = determineMetrics( M );
if( m_translucency && !isShown() || !newGeometry.intersects( oldGeometry ) )
m_screenshot = TQPixmap(TQPixmap::grabWindow( qt_xrootwin(),
m_screenshot = TQPixmap(TQPixmap::grabWindow( tqt_xrootwin(),
newGeometry.x(), newGeometry.y(),
newGeometry.width(), newGeometry.height() ));
@ -145,7 +145,7 @@ OSDWidget::show() //virtual
else if ( m_translucency )
{
const TQRect unite = oldGeometry.unite( newGeometry );
KPixmap pix = TQPixmap(TQPixmap::grabWindow( qt_xrootwin(), unite.x(), unite.y(), unite.width(), unite.height() ));
KPixmap pix = TQPixmap(TQPixmap::grabWindow( tqt_xrootwin(), unite.x(), unite.y(), unite.width(), unite.height() ));
TQPoint p = oldGeometry.topLeft() - unite.topLeft();
bitBlt( &pix, p, &m_screenshot );
@ -528,7 +528,7 @@ OSDWidget::paintMe()
int h = blendedImage.height();
Pixmap rawpixmap = m_buffer.handle();
XImage *image;
image = XGetImage (qt_xdisplay(), rawpixmap, 0, 0, w, h, AllPlanes, XYPixmap);
image = XGetImage (tqt_xdisplay(), rawpixmap, 0, 0, w, h, AllPlanes, XYPixmap);
for (int y = 0; y < h; ++y) {
TQRgb *ls = (TQRgb *)blendedImage.scanLine( y );
for (int x = 0; x < w; ++x) {

@ -597,25 +597,25 @@ bool PlayerWidget::event( TQEvent *e )
if( info.mappingState() == NET::Withdrawn )
{
//extern Atom qt_wm_state; //XAtom defined by TQt
//extern Atom tqt_wm_state; //XAtom defined by TQt
//TODO prevent the active Window flicker from playlist to player window please!
//TODO look at code for TQWidget::show();
//XDeleteProperty( qt_xdisplay(), id, qt_wm_state );
//XDeleteProperty( tqt_xdisplay(), id, tqt_wm_state );
//parentWidget()->show();
//if( !parentWidget()->isShown() ) XMapWindow( qt_xdisplay(), id );
//if( !parentWidget()->isShown() ) XMapWindow( tqt_xdisplay(), id );
// unsigned long data[2];
// data[0] = (unsigned long) NormalState;
// data[1] = (unsigned long) None;
//
// XChangeProperty( qt_xdisplay(), id, qt_wm_state, qt_wm_state, 32,
// XChangeProperty( tqt_xdisplay(), id, tqt_wm_state, tqt_wm_state, 32,
// PropModeReplace, (unsigned char *)data, 2);
//
// KWin::clearState( id, NET::Hidden );
//
// XMapWindow( qt_xdisplay(), id );
// XMapWindow( tqt_xdisplay(), id );
//
//KWin::deIconifyWindow( id, false );
parentWidget()->show();

Loading…
Cancel
Save