mirror of
https://bitbucket.org/smil3y/kde-workspace.git
synced 2025-02-23 18:32:50 +00:00
kwin: replace KWin::X11Cursor::createCursor() with its body
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
885dec0ded
commit
8a49d1e8cc
2 changed files with 0 additions and 6 deletions
|
@ -245,11 +245,6 @@ xcb_cursor_t X11Cursor::getX11Cursor(Qt::CursorShape shape)
|
|||
if (it != m_cursors.constEnd()) {
|
||||
return it.value();
|
||||
}
|
||||
return createCursor(shape);
|
||||
}
|
||||
|
||||
xcb_cursor_t X11Cursor::createCursor(Qt::CursorShape shape)
|
||||
{
|
||||
const QByteArray name = cursorName(shape);
|
||||
if (name.isEmpty()) {
|
||||
return XCB_CURSOR_NONE;
|
||||
|
|
|
@ -199,7 +199,6 @@ private slots:
|
|||
void mousePolled();
|
||||
private:
|
||||
X11Cursor(QObject *parent);
|
||||
xcb_cursor_t createCursor(Qt::CursorShape shape);
|
||||
QByteArray cursorName(Qt::CursorShape shape) const;
|
||||
QHash<Qt::CursorShape, xcb_cursor_t > m_cursors;
|
||||
xcb_timestamp_t m_timeStamp;
|
||||
|
|
Loading…
Add table
Reference in a new issue