Commit b8200602 authored by Volker Krause's avatar Volker Krause

Remove Kirigami form layout touch transparency work around

Fixed in Kirigami meanwhile.
parent fc6abd6c
......@@ -29,7 +29,6 @@ App.DetailsPage {
Kirigami.FormLayout {
width: root.width
Component.onCompleted: Util.fixFormLayoutTouchTransparency(this)
QQC2.Label {
Kirigami.FormData.isSection: true
......
......@@ -29,7 +29,6 @@ App.DetailsPage {
Kirigami.FormLayout {
width: root.width
Component.onCompleted: Util.fixFormLayoutTouchTransparency(this)
Kirigami.Separator {
Kirigami.FormData.isSection: true
......
......@@ -29,7 +29,6 @@ App.DetailsPage {
Kirigami.FormLayout {
width: root.width
Component.onCompleted: Util.fixFormLayoutTouchTransparency(this)
QQC2.Label {
Kirigami.FormData.isSection: true
......
......@@ -35,7 +35,6 @@ App.DetailsPage {
Kirigami.FormLayout {
width: root.width
Component.onCompleted: Util.fixFormLayoutTouchTransparency(this)
QQC2.Label {
Kirigami.FormData.isSection: true
......
......@@ -29,7 +29,6 @@ App.DetailsPage {
Kirigami.FormLayout {
width: root.width
Component.onCompleted: Util.fixFormLayoutTouchTransparency(this)
QQC2.Label {
Kirigami.FormData.isSection: true
......
......@@ -34,7 +34,6 @@ App.DetailsPage {
Kirigami.FormLayout {
width: root.width
Component.onCompleted: Util.fixFormLayoutTouchTransparency(this)
QQC2.Label {
Kirigami.FormData.isSection: true
......
......@@ -30,7 +30,6 @@ App.DetailsPage {
Kirigami.FormLayout {
width: root.width
Component.onCompleted: Util.fixFormLayoutTouchTransparency(this)
QQC2.Label {
Kirigami.FormData.isSection: true
......
......@@ -53,7 +53,6 @@ App.DetailsPage {
Kirigami.FormLayout {
width: root.width
Component.onCompleted: Util.fixFormLayoutTouchTransparency(this)
QQC2.Label {
Kirigami.FormData.isSection: true
......
......@@ -21,7 +21,6 @@
#include <QDateTime>
#include <QTimeZone>
#include <QQuickItem>
using namespace KItinerary;
......@@ -54,13 +53,4 @@ QVariant Util::setDateTimePreserveTimezone(const QVariant &obj, const QString& p
return o;
}
void Util::fixFormLayoutTouchTransparency(QObject *obj) const
{
// HACK: this seems very wrong, but it actually makes touch screen scrolling work...
QQuickItem *item = qobject_cast<QQuickItem*>(obj);
if (item) {
item->setAcceptedMouseButtons(Qt::AllButtons);
}
}
#include "moc_util.cpp"
......@@ -36,9 +36,6 @@ public:
Q_INVOKABLE QDateTime dateTimeStripTimezone(const QVariant &obj, const QString &propertyName) const;
/** Set a QDateTime property preserving the timezone of the current value. */
Q_INVOKABLE QVariant setDateTimePreserveTimezone(const QVariant &obj, const QString &propertyName, QDateTime value) const;
/** HACK make Kirigami.FormLayout transparent for touch events so we can scroll. */
Q_INVOKABLE void fixFormLayoutTouchTransparency(QObject *obj) const;
};
#endif // UTIL_H
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment