Changeset View
Changeset View
Standalone View
Standalone View
webenginepart/src/settings/webenginesettings.cpp
Show All 15 Lines | 1 | /* This file is part of the KDE project | |||
---|---|---|---|---|---|
16 | the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 16 | the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | ||
17 | Boston, MA 02110-1301, USA. | 17 | Boston, MA 02110-1301, USA. | ||
18 | */ | 18 | */ | ||
19 | 19 | | |||
20 | #include "webenginesettings.h" | 20 | #include "webenginesettings.h" | ||
21 | 21 | | |||
22 | #include "webengine_filter.h" | 22 | #include "webengine_filter.h" | ||
23 | #include <webenginepart_debug.h> | 23 | #include <webenginepart_debug.h> | ||
24 | #include "../../src/htmldefaults.h" | ||||
24 | 25 | | |||
25 | #include <KConfig> | 26 | #include <KConfig> | ||
26 | #include <KSharedConfig> | 27 | #include <KSharedConfig> | ||
27 | #include <KLocalizedString> | 28 | #include <KLocalizedString> | ||
28 | #include <KConfigGroup> | 29 | #include <KConfigGroup> | ||
29 | #include <KJob> | 30 | #include <KJob> | ||
30 | #include <KIO/Job> | 31 | #include <KIO/Job> | ||
31 | #include <KMessageBox> | 32 | #include <KMessageBox> | ||
32 | 33 | | |||
33 | #include <QWebEngineSettings> | 34 | #include <QWebEngineSettings> | ||
34 | #include <QFontDatabase> | 35 | #include <QFontDatabase> | ||
35 | #include <QFileInfo> | 36 | #include <QFileInfo> | ||
36 | 37 | | |||
37 | // browser window color defaults -- Bernd | | |||
38 | #define HTML_DEFAULT_LNK_COLOR Qt::blue | | |||
39 | #define HTML_DEFAULT_TXT_COLOR Qt::black | | |||
40 | #define HTML_DEFAULT_VLNK_COLOR Qt::magenta | | |||
41 | #define HTML_DEFAULT_BASE_COLOR Qt::white | | |||
42 | | ||||
43 | #define HTML_DEFAULT_VIEW_FONT "Sans Serif" | | |||
44 | #define HTML_DEFAULT_VIEW_FIXED_FONT "Monospace" | | |||
45 | #define HTML_DEFAULT_VIEW_SERIF_FONT "Serif" | | |||
46 | #define HTML_DEFAULT_VIEW_SANSSERIF_FONT "Sans Serif" | | |||
47 | #define HTML_DEFAULT_VIEW_CURSIVE_FONT "Sans Serif" | | |||
48 | #define HTML_DEFAULT_VIEW_FANTASY_FONT "Sans Serif" | | |||
49 | #define HTML_DEFAULT_MIN_FONT_SIZE 7 // everything smaller is usually unreadable. | | |||
50 | | ||||
51 | /** | 38 | /** | ||
52 | * @internal | 39 | * @internal | ||
53 | * Contains all settings which are both available globally and per-domain | 40 | * Contains all settings which are both available globally and per-domain | ||
54 | */ | 41 | */ | ||
55 | struct KPerDomainSettings { | 42 | struct KPerDomainSettings { | ||
56 | bool m_bEnableJava : 1; | 43 | bool m_bEnableJava : 1; | ||
57 | bool m_bEnableJavaScript : 1; | 44 | bool m_bEnableJavaScript : 1; | ||
58 | bool m_bEnablePlugins : 1; | 45 | bool m_bEnablePlugins : 1; | ||
▲ Show 20 Lines • Show All 1227 Lines • Show Last 20 Lines |