Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Education
KAlgebra
Commits
42c33a4f
Commit
42c33a4f
authored
Jul 06, 2021
by
Aleix Pol Gonzalez
🐧
Browse files
mobile: Port away from deprecated API
parent
fbde617e
Changes
1
Hide whitespace changes
Inline
Side-by-side
mobile/content/ui/Console.qml
View file @
42c33a4f
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA *
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA *
*************************************************************************************/
*************************************************************************************/
import
org
.
kde
.
kirigami
2.
5
as
Kirigami
import
org
.
kde
.
kirigami
2.
14
as
Kirigami
import
QtQuick
2.2
import
QtQuick
2.2
import
QtQuick
.
Layouts
1.2
import
QtQuick
.
Layouts
1.2
import
QtQuick
.
Controls
2.5
as
QQC2
import
QtQuick
.
Controls
2.5
as
QQC2
...
@@ -115,16 +115,6 @@ Kirigami.ScrollablePage {
...
@@ -115,16 +115,6 @@ Kirigami.ScrollablePage {
delegate
:
Kirigami.Card
{
delegate
:
Kirigami.Card
{
contentItem
:
QQC2.Label
{
text
:
model
.
result
}
contentItem
:
QQC2.Label
{
text
:
model
.
result
}
hiddenActions
:
[
QQC2.Action
{
readonly
property
string
value
:
result
.
replace
(
/<
[^
>
]
*>/g
,
''
);
text
:
i18n
(
"
Copy
\"
%1
\"
"
,
value
)
icon.name
:
"
edit-copy
"
onTriggered
:
{
clipboard
.
content
=
value
}
}
]
actions
:
[
actions
:
[
Kirigami.Action
{
Kirigami.Action
{
visible
:
App
.
functionsModel
().
canAddFunction
(
expression
,
2
,
App
.
variables
)
visible
:
App
.
functionsModel
().
canAddFunction
(
expression
,
2
,
App
.
variables
)
...
@@ -141,6 +131,15 @@ Kirigami.ScrollablePage {
...
@@ -141,6 +131,15 @@ Kirigami.ScrollablePage {
App
.
functionsModel
().
addFunction
(
expression
,
4
,
App
.
variables
)
App
.
functionsModel
().
addFunction
(
expression
,
4
,
App
.
variables
)
show3dPlotAction
.
trigger
();
show3dPlotAction
.
trigger
();
}
}
},
Kirigami.Action
{
readonly
property
string
value
:
result
.
replace
(
/<
[^
>
]
*>/g
,
''
);
text
:
i18n
(
"
Copy
\"
%1
\"
"
,
value
)
icon.name
:
"
edit-copy
"
displayHint
:
Kirigami
.
DisplayHint
.
AlwaysHide
onTriggered
:
{
clipboard
.
content
=
value
}
}
}
]
]
}
}
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment