Changeset View
Changeset View
Standalone View
Standalone View
libs/ui/KisApplication.cpp
Show All 10 Lines | 1 | /* This file is part of the KDE project | |||
---|---|---|---|---|---|
11 | This library is distributed in the hope that it will be useful, | 11 | This library is distributed in the hope that it will be useful, | ||
12 | but WITHOUT ANY WARRANTY; without even the implied warranty of | 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
14 | Library General Public License for more details. | 14 | Library General Public License for more details. | ||
15 | 15 | | |||
16 | You should have received a copy of the GNU Library General Public License | 16 | You should have received a copy of the GNU Library General Public License | ||
17 | along with this library; see the file COPYING.LIB. If not, write to | 17 | along with this library; see the file COPYING.LIB. If not, write to | ||
18 | the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 18 | the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | ||
19 | * Boston, MA 02110-1301, USA. | 19 | Boston, MA 02110-1301, USA. | ||
20 | */ | 20 | */ | ||
21 | 21 | | |||
22 | #include "KisApplication.h" | 22 | #include "KisApplication.h" | ||
23 | 23 | | |||
24 | #include <stdlib.h> | 24 | #include <stdlib.h> | ||
25 | #ifdef Q_OS_WIN | 25 | #ifdef Q_OS_WIN | ||
26 | #include <windows.h> | 26 | #include <windows.h> | ||
27 | #include <tchar.h> | 27 | #include <tchar.h> | ||
28 | #endif | 28 | #endif | ||
29 | 29 | | |||
30 | #ifdef Q_OS_OSX | ||||
31 | #include "osx.h" | ||||
32 | #endif | ||||
33 | | ||||
30 | #include <QDesktopServices> | 34 | #include <QDesktopServices> | ||
31 | #include <QDesktopWidget> | 35 | #include <QDesktopWidget> | ||
32 | #include <QDir> | 36 | #include <QDir> | ||
33 | #include <QFile> | 37 | #include <QFile> | ||
34 | #include <QLocale> | 38 | #include <QLocale> | ||
35 | #include <QMessageBox> | 39 | #include <QMessageBox> | ||
36 | #include <QMessageBox> | 40 | #include <QMessageBox> | ||
37 | #include <QProcessEnvironment> | 41 | #include <QProcessEnvironment> | ||
▲ Show 20 Lines • Show All 107 Lines • ▼ Show 20 Line(s) | |||||
145 | 149 | | |||
146 | KisApplication::KisApplication(const QString &key, int &argc, char **argv) | 150 | KisApplication::KisApplication(const QString &key, int &argc, char **argv) | ||
147 | : QtSingleApplication(key, argc, argv) | 151 | : QtSingleApplication(key, argc, argv) | ||
148 | , d(new KisApplicationPrivate) | 152 | , d(new KisApplicationPrivate) | ||
149 | , m_autosaveDialog(0) | 153 | , m_autosaveDialog(0) | ||
150 | , m_mainWindow(0) | 154 | , m_mainWindow(0) | ||
151 | , m_batchRun(false) | 155 | , m_batchRun(false) | ||
152 | { | 156 | { | ||
157 | #ifdef Q_OS_OSX | ||||
158 | setMouseCoalescingEnabled(false); | ||||
159 | #endif | ||||
160 | | ||||
153 | QCoreApplication::addLibraryPath(QCoreApplication::applicationDirPath()); | 161 | QCoreApplication::addLibraryPath(QCoreApplication::applicationDirPath()); | ||
154 | 162 | | |||
155 | setApplicationDisplayName("Krita"); | 163 | setApplicationDisplayName("Krita"); | ||
156 | setApplicationName("krita"); | 164 | setApplicationName("krita"); | ||
157 | // Note: Qt docs suggest we set this, but if we do, we get resource paths of the form of krita/krita, which is weird. | 165 | // Note: Qt docs suggest we set this, but if we do, we get resource paths of the form of krita/krita, which is weird. | ||
158 | // setOrganizationName("krita"); | 166 | // setOrganizationName("krita"); | ||
159 | setOrganizationDomain("krita.org"); | 167 | setOrganizationDomain("krita.org"); | ||
160 | 168 | | |||
▲ Show 20 Lines • Show All 617 Lines • Show Last 20 Lines |