Qt 4.8
Functions
qegl_x11.cpp File Reference
#include <QtCore/qdebug.h>
#include <QtGui/private/qt_x11_p.h>
#include <QtGui/qx11info_x11.h>
#include <QtGui/private/qpixmapdata_p.h>
#include <QtGui/private/qpixmap_x11_p.h>
#include <QtGui/private/qimagepixmapcleanuphooks_p.h>
#include <QtGui/qpaintdevice.h>
#include <QtGui/qpixmap.h>
#include <QtGui/qwidget.h>
#include <QtGui/qcolormap.h>
#include "QtGui/private/qegl_p.h"
#include "QtGui/private/qeglcontext_p.h"

Go to the source code of this file.

Functions

static int countBits (unsigned long mask)
 
void qt_set_winid_on_widget (QWidget *w, Qt::HANDLE id)
 
const QX11Infoqt_x11Info (const QPaintDevice *pd)
 

Function Documentation

◆ countBits()

static int countBits ( unsigned long  mask)
static

Definition at line 81 of file qegl_x11.cpp.

Referenced by QEgl::getCompatibleVisualId(), and QEglProperties::setVisualFormat().

82 {
83  int count = 0;
84  while (mask != 0) {
85  if (mask & 1)
86  ++count;
87  mask >>= 1;
88  }
89  return count;
90 }

◆ qt_set_winid_on_widget()

void qt_set_winid_on_widget ( QWidget w,
Qt::HANDLE  id 
)

Definition at line 325 of file qegl_x11.cpp.

Referenced by QEgl::createSurface().

326 {
327  w->create(id);
328 }
void create(WId=0, bool initializeWindow=true, bool destroyOldWindow=true)
Creates a new widget window if window is 0, otherwise sets the widget&#39;s window to window...
Definition: qwidget.cpp:1454

◆ qt_x11Info()

const QX11Info* qt_x11Info ( const QPaintDevice pd)
related