Changeset View
Changeset View
Standalone View
Standalone View
krita/main.cc
Show First 20 Lines • Show All 87 Lines • ▼ Show 20 Line(s) | |||||
88 | } | 88 | } | ||
89 | } // namespace | 89 | } // namespace | ||
90 | #endif | 90 | #endif | ||
91 | extern "C" int main(int argc, char **argv) | 91 | extern "C" int main(int argc, char **argv) | ||
92 | { | 92 | { | ||
93 | 93 | | |||
94 | // The global initialization of the random generator | 94 | // The global initialization of the random generator | ||
95 | qsrand(time(0)); | 95 | qsrand(time(0)); | ||
96 | | ||||
97 | /** | | |||
98 | * Add a workaround for Qt 5.6, which implemented compression of the tablet events. | | |||
99 | * Since Qt 5.6.1 there will be this hacky environment variable option. After that, | | |||
100 | * Qt developers promised to give us better control for that. Please make sure the env | | |||
101 | * variable is set *before* the construction of QApplication! | | |||
102 | */ | | |||
103 | #if defined Q_OS_LINUX && QT_VERSION >= 0x050600 | | |||
104 | qputenv("QT_XCB_NO_EVENT_COMPRESSION", "1"); | | |||
105 | #endif | | |||
106 | | ||||
107 | bool runningInKDE = !qgetenv("KDE_FULL_SESSION").isEmpty(); | 96 | bool runningInKDE = !qgetenv("KDE_FULL_SESSION").isEmpty(); | ||
108 | 97 | | |||
109 | /** | 98 | /** | ||
110 | * Disable debug output by default. (krita.input enables tablet debugging.) | 99 | * Disable debug output by default. (krita.input enables tablet debugging.) | ||
111 | * Debug logs can be controlled by an environment variable QT_LOGGING_RULES. | 100 | * Debug logs can be controlled by an environment variable QT_LOGGING_RULES. | ||
112 | * | 101 | * | ||
113 | * As an example, to get full debug output, run the following: | 102 | * As an example, to get full debug output, run the following: | ||
114 | * export QT_LOGGING_RULES="krita*=true"; krita | 103 | * export QT_LOGGING_RULES="krita*=true"; krita | ||
▲ Show 20 Lines • Show All 158 Lines • Show Last 20 Lines |