Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Discover
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Plasma
Discover
Commits
bbf45c19
Commit
bbf45c19
authored
Oct 05, 2017
by
Aleix Pol Gonzalez
🐧
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use QQC2 Label as kirigami does
parent
d809fe59
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
34 additions
and
25 deletions
+34
-25
discover/qml/ApplicationDelegate.qml
discover/qml/ApplicationDelegate.qml
+4
-3
discover/qml/ApplicationPage.qml
discover/qml/ApplicationPage.qml
+9
-8
discover/qml/ApplicationsListPage.qml
discover/qml/ApplicationsListPage.qml
+4
-3
discover/qml/DiscoverWindow.qml
discover/qml/DiscoverWindow.qml
+2
-1
discover/qml/LabelBackground.qml
discover/qml/LabelBackground.qml
+1
-1
discover/qml/LinkButton.qml
discover/qml/LinkButton.qml
+2
-1
discover/qml/LoadingPage.qml
discover/qml/LoadingPage.qml
+2
-1
discover/qml/ProgressView.qml
discover/qml/ProgressView.qml
+2
-1
discover/qml/ReviewDelegate.qml
discover/qml/ReviewDelegate.qml
+3
-2
discover/qml/UpdatesPage.qml
discover/qml/UpdatesPage.qml
+5
-4
No files found.
discover/qml/ApplicationDelegate.qml
View file @
bbf45c19
...
...
@@ -19,6 +19,7 @@
import
QtQuick
2.1
import
QtQuick
.
Controls
1.1
import
QtQuick
.
Controls
2.1
as
QQC2
import
QtQuick
.
Layouts
1.1
import
org
.
kde
.
kquickcontrolsaddons
2.0
import
org
.
kde
.
discover
.
app
1.0
...
...
@@ -76,7 +77,7 @@ Kirigami.AbstractListItem
Layout.minimumWidth
:
Math
.
min
(
implicitWidth
,
conts
.
width
)
maximumLineCount
:
1
}
Label
{
QQC2.
Label
{
Layout.fillWidth
:
true
elide
:
Text
.
ElideRight
horizontalAlignment
:
Text
.
AlignRight
...
...
@@ -92,7 +93,7 @@ Kirigami.AbstractListItem
height
:
Kirigami
.
Units
.
devicePixelRatio
}
Label
{
QQC2.
Label
{
Layout.fillWidth
:
true
elide
:
Text
.
ElideRight
...
...
@@ -101,7 +102,7 @@ Kirigami.AbstractListItem
font
:
SystemFonts
.
titleFont
}
Label
{
QQC2.
Label
{
Layout.fillWidth
:
true
horizontalAlignment
:
Text
.
AlignJustify
...
...
discover/qml/ApplicationPage.qml
View file @
bbf45c19
...
...
@@ -19,6 +19,7 @@
import
QtQuick
2.5
import
QtQuick
.
Controls
1.1
import
QtQuick
.
Controls
2.1
as
QQC2
import
QtQuick
.
Window
2.1
import
QtQuick
.
Layouts
1.1
import
org
.
kde
.
kquickcontrolsaddons
2.0
...
...
@@ -138,7 +139,7 @@ DiscoverPage {
width
:
ListView
.
view
.
width
-
Kirigami
.
Units
.
gridUnit
*
2
spacing
:
0
Label
{
QQC2.
Label
{
Layout.topMargin
:
Kirigami
.
Units
.
largeSpacing
Layout.fillWidth
:
true
text
:
appInfo
.
application
.
comment
...
...
@@ -146,7 +147,7 @@ DiscoverPage {
elide
:
Text
.
ElideRight
maximumLineCount
:
1
}
Label
{
QQC2.
Label
{
Layout.fillWidth
:
true
elide
:
Text
.
ElideRight
text
:
appInfo
.
application
.
categoryDisplay
...
...
@@ -157,16 +158,16 @@ DiscoverPage {
Layout.fillWidth
:
true
Layout.fillHeight
:
true
}
Label
{
QQC2.
Label
{
readonly
property
string
version
:
appInfo
.
application
.
isInstalled
?
appInfo
.
application
.
installedVersion
:
appInfo
.
application
.
availableVersion
visible
:
version
.
length
>
0
text
:
version
?
i18n
(
"
Version: %1
"
,
version
)
:
""
}
Label
{
QQC2.
Label
{
text
:
i18n
(
"
Size: %1
"
,
appInfo
.
application
.
sizeDescription
)
}
RowLayout
{
Label
{
QQC2.
Label
{
text
:
i18n
(
"
Source:
"
)
}
LinkButton
{
...
...
@@ -176,7 +177,7 @@ DiscoverPage {
}
}
RowLayout
{
Label
{
QQC2.
Label
{
text
:
i18n
(
"
License:
"
)
}
LinkButton
{
...
...
@@ -199,7 +200,7 @@ DiscoverPage {
Layout.fillWidth
:
true
visible
:
appInfo
.
application
.
longDescription
.
length
>
0
}
Kirigami
.Label
{
QQC2
.Label
{
Layout.fillWidth
:
true
horizontalAlignment
:
Text
.
AlignJustify
wrapMode
:
Text
.
WordWrap
...
...
@@ -214,7 +215,7 @@ DiscoverPage {
RowLayout
{
visible
:
button
.
text
.
length
>
0
Label
{
QQC2.
Label
{
text
:
i18n
(
"
Homepage:
"
)
}
LinkButton
{
...
...
discover/qml/ApplicationsListPage.qml
View file @
bbf45c19
...
...
@@ -19,6 +19,7 @@
import
QtQuick
2.5
import
QtQuick
.
Controls
1.1
import
QtQuick
.
Controls
2.1
as
QQC2
import
QtQuick
.
Layouts
1.1
import
QtQuick
.
Window
2.2
import
"
navigation.js
"
as
Navigation
...
...
@@ -58,7 +59,7 @@ DiscoverPage {
ListView
{
id
:
apps
section.delegate
:
Label
{
section.delegate
:
QQC2.
Label
{
text
:
section
anchors
{
right
:
parent
.
right
...
...
@@ -86,7 +87,7 @@ DiscoverPage {
compact
:
page
.
compact
}
Kirigami
.Label
{
QQC2
.Label
{
anchors.centerIn
:
parent
opacity
:
apps
.
count
==
0
&&
!
appsModel
.
isBusy
?
0.3
:
0
Behavior
on
opacity
{
PropertyAnimation
{
duration
:
Kirigami
.
Units
.
longDuration
;
easing.type
:
Easing
.
InOutQuad
;
}
}
...
...
@@ -131,7 +132,7 @@ DiscoverPage {
}
}
]
Kirigami
.Label
{
QQC2
.Label
{
id
:
busyLabel
anchors
{
horizontalCenter
:
parent
.
horizontalCenter
...
...
discover/qml/DiscoverWindow.qml
View file @
bbf45c19
import
QtQuick
2.1
import
QtQuick
.
Layouts
1.1
import
QtQuick
.
Controls
1.1
import
QtQuick
.
Controls
2.1
as
QQC2
import
org
.
kde
.
discover
2.0
import
org
.
kde
.
discover
.
app
1.0
import
org
.
kde
.
kirigami
2.0
as
Kirigami
...
...
@@ -129,7 +130,7 @@ Kirigami.ApplicationWindow
Kirigami.Heading
{
id
:
heading
}
Kirigami
.Label
{
QQC2
.Label
{
id
:
desc
Layout.fillWidth
:
true
wrapMode
:
Text
.
WordWrap
...
...
discover/qml/LabelBackground.qml
View file @
bbf45c19
...
...
@@ -18,7 +18,7 @@
*/
import
QtQuick
2.1
import
QtQuick
.
Controls
1
.1
import
QtQuick
.
Controls
2
.1
import
QtQuick
.
Layouts
1.1
import
org
.
kde
.
discover
.
app
1.0
import
org
.
kde
.
kirigami
2.0
as
Kirigami
...
...
discover/qml/LinkButton.qml
View file @
bbf45c19
import
QtQuick
2.2
import
org
.
kde
.
kirigami
2.0
as
Kirigami
import
QtQuick
.
Controls
2.1
as
QQC2
Kirigami
.Label
{
QQC2
.Label
{
id
:
control
property
QtObject
action
:
null
//some older Qt versions don't support the namespacing in Kirigami.Action
...
...
discover/qml/LoadingPage.qml
View file @
bbf45c19
import
org
.
kde
.
kirigami
2.0
as
Kirigami
import
QtQuick
.
Controls
2.1
as
QQC2
Kirigami.Page
{
title
:
label
.
text
Kirigami
.Label
{
QQC2
.Label
{
id
:
label
text
:
i18n
(
"
Loading...
"
)
font.pointSize
:
52
...
...
discover/qml/ProgressView.qml
View file @
bbf45c19
import
QtQuick
2.1
import
QtQuick
.
Controls
1.1
import
QtQuick
.
Controls
2.1
as
QQC2
import
QtQuick
.
Layouts
1.1
import
org
.
kde
.
kquickcontrolsaddons
2.0
import
org
.
kde
.
discover
2.0
...
...
@@ -96,7 +97,7 @@ Kirigami.BasicListItem {
source
:
model
.
transaction
.
icon
}
Label
{
QQC2.
Label
{
anchors.verticalCenter
:
parent
.
verticalCenter
Layout.fillWidth
:
true
elide
:
Text
.
ElideRight
...
...
discover/qml/ReviewDelegate.qml
View file @
bbf45c19
...
...
@@ -19,8 +19,9 @@
import
QtQuick
2.1
import
QtQuick
.
Layouts
1.1
import
org
.
kde
.
kirigami
2.0
import
QtQuick
.
Controls
2.1
import
org
.
kde
.
discover
2.0
import
org
.
kde
.
kirigami
2.0
as
Kirigami
ColumnLayout
{
...
...
@@ -75,7 +76,7 @@ ColumnLayout
}
onLinkActivated
:
item
.
markUseful
(
link
==
'
true
'
)
}
Separator
{
Kirigami.
Separator
{
Layout.fillWidth
:
true
}
}
discover/qml/UpdatesPage.qml
View file @
bbf45c19
import
QtQuick
.
Controls
1.2
import
QtQuick
.
Controls
2.1
as
QQC2
import
QtQuick
.
Layouts
1.1
import
QtQuick
2.4
import
org
.
kde
.
discover
2.0
...
...
@@ -61,7 +62,7 @@ DiscoverPage
Layout.leftMargin
:
Kirigami
.
Units
.
gridUnit
text
:
updateModel
.
toUpdateCount
+
"
(
"
+
updateModel
.
updateSize
+
"
)
"
}
Label
{
QQC2.
Label
{
text
:
i18n
(
"
updates selected
"
)
}
LabelBackground
{
...
...
@@ -70,7 +71,7 @@ DiscoverPage
text
:
unselected
visible
:
unselected
>
0
}
Label
{
QQC2.
Label
{
text
:
i18n
(
"
updates not selected
"
)
visible
:
unselectedItem
.
visible
}
...
...
@@ -160,7 +161,7 @@ DiscoverPage
source
:
decoration
}
Label
{
QQC2.
Label
{
Layout.fillWidth
:
true
text
:
i18n
(
"
%1 (%2)
"
,
display
,
version
)
elide
:
Text
.
ElideRight
...
...
@@ -181,7 +182,7 @@ DiscoverPage
frameVisible
:
true
visible
:
layout
.
extended
&&
changelog
.
length
>
0
Label
{
QQC2.
Label
{
width
:
view
.
viewport
.
width
text
:
changelog
textFormat
:
Text
.
RichText
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment