Verified Commit 49705c81 authored by Filipe Azevedo's avatar Filipe Azevedo Committed by Linus Jahn

Introduce upgrade-qml-imports.sh bash script

It help upgrading and/or maintaining correct Qml import modules version.
Signed-off-by: Linus Jahn's avatarLinus Jahn <lnj@kaidan.im>
parent a0123d0b
......@@ -28,10 +28,10 @@
* along with Kaidan. If not, see <http://www.gnu.org/licenses/>.
*/
import QtQuick 2.6
import QtQuick.Layouts 1.2
import QtQuick.Controls 2.1 as Controls
import org.kde.kirigami 2.0 as Kirigami
import QtQuick 2.7
import QtQuick.Layouts 1.3
import QtQuick.Controls 2.3 as Controls
import org.kde.kirigami 2.8 as Kirigami
Controls.Dialog {
id: aboutDialog
......
......@@ -28,12 +28,12 @@
* along with Kaidan. If not, see <http://www.gnu.org/licenses/>.
*/
import QtQuick 2.6
import QtQuick 2.7
import QtQuick.Layouts 1.3
import QtGraphicalEffects 1.0
import QtQuick.Controls 2.0 as Controls
import QtMultimedia 5.10 as Multimedia
import org.kde.kirigami 2.2 as Kirigami
import QtQuick.Controls 2.3 as Controls
import QtMultimedia 5.8 as Multimedia
import org.kde.kirigami 2.8 as Kirigami
import im.kaidan.kaidan 1.0
import EmojiModel 0.1
......
......@@ -28,8 +28,8 @@
* along with Kaidan. If not, see <http://www.gnu.org/licenses/>.
*/
import QtQuick.Controls 2.0 as Controls
import org.kde.kirigami 2.0 as Kirigami
import QtQuick.Controls 2.3 as Controls
import org.kde.kirigami 2.8 as Kirigami
import QtQuick 2.7
Kirigami.Page {
......
......@@ -28,7 +28,7 @@
* along with Kaidan. If not, see <http://www.gnu.org/licenses/>.
*/
import org.kde.kirigami 2.0 as Kirigami
import org.kde.kirigami 2.8 as Kirigami
import im.kaidan.kaidan 1.0
import "settings"
......
......@@ -29,10 +29,10 @@
*/
import QtQuick 2.7
import QtQuick.Controls 2.0 as Controls
import QtQuick.Controls.Material 2.0
import QtQuick.Layouts 1.2
import org.kde.kirigami 2.5 as Kirigami
import QtQuick.Controls 2.3 as Controls
import QtQuick.Controls.Material 2.3
import QtQuick.Layouts 1.3
import org.kde.kirigami 2.8 as Kirigami
import im.kaidan.kaidan 1.0
Kirigami.Page {
......
......@@ -28,11 +28,11 @@
* along with Kaidan. If not, see <http://www.gnu.org/licenses/>.
*/
import QtQuick 2.6
import QtQuick 2.7
import QtQuick.Layouts 1.3
import QtQuick.Controls 2.4 as Controls
import QtMultimedia 5.10 as Multimedia
import org.kde.kirigami 2.2 as Kirigami
import QtQuick.Controls 2.3 as Controls
import QtMultimedia 5.8 as Multimedia
import org.kde.kirigami 2.8 as Kirigami
import im.kaidan.kaidan 1.0
import MediaUtils 0.1
......
......@@ -28,10 +28,10 @@
* along with Kaidan. If not, see <http://www.gnu.org/licenses/>.
*/
import QtQuick 2.0
import QtQuick 2.7
import QtQuick.Controls 2.3 as Controls
import QtMultimedia 5.9
import org.kde.kirigami 2.4 as Kirigami
import QtMultimedia 5.8
import org.kde.kirigami 2.8 as Kirigami
import im.kaidan.kaidan 1.0
// QR code scanner output and decoding for logging in by a decoded XMPP URI
......
......@@ -28,11 +28,11 @@
* along with Kaidan. If not, see <http://www.gnu.org/licenses/>.
*/
import QtQuick 2.6
import QtQuick.Controls 2.4 as Controls
import QtQuick 2.7
import QtQuick.Controls 2.3 as Controls
import QtQuick.Layouts 1.3
import QtQml 2.2
import org.kde.kirigami 2.2 as Kirigami
import org.kde.kirigami 2.8 as Kirigami
import im.kaidan.kaidan 1.0
import "elements"
......
......@@ -29,9 +29,9 @@
*/
import QtQuick 2.0
import QtQuick 2.7
import QtQuick.Layouts 1.3
import org.kde.kirigami 2.2 as Kirigami
import org.kde.kirigami 2.8 as Kirigami
Item {
id: avatar
......
......@@ -28,11 +28,11 @@
* along with Kaidan. If not, see <http://www.gnu.org/licenses/>.
*/
import QtQuick 2.6
import QtQuick 2.7
import QtGraphicalEffects 1.0
import QtQuick.Layouts 1.3
import QtQuick.Controls 2.2 as Controls
import org.kde.kirigami 2.0 as Kirigami
import QtQuick.Controls 2.3 as Controls
import org.kde.kirigami 2.8 as Kirigami
import im.kaidan.kaidan 1.0
import MediaUtils 0.1
......
......@@ -28,11 +28,11 @@
* along with Kaidan. If not, see <http://www.gnu.org/licenses/>.
*/
import QtQuick 2.9
import QtQuick.Controls 2.2
import QtQuick 2.7
import QtQuick.Controls 2.3
import QtQuick.Layouts 1.3
import org.kde.kirigami 2.0 as Kirigami
import org.kde.kirigami 2.8 as Kirigami
import EmojiModel 0.1
Popup {
......
......@@ -28,8 +28,8 @@
* along with Kaidan. If not, see <http://www.gnu.org/licenses/>.
*/
import QtQuick 2.6
import org.kde.kirigami 2.0 as Kirigami
import QtQuick 2.7
import org.kde.kirigami 2.8 as Kirigami
Item {
id: root
......
......@@ -28,8 +28,8 @@
* along with Kaidan. If not, see <http://www.gnu.org/licenses/>.
*/
import QtQuick 2.6
import QtQuick.Dialogs 1.2
import QtQuick 2.7
import QtQuick.Dialogs 1.3
import im.kaidan.kaidan 1.0
import MediaUtils 0.1
......
......@@ -29,8 +29,8 @@
*/
import QtQuick 2.7
import QtQuick.Layouts 1.1
import org.kde.kirigami 2.0 as Kirigami
import QtQuick.Layouts 1.3
import org.kde.kirigami 2.8 as Kirigami
import Qt.labs.folderlistmodel 2.1
Item {
......
......@@ -28,8 +28,8 @@
* along with Kaidan. If not, see <http://www.gnu.org/licenses/>.
*/
import org.kde.kirigami 2.0 as Kirigami
import QtQuick.Controls 2.0 as Controls
import org.kde.kirigami 2.8 as Kirigami
import QtQuick.Controls 2.3 as Controls
import QtQuick.Layouts 1.3
Controls.ToolButton {
......
......@@ -33,10 +33,10 @@
* the user. It shows the file name, file size and a little file icon.
*/
import QtQuick 2.6
import QtQuick 2.7
import QtQuick.Layouts 1.3
import QtQuick.Controls 2.0 as Controls
import org.kde.kirigami 2.0 as Kirigami
import QtQuick.Controls 2.3 as Controls
import org.kde.kirigami 2.8 as Kirigami
import im.kaidan.kaidan 1.0
......
......@@ -33,13 +33,11 @@
* the user. It just displays the audio in a rectangle.
*/
import QtQuick 2.6
import QtQuick 2.6
import QtQuick 2.7
import QtQuick.Layouts 1.3
import QtQuick.Controls 2.0 as Controls
import QtMultimedia 5.9 as Multimedia
import org.kde.kirigami 2.0 as Kirigami
import QtQuick.Controls 2.3 as Controls
import QtMultimedia 5.8 as Multimedia
import org.kde.kirigami 2.8 as Kirigami
import MediaUtils 0.1
......
......@@ -33,10 +33,10 @@
* the user. It just displays the image in a rectangle.
*/
import QtQuick 2.6
import QtQuick 2.7
import QtQuick.Layouts 1.3
import QtQuick.Controls 2.0 as Controls
import org.kde.kirigami 2.0 as Kirigami
import QtQuick.Controls 2.3 as Controls
import org.kde.kirigami 2.8 as Kirigami
MediaPreview {
id: root
......
......@@ -28,10 +28,10 @@
* along with Kaidan. If not, see <http://www.gnu.org/licenses/>.
*/
import QtQuick 2.6
import QtQuick 2.7
import QtQuick.Layouts 1.3
import QtQuick.Controls 2.0 as Controls
import QtPositioning 5.9 as Positioning
import QtQuick.Controls 2.3 as Controls
import QtPositioning 5.2 as Positioning
import im.kaidan.kaidan 1.0
import MediaUtils 0.1
......
......@@ -33,10 +33,10 @@
* the user. It just displays the map in a rectangle.
*/
import QtQuick 2.6
import QtQuick 2.7
import QtQuick.Layouts 1.3
import QtLocation 5.9 as Location
import org.kde.kirigami 2.0 as Kirigami
import QtLocation 5.3 as Location
import org.kde.kirigami 2.8 as Kirigami
import im.kaidan.kaidan 1.0
import MediaUtils 0.1
......
......@@ -33,11 +33,11 @@
* the user. It shows the file name, file size and a little file icon.
*/
import QtQuick 2.6
import QtQuick 2.7
import QtQuick.Layouts 1.3
import QtGraphicalEffects 1.0
import QtQuick.Controls 2.0 as Controls
import org.kde.kirigami 2.0 as Kirigami
import QtQuick.Controls 2.3 as Controls
import org.kde.kirigami 2.8 as Kirigami
import im.kaidan.kaidan 1.0
import MediaUtils 0.1
......
......@@ -33,10 +33,10 @@
* the user. It just displays the video in a rectangle.
*/
import QtQuick 2.6
import QtQuick 2.7
import QtQuick.Layouts 1.3
import QtMultimedia 5.9 as Multimedia
import org.kde.kirigami 2.0 as Kirigami
import QtMultimedia 5.8 as Multimedia
import org.kde.kirigami 2.8 as Kirigami
MediaPreviewAudio {
id: root
......
......@@ -28,7 +28,7 @@
* along with Kaidan. If not, see <http://www.gnu.org/licenses/>.
*/
import QtQuick 2.0
import QtQuick 2.7
Rectangle {
property int counter: 0
......
......@@ -35,9 +35,9 @@
import QtQuick 2.7
import QtQuick.Layouts 1.3
import QtQuick.Controls 2.4 as Controls
import QtMultimedia 5.10 as Multimedia
import org.kde.kirigami 2.2 as Kirigami
import QtQuick.Controls 2.3 as Controls
import QtMultimedia 5.8 as Multimedia
import org.kde.kirigami 2.8 as Kirigami
import im.kaidan.kaidan 1.0
import MediaUtils 0.1
......
......@@ -28,10 +28,10 @@
* along with Kaidan. If not, see <http://www.gnu.org/licenses/>.
*/
import QtQuick 2.6
import QtQuick 2.7
import QtQuick.Layouts 1.3
import QtQuick.Controls 2.0 as Controls
import QtPositioning 5.9 as Positioning
import QtQuick.Controls 2.3 as Controls
import QtPositioning 5.2 as Positioning
import im.kaidan.kaidan 1.0
import MediaUtils 0.1
......
......@@ -33,12 +33,12 @@
* the user. It just displays the map in a rectangle.
*/
import QtQuick 2.6
import QtQuick 2.7
import QtQuick.Layouts 1.3
import QtQuick.Controls 2.0 as Controls
import QtPositioning 5.9 as Positioning
import QtLocation 5.9 as Location
import org.kde.kirigami 2.0 as Kirigami
import QtQuick.Controls 2.3 as Controls
import QtPositioning 5.2 as Positioning
import QtLocation 5.3 as Location
import org.kde.kirigami 2.8 as Kirigami
import im.kaidan.kaidan 1.0
import MediaUtils 0.1
......
......@@ -29,9 +29,9 @@
*/
import QtQuick 2.7
import QtQuick.Controls 2.0 as Controls
import QtQuick.Controls 2.3 as Controls
import QtQuick.Layouts 1.3
import org.kde.kirigami 2.0 as Kirigami
import org.kde.kirigami 2.8 as Kirigami
Kirigami.OverlaySheet {
property string jid: ""
......
......@@ -28,11 +28,11 @@
* along with Kaidan. If not, see <http://www.gnu.org/licenses/>.
*/
import QtQuick 2.3
import QtQuick 2.7
import QtQuick.Layouts 1.3
import QtQuick.Controls 2.0 as Controls
import QtQuick.Controls 2.3 as Controls
import QtGraphicalEffects 1.0
import org.kde.kirigami 2.0 as Kirigami
import org.kde.kirigami 2.8 as Kirigami
import im.kaidan.kaidan 1.0
Kirigami.SwipeListItem {
......
......@@ -28,10 +28,10 @@
* along with Kaidan. If not, see <http://www.gnu.org/licenses/>.
*/
import QtQuick 2.6
import QtQuick.Controls 2.0 as Controls
import QtQuick 2.7
import QtQuick.Controls 2.3 as Controls
import QtQuick.Layouts 1.3
import org.kde.kirigami 2.0 as Kirigami
import org.kde.kirigami 2.8 as Kirigami
Kirigami.OverlaySheet {
property string jid
......
......@@ -29,9 +29,9 @@
*/
import QtQuick 2.7
import QtQuick.Controls 2.0 as Controls
import QtQuick.Controls 2.3 as Controls
import QtQuick.Layouts 1.3
import org.kde.kirigami 2.0 as Kirigami
import org.kde.kirigami 2.8 as Kirigami
Kirigami.OverlaySheet {
property string jid
......
......@@ -28,7 +28,7 @@
* along with Kaidan. If not, see <http://www.gnu.org/licenses/>.
*/
import QtQuick 2.6
import QtQuick 2.7
import QtGraphicalEffects 1.0
Image {
......
......@@ -28,10 +28,10 @@
* along with Kaidan. If not, see <http://www.gnu.org/licenses/>.
*/
import QtQuick 2.6
import QtQuick 2.7
import QtQuick.Layouts 1.3
import QtQuick.Controls 2.0 as Controls
import org.kde.kirigami 2.0 as Kirigami
import QtQuick.Controls 2.3 as Controls
import org.kde.kirigami 2.8 as Kirigami
import im.kaidan.kaidan 1.0
import MediaUtils 0.1
......
......@@ -29,9 +29,9 @@
*/
import QtQuick 2.7
import QtQuick.Controls 2.1 as Controls
import QtQuick.Controls 2.3 as Controls
import QtQuick.Layouts 1.3
import org.kde.kirigami 2.3 as Kirigami
import org.kde.kirigami 2.8 as Kirigami
Kirigami.OverlaySheet {
property string from;
......
......@@ -28,9 +28,9 @@
* along with Kaidan. If not, see <http://www.gnu.org/licenses/>.
*/
import org.kde.kirigami 2.2 as Kirigami
import org.kde.kirigami 2.8 as Kirigami
import QtQuick 2.7
import QtQuick.Layouts 1.2
import QtQuick.Layouts 1.3
Rectangle {
id: avatar
......
......@@ -29,8 +29,8 @@
*/
import QtQuick 2.7
import QtQuick.Controls.Material 2.0
import org.kde.kirigami 2.3 as Kirigami
import QtQuick.Controls.Material 2.3
import org.kde.kirigami 2.8 as Kirigami
import StatusBar 0.1
import im.kaidan.kaidan 1.0
import "elements"
......
......@@ -31,7 +31,7 @@
import QtQuick 2.7
import QtQuick.Controls 2.3 as Controls
import QtQuick.Layouts 1.3
import org.kde.kirigami 2.4 as Kirigami
import org.kde.kirigami 2.8 as Kirigami
import im.kaidan.kaidan 1.0
Kirigami.Page {
......
......@@ -29,9 +29,9 @@
*/
import QtQuick 2.7
import QtQuick.Controls 2.0 as Controls
import QtQuick.Controls 2.3 as Controls
import QtQuick.Layouts 1.3
import org.kde.kirigami 2.0 as Kirigami
import org.kde.kirigami 2.8 as Kirigami
Kirigami.BasicListItem {
property string name
......
......@@ -31,7 +31,7 @@
import QtQuick 2.7
import QtQuick.Controls 2.3 as Controls
import QtQuick.Layouts 1.3
import org.kde.kirigami 2.3 as Kirigami
import org.kde.kirigami 2.8 as Kirigami
import im.kaidan.kaidan 1.0
/**
......
......@@ -29,9 +29,9 @@
*/
import QtQuick 2.7
import QtQuick.Controls 2.0 as Controls
import QtQuick.Controls 2.3 as Controls
import QtQuick.Layouts 1.3
import org.kde.kirigami 2.0 as Kirigami
import org.kde.kirigami 2.8 as Kirigami
/**
* This sheet is used on desktop systems instead of a new layer. It doesn't
......
#!/bin/bash
SCRIPT_DIR=$(dirname "${0}")
if [ "${SCRIPT_DIR:0:1}" != "/" ]; then
SCRIPT_DIR=${PWD}/${SCRIPT_DIR}
fi
SOURCE_DIR="${SCRIPT_DIR}/../src"
# Force early exit on issue
set -e
# Force debug traces of executed commands
#set -o xtrace
# find "${SOURCE_DIR}" -iname '*.qml' -exec grep 'import ' {} \; | sort -u
# import "elements"
# import EmojiModel 0.1
# import im.kaidan.kaidan 1.0
# import MediaUtils 0.1
# import org.kde.kirigami 2.0 as Kirigami
# import org.kde.kirigami 2.2 as Kirigami
# import org.kde.kirigami 2.3 as Kirigami
# import org.kde.kirigami 2.4 as Kirigami
# import org.kde.kirigami 2.5 as Kirigami
# import QtGraphicalEffects 1.0
# import Qt.labs.folderlistmodel 2.1
# import QtLocation 5.9 as Location
# import QtMultimedia 5.10 as Multimedia
# import QtMultimedia 5.9
# import QtMultimedia 5.9 as Multimedia
# import QtPositioning 5.9 as Positioning
# import QtQml 2.2
# import QtQuick 2.0
# import QtQuick 2.3
# import QtQuick 2.6
# import QtQuick 2.7
# import QtQuick 2.9
# import QtQuick.Controls 2.0 as Controls
# import QtQuick.Controls 2.1 as Controls
# import QtQuick.Controls 2.2
# import QtQuick.Controls 2.2 as Controls
# import QtQuick.Controls 2.3 as Controls
# import QtQuick.Controls 2.4 as Controls
# import QtQuick.Controls.Material 2.0
# import QtQuick.Dialogs 1.2
# import QtQuick.Layouts 1.1
# import QtQuick.Layouts 1.2
# import QtQuick.Layouts 1.3
# import "settings"
# import StatusBar 0.1
declare -A QT # 5.10
QT["QtGraphicalEffects"]="1.0"
QT["Qt.labs.folderlistmodel"]="2.1"