Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
KDE Workspace
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Unmaintained
KDE Workspace
Commits
6acbd605
Commit
6acbd605
authored
12 years ago
by
Thomas Lübking
Browse files
Options
Downloads
Patches
Plain Diff
Ensure main.qml presence
BUG: 304881 REVIEW: 106062 FIXED-IN: 4.9.1
parent
d5d598fa
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
kwin/kcmkwin/kwindecoration/kwindecoration.cpp
+11
-1
11 additions, 1 deletion
kwin/kcmkwin/kwindecoration/kwindecoration.cpp
with
11 additions
and
1 deletion
kwin/kcmkwin/kwindecoration/kwindecoration.cpp
+
11
−
1
View file @
6acbd605
...
...
@@ -48,6 +48,7 @@
#include
<KAboutData>
#include
<KDialog>
#include
<KLocale>
#include
<KMessageBox>
#include
<KNS3/DownloadDialog>
#include
<KDE/KStandardDirs>
#include
<KDE/KConfigDialogManager>
...
...
@@ -81,6 +82,15 @@ KWinDecorationModule::KWinDecorationModule(QWidget* parent, const QVariantList &
,
m_lastPreviewWidth
(
-
1
)
,
m_previewUpdateTimer
(
NULL
)
{
const
QString
mainQmlPath
=
KStandardDirs
::
locate
(
"data"
,
"kwin/kcm_kwindecoration/main.qml"
);
if
(
mainQmlPath
.
isNull
())
{
// TODO 4.10 i18n this
KMessageBox
::
error
(
this
,
"<h1>Installation error</h1>"
"The resource<h2>kwin/kcm_kwindecoration/main.qml</h2>could not be located in any application data path."
"<h2>Please contact your distribution</h2>"
"The application will now abort"
,
"Installation Error"
);
abort
();
}
qmlRegisterType
<
Aurorae
::
AuroraeTheme
>
(
"org.kde.kwin.aurorae"
,
0
,
1
,
"AuroraeTheme"
);
m_ui
=
new
KWinDecorationForm
(
this
);
m_ui
->
configureDecorationButton
->
setIcon
(
KIcon
(
"configure"
));
...
...
@@ -110,7 +120,7 @@ KWinDecorationModule::KWinDecorationModule(QWidget* parent, const QVariantList &
m_ui
->
decorationList
->
rootContext
()
->
setContextProperty
(
"decorationInactiveCaptionColor"
,
KDecoration
::
options
()
->
color
(
ColorFont
,
false
));
m_ui
->
decorationList
->
rootContext
()
->
setContextProperty
(
"decorationActiveTitleBarColor"
,
KDecoration
::
options
()
->
color
(
ColorTitleBar
,
true
));
m_ui
->
decorationList
->
rootContext
()
->
setContextProperty
(
"decorationInactiveTitleBarColor"
,
KDecoration
::
options
()
->
color
(
ColorTitleBar
,
false
));
m_ui
->
decorationList
->
setSource
(
KStandardDirs
::
locate
(
"data"
,
"kwin/kcm_kwindecoration/main.qml"
)
);
m_ui
->
decorationList
->
setSource
(
mainQmlPath
);
readConfig
(
style
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment