Commit cbb8f67e authored by Volker Krause's avatar Volker Krause
Browse files

Add script for applying Qt6/KF6 QML changes

parent 60726b0a
Pipeline #201135 passed with stage
in 38 seconds
#!/bin/bash
# SPDX-FileCopyrightText: 2022 Volker Krause <vkrause@kde.org>
# SPDX-License-Identifier: CC0-1.0
# icon property changes
perl -0777 -p -i -e 's/(BasicListItem \{[^\}]*?)(icon): /\1icon.name: /sg' $1
# QtGraphicalEffects
# rename import
perl -p -i -e 's/import QtGraphicalEffects 1\.\d+/import Qt5Compat.GraphicalEffects 6.0/' $1
# remove obsolete samples: property
perl -0777 -p -i -e 's/(DropShadow \{[^\}].*?)\n\s*samples: \d+/\1/sg' $1
Supports Markdown
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