Changeset View
Changeset View
Standalone View
Standalone View
krita/main.cc
Show First 20 Lines • Show All 61 Lines • ▼ Show 20 Line(s) | |||||
62 | #include "config_use_qt_tablet_windows.h" | 62 | #include "config_use_qt_tablet_windows.h" | ||
63 | #include <windows.h> | 63 | #include <windows.h> | ||
64 | #ifndef USE_QT_TABLET_WINDOWS | 64 | #ifndef USE_QT_TABLET_WINDOWS | ||
65 | #include <kis_tablet_support_win.h> | 65 | #include <kis_tablet_support_win.h> | ||
66 | #include <kis_tablet_support_win8.h> | 66 | #include <kis_tablet_support_win8.h> | ||
67 | #else | 67 | #else | ||
68 | #include <dialogs/KisDlgCustomTabletResolution.h> | 68 | #include <dialogs/KisDlgCustomTabletResolution.h> | ||
69 | #endif | 69 | #endif | ||
70 | #include "config-set-has-border-in-full-screen-default.h" | ||||
71 | #ifdef HAVE_SET_HAS_BORDER_IN_FULL_SCREEN_DEFAULT | ||||
72 | #include <QtPlatformHeaders/QWindowsWindowFunctions> | ||||
73 | #endif | ||||
70 | #include <QLibrary> | 74 | #include <QLibrary> | ||
71 | #endif | 75 | #endif | ||
72 | 76 | | |||
73 | #if defined HAVE_KCRASH | 77 | #if defined HAVE_KCRASH | ||
74 | #include <kcrash.h> | 78 | #include <kcrash.h> | ||
75 | #elif defined USE_DRMINGW | 79 | #elif defined USE_DRMINGW | ||
76 | namespace | 80 | namespace | ||
77 | { | 81 | { | ||
▲ Show 20 Lines • Show All 241 Lines • ▼ Show 20 Line(s) | 322 | KisDlgCustomTabletResolution::Mode tabletMode = | |||
319 | KisDlgCustomTabletResolution::getTabletMode(&customTabletRect); | 323 | KisDlgCustomTabletResolution::getTabletMode(&customTabletRect); | ||
320 | KisDlgCustomTabletResolution::applyConfiguration(tabletMode, customTabletRect); | 324 | KisDlgCustomTabletResolution::applyConfiguration(tabletMode, customTabletRect); | ||
321 | } | 325 | } | ||
322 | #endif | 326 | #endif | ||
323 | 327 | | |||
324 | // first create the application so we can create a pixmap | 328 | // first create the application so we can create a pixmap | ||
325 | KisApplication app(key, argc, argv); | 329 | KisApplication app(key, argc, argv); | ||
326 | 330 | | |||
331 | #ifdef HAVE_SET_HAS_BORDER_IN_FULL_SCREEN_DEFAULT | ||||
332 | if (QCoreApplication::testAttribute(Qt::AA_UseDesktopOpenGL)) { | ||||
333 | QWindowsWindowFunctions::setHasBorderInFullScreenDefault(true); | ||||
334 | } | ||||
335 | #endif | ||||
336 | | ||||
327 | KisUsageLogger::writeHeader(); | 337 | KisUsageLogger::writeHeader(); | ||
328 | 338 | | |||
329 | if (!language.isEmpty()) { | 339 | if (!language.isEmpty()) { | ||
330 | if (rightToLeft) { | 340 | if (rightToLeft) { | ||
331 | app.setLayoutDirection(Qt::RightToLeft); | 341 | app.setLayoutDirection(Qt::RightToLeft); | ||
332 | } | 342 | } | ||
333 | else { | 343 | else { | ||
334 | app.setLayoutDirection(Qt::LeftToRight); | 344 | app.setLayoutDirection(Qt::LeftToRight); | ||
▲ Show 20 Lines • Show All 184 Lines • Show Last 20 Lines |