Qt 4.8
Functions
qxlibwindow.cpp File Reference
#include "qxlibwindow.h"
#include "qxlibintegration.h"
#include "qxlibscreen.h"
#include "qxlibkeyboard.h"
#include "qxlibstatic.h"
#include "qxlibdisplay.h"
#include "qglxintegration.h"
#include "qglxconvenience.h"
#include <QtGui/QWindowSystemInterface>
#include <QSocketNotifier>
#include <QApplication>
#include <QDebug>
#include <QtGui/private/qwindowsurface_p.h>
#include <QtGui/private/qapplication_p.h>

Go to the source code of this file.

Functions

static bool isTransient (const QWidget *w)
 
static Qt::MouseButtons translateMouseButtons (int s)
 

Function Documentation

◆ isTransient()

static bool isTransient ( const QWidget w)
inlinestatic

Definition at line 416 of file qxlibwindow.cpp.

Referenced by QXlibWindow::setVisible().

417 {
418  return ((w->windowType() == Qt::Dialog
419  || w->windowType() == Qt::Sheet
420  || w->windowType() == Qt::Tool
421  || w->windowType() == Qt::SplashScreen
422  || w->windowType() == Qt::ToolTip
423  || w->windowType() == Qt::Drawer
424  || w->windowType() == Qt::Popup)
426 }
bool testAttribute(Qt::WidgetAttribute) const
Returns true if attribute attribute is set on this widget; otherwise returns false.
Definition: qwidget.h:1041
Qt::WindowType windowType() const
Returns the window type of this widget.
Definition: qwidget.h:937

◆ translateMouseButtons()

static Qt::MouseButtons translateMouseButtons ( int  s)
static

Definition at line 175 of file qxlibwindow.cpp.

Referenced by QXlibWindow::handleMouseEvent().

176 {
177  Qt::MouseButtons ret = 0;
178  if (s & Button1Mask)
179  ret |= Qt::LeftButton;
180  if (s & Button2Mask)
181  ret |= Qt::MidButton;
182  if (s & Button3Mask)
183  ret |= Qt::RightButton;
184  return ret;
185 }