49 #include <QtGui/QImageReader> 51 #define DATADIR "/usr/share" 59 {
DATADIR "/wayland/left_ptr.png", 10, 5 },
61 {
DATADIR "/wayland/top_side.png", 18, 8 },
63 {
DATADIR "/wayland/top_side.png", 18, 8 },
65 {
DATADIR "/wayland/top_side.png", 18, 8 },
67 {
DATADIR "/wayland/xterm.png", 15, 15 },
69 {
DATADIR "/wayland/top_side.png", 18, 8 },
71 {
DATADIR "/wayland/bottom_left_corner.png", 6, 30 },
73 {
DATADIR "/wayland/bottom_right_corner.png", 28, 28 },
75 {
DATADIR "/wayland/bottom_side.png", 16, 20 },
77 {
DATADIR "/wayland/left_side.png", 10, 20 },
79 {
DATADIR "/wayland/right_side.png", 30, 19 },
81 {
DATADIR "/wayland/sb_v_double_arrow.png", 15, 15 },
83 {
DATADIR "/wayland/sb_h_double_arrow.png", 15, 15 },
85 {
DATADIR "/wayland/hand2.png", 14, 8 },
87 {
DATADIR "/wayland/top_right_corner.png", 26, 8 },
89 {
DATADIR "/wayland/top_right_corner.png", 26, 8 },
91 {
DATADIR "/wayland/top_right_corner.png", 26, 8 },
93 {
DATADIR "/wayland/hand1.png", 18, 11 },
95 {
DATADIR "/wayland/grabbing.png", 20, 17 },
97 {
DATADIR "/wayland/dnd-copy.png", 13, 13 },
99 {
DATADIR "/wayland/dnd-move.png", 13, 13 },
101 {
DATADIR "/wayland/dnd-link.png", 13, 13 },
120 switch (cursor->
shape()) {
167 if (!reader.canRead())
187 for (
int i = 0; i < mInputDevices.count(); i++) {
189 inputDevice->
attach(buffer, x, y);
The QCursor class provides a mouse cursor with an arbitrary shape.
QPointer< QWidget > widget
QWaylandShmBuffer * mBuffer
QWaylandCursor(QWaylandScreen *screen)
static const struct pointer_image pointer_images[]
Q_GUI_EXPORT EGLDisplay display()
void setCursor(QWaylandBuffer *buffer, int32_t x, int32_t y)
Q_CORE_EXPORT void qWarning(const char *,...)
The QImageReader class provides a format independent interface for reading images from files or other...
void changeCursor(QCursor *cursor, QWidget *widget)
This method is called by Qt whenever the cursor graphic should be changed.
QWaylandDisplay * mDisplay
Qt::CursorShape shape() const
Returns the cursor shape identifier.