diff --git a/experiments/barcode-ean13-1000110007387.svg b/experiments/barcode-ean13-1000110007387.svg new file mode 100644 index 0000000..92889c9 --- /dev/null +++ b/experiments/barcode-ean13-1000110007387.svg @@ -0,0 +1,311 @@ + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/experiments/barcode-ean13-2165741004149.svg b/experiments/barcode-ean13-2165741004149.svg new file mode 100644 index 0000000..0ccaf27 --- /dev/null +++ b/experiments/barcode-ean13-2165741004149.svg @@ -0,0 +1,311 @@ + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/experiments/barcode-ean13-7613035588165.svg b/experiments/barcode-ean13-7613035588165.svg new file mode 100644 index 0000000..5e575f8 --- /dev/null +++ b/experiments/barcode-ean13-7613035588165.svg @@ -0,0 +1,301 @@ + + + + + + image/svg+xml + + + + + + + + 7613035588165 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 7 + 613035 + 588165 + + diff --git a/experiments/qml-icon-source.qml b/experiments/qml-icon-source.qml new file mode 100644 index 0000000..5de75c8 --- /dev/null +++ b/experiments/qml-icon-source.qml @@ -0,0 +1,31 @@ +import QtQuick 2.12 +import QtQuick.Controls 2.12 +import QtQuick.Layouts 1.2 +import org.kde.kirigami 2.10 as Kirigami + +// Demonstrates the Kirigami 2.10 bug that custom icons are not shown for page actions. +// +// Page actions work with theme icons (see "rightAction:"), but not with custom icons +// (see "leftAction:"). Even when using the exact same action that successfully displays the custom +// icon on a button (see "ToolButton"). +Kirigami.ApplicationWindow { + pageStack.initialPage: Kirigami.Page { + title: "Icon Problem Demo" + + Kirigami.Action { + id: action1 + text: "Action 1" + iconSource: "file:/home/matthias/Projects/Fairdirect.Food_Rescue_App/Repo.foodrescue-app/src/images/barcode-64x64.png" + } + + Kirigami.Action { + id: action2 + text: "Action 2" + iconName: "camera-web" + } + + leftAction: action1 + rightAction: action2 + ToolButton { action: action1 } + } +} diff --git a/experiments/qml-repeater-property.qml b/experiments/qml-repeater-property.qml new file mode 100644 index 0000000..7ce66c3 --- /dev/null +++ b/experiments/qml-repeater-property.qml @@ -0,0 +1,19 @@ +import QtQuick 2.1 +import QtQuick.Controls 2.0 as QQC2 +import QtQuick.Layouts 1.2 +import org.kde.kirigami 2.4 as Kirigami + +Repeater { + model: suggestions + + property int currentIndex: 2 + + Component.onCompleted: { + console.log("suggestions.currentIndex: " + suggestions.currentIndex) + suggestions.currentIndex = 2 + console.log("suggestions.currentIndex: " + suggestions.currentIndex) + currentIndex = 2 + console.log("suggestions.currentIndex: " + suggestions.currentIndex) + } + +} diff --git a/experiments/qt-htmlwidget-tests.html b/experiments/qt-htmlwidget-tests.html new file mode 100644 index 0000000..7274b8b --- /dev/null +++ b/experiments/qt-htmlwidget-tests.html @@ -0,0 +1,71 @@ +font weight normal
+font weight bold
+font weight 100
+font weight 200
+font weight 300
+font weight 400
+font weight 500
+font weight 600
+font weight 700
+font weight 800
+font weight 900 + +

Spacer test:

+

.

+

Spacer test:

+

.

+

Spacer test:

+

.

+

Spacer test:

+

.

+

Spacer test:

+

.

+

Spacer test:

+ +
Spacer test:
+
.
+
Spacer test:
+
.
+
Spacer test:
+
.
+
Spacer test:
+
.
+
Spacer test:
+
.
+
Spacer test:
+ +
Spacer Test with table
+
.
+
Spacer Test with table
+
.
+
Spacer Test with table
+
.
+
Spacer Test with table
+
.
+
Spacer Test with table
+
.
+
Spacer Test with table
+ +
Spacer test:
+ +
Spacer test:
+ +
Spacer test:
+
.
+
Spacer test:
+ +
Spacer test:
+
+
Spacer test:
+
+
Spacer test:
+ +
Spacer test:
+
+
Spacer test:
+
+
Spacer test:
+ +
Spacer test:
+
+
Spacer test:
diff --git a/experiments/qt-xmlpatterns-test-01_frctopic.xml b/experiments/qt-xmlpatterns-test-01_frctopic.xml new file mode 100644 index 0000000..3b998b5 --- /dev/null +++ b/experiments/qt-xmlpatterns-test-01_frctopic.xml @@ -0,0 +1,50 @@ + + + + + Fridge storage of smoked or processed ham + + + + 2020-05-01 + + + It stays fresh for about a week. + + + + + meats + + + + hams + + + + + + The typical maximum storage time in the refrigerator is: + + + + + 1 Weeks in the fridge, if stored there immediately after purchase, whether sealed or not + + + + + (The above applies to: 'Meat: Smoked or Processed: Ham (Fresh, cook-before-eating, Shoulder Roll (Butt), boneless)'.) + + Sources used: + + + + USDA-1 (PRODUCTS.ID=93) + + + + + + + diff --git a/experiments/qt-xmlpatterns-test-01_frctopic.xsl b/experiments/qt-xmlpatterns-test-01_frctopic.xsl new file mode 100644 index 0000000..2adb88a --- /dev/null +++ b/experiments/qt-xmlpatterns-test-01_frctopic.xsl @@ -0,0 +1,68 @@ + + + + + + + + + <xsl:value-of select="./db:topic/db:info/db:title"/> + + + + + + + + + + + +

+ +

+ +
+
+ + +

+
+ + +
+
+ + +
  • +
    + + + + +
    + + + diff --git a/experiments/qt-xmlpatterns-test-02_minimal.xml b/experiments/qt-xmlpatterns-test-02_minimal.xml new file mode 100644 index 0000000..26006d7 --- /dev/null +++ b/experiments/qt-xmlpatterns-test-02_minimal.xml @@ -0,0 +1,5 @@ + + + Using a mouse + It's easy to use a mouse. Just roll it around and click the buttons. + diff --git a/experiments/qt-xmlpatterns-test-02_minimal.xsl b/experiments/qt-xmlpatterns-test-02_minimal.xsl new file mode 100644 index 0000000..17a0f0f --- /dev/null +++ b/experiments/qt-xmlpatterns-test-02_minimal.xsl @@ -0,0 +1,23 @@ + + + + + + + + <xsl:value-of select="./title"/> + + + + + + +

    +
    + + +

    +
    + +
    + diff --git a/experiments/qt-xmlpatterns-test-03_foreach.xml b/experiments/qt-xmlpatterns-test-03_foreach.xml new file mode 100644 index 0000000..b065211 --- /dev/null +++ b/experiments/qt-xmlpatterns-test-03_foreach.xml @@ -0,0 +1,7 @@ + + topic 1 + topic 2 + topic 3 + topic 4 + topic 5 + diff --git a/experiments/qt-xmlpatterns-test-03_foreach.xsl b/experiments/qt-xmlpatterns-test-03_foreach.xsl new file mode 100644 index 0000000..2b7ae56 --- /dev/null +++ b/experiments/qt-xmlpatterns-test-03_foreach.xsl @@ -0,0 +1,140 @@ + + + + + + + + + + + + + + @type = + $key = + + '' + @type = + $key = + + + @type = + $key = + + test1 = + test2 = + + + ------------- + + + + ============================ + + +

    GROUP HEADER

    + + + ------------- + + +
    + + ============================ + + $typename = + + ---- + + +

    GROUP HEADER

    + + + ------------- + + +
    + + ============================ + + + + + + + + + =========================== + + + + + + + + +
    + + + + + + +

    GROUP HEADER

    + + + ------------- + + +
    +
    + + + + + +