Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Krita
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Tusooa Zhu
Krita
Commits
172bf301
Commit
172bf301
authored
Nov 05, 2013
by
Halla Rempt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
make build with qt 4.6
parent
2a12eb1d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
10 deletions
+24
-10
krita/ui/input/wintab/config-qt_x11_p.h.cmake
krita/ui/input/wintab/config-qt_x11_p.h.cmake
+3
-1
krita/ui/input/wintab/kis_tablet_support_x11.cpp
krita/ui/input/wintab/kis_tablet_support_x11.cpp
+21
-9
No files found.
krita/ui/input/wintab/config-qt_x11_p.h.cmake
View file @
172bf301
...
...
@@ -19,7 +19,9 @@
#include <input/wintab/qt_x11_p_qt47.h>
#else
#if QT_VERSION >= 0x040600
#include <input/wintab/qt_x11_p_qt46.h>
#define QT_NO_XIM
#include <input/wintab/qt_x11_p_qt46.h>
#undef QT_NO_XIM
#endif
#endif
#endif
...
...
krita/ui/input/wintab/kis_tablet_support_x11.cpp
View file @
172bf301
...
...
@@ -98,15 +98,27 @@ void kis_x11_init_tablet()
#if defined(Q_OS_IRIX)
#else
if
(
devs
->
type
==
ATOM
(
XWacomStylus
)
||
devs
->
type
==
ATOM
(
XTabletStylus
))
{
deviceType
=
QTabletEvent
::
Stylus
;
if
(
wacomDeviceName
()
->
isEmpty
())
wacomDeviceName
()
->
append
(
devs
->
name
);
gotStylus
=
true
;
}
else
if
(
devs
->
type
==
ATOM
(
XWacomEraser
)
||
devs
->
type
==
ATOM
(
XTabletEraser
))
{
deviceType
=
QTabletEvent
::
XFreeEraser
;
gotEraser
=
true
;
}
#if QT_VERSION >= 0x040700
if
(
devs
->
type
==
ATOM
(
XWacomStylus
)
||
devs
->
type
==
ATOM
(
XTabletStylus
))
{
#else
if
(
devs
->
type
==
ATOM
(
XWacomStylus
))
{
#endif
deviceType
=
QTabletEvent
::
Stylus
;
if
(
wacomDeviceName
()
->
isEmpty
())
wacomDeviceName
()
->
append
(
devs
->
name
);
gotStylus
=
true
;
#if QT_VERSION >= 0x040700
}
else
if
(
devs
->
type
==
ATOM
(
XWacomEraser
)
||
devs
->
type
==
ATOM
(
XTabletEraser
))
{
#else
}
else
if
(
devs
->
type
==
ATOM
(
XWacomEraser
))
{
#endif
deviceType
=
QTabletEvent
::
XFreeEraser
;
gotEraser
=
true
;
}
#endif
if
(
deviceType
==
QTabletEvent
::
NoDevice
)
continue
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment