Changeset View
Changeset View
Standalone View
Standalone View
krita/main.cc
Show All 39 Lines | |||||
40 | 40 | | |||
41 | #include "data/splash/splash_screen.xpm" | 41 | #include "data/splash/splash_screen.xpm" | ||
42 | #include "data/splash/splash_holidays.xpm" | 42 | #include "data/splash/splash_holidays.xpm" | ||
43 | #include "KisDocument.h" | 43 | #include "KisDocument.h" | ||
44 | #include "kis_splash_screen.h" | 44 | #include "kis_splash_screen.h" | ||
45 | #include "KisPart.h" | 45 | #include "KisPart.h" | ||
46 | #include "KisApplicationArguments.h" | 46 | #include "KisApplicationArguments.h" | ||
47 | #include <opengl/kis_opengl.h> | 47 | #include <opengl/kis_opengl.h> | ||
48 | #include "input/KisQtWidgetsTweaker.h" | ||||
48 | 49 | | |||
49 | #if defined Q_OS_WIN | 50 | #if defined Q_OS_WIN | ||
50 | #include <windows.h> | 51 | #include <windows.h> | ||
51 | #include <stdlib.h> | 52 | #include <stdlib.h> | ||
52 | #include <kis_tablet_support_win.h> | 53 | #include <kis_tablet_support_win.h> | ||
53 | 54 | | |||
54 | #elif defined HAVE_X11 | 55 | #elif defined HAVE_X11 | ||
55 | #include <kis_tablet_support_x11.h> | 56 | #include <kis_tablet_support_x11.h> | ||
▲ Show 20 Lines • Show All 168 Lines • ▼ Show 20 Line(s) | 203 | #endif | |||
224 | if (!runningInKDE) { | 225 | if (!runningInKDE) { | ||
225 | // Icons in menus are ugly and distracting | 226 | // Icons in menus are ugly and distracting | ||
226 | app.setAttribute(Qt::AA_DontShowIconsInMenus); | 227 | app.setAttribute(Qt::AA_DontShowIconsInMenus); | ||
227 | } | 228 | } | ||
228 | 229 | | |||
229 | #if defined HAVE_X11 | 230 | #if defined HAVE_X11 | ||
230 | app.installNativeEventFilter(KisXi2EventFilter::instance()); | 231 | app.installNativeEventFilter(KisXi2EventFilter::instance()); | ||
231 | #endif | 232 | #endif | ||
233 | app.installEventFilter(KisQtWidgetsTweaker::instance()); | ||||
234 | | ||||
232 | 235 | | |||
233 | // then create the pixmap from an xpm: we cannot get the | 236 | // then create the pixmap from an xpm: we cannot get the | ||
234 | // location of our datadir before we've started our components, | 237 | // location of our datadir before we've started our components, | ||
235 | // so use an xpm. | 238 | // so use an xpm. | ||
236 | QDate currentDate = QDate::currentDate(); | 239 | QDate currentDate = QDate::currentDate(); | ||
237 | QWidget *splash = 0; | 240 | QWidget *splash = 0; | ||
238 | if (currentDate > QDate(currentDate.year(), 12, 4) || | 241 | if (currentDate > QDate(currentDate.year(), 12, 4) || | ||
239 | currentDate < QDate(currentDate.year(), 1, 9)) { | 242 | currentDate < QDate(currentDate.year(), 1, 9)) { | ||
Show All 39 Lines |