Commit 955394a0 authored by Nate Graham's avatar Nate Graham 🔩

Bump Qt dependency to 5.14 and fix deprecation warnings

parent e8149224
......@@ -17,7 +17,7 @@ project(elisa
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_STANDARD 17)
set(REQUIRED_QT_VERSION "5.12.0")
set(REQUIRED_QT_VERSION "5.14.0")
find_package(Qt5 ${REQUIRED_QT_VERSION} CONFIG REQUIRED Core Network Qml Quick Test Sql Multimedia Svg Gui Widgets QuickTest Concurrent QuickControls2)
find_package(Qt5Core ${REQUIRED_QT_VERSION} CONFIG REQUIRED Private)
......
......@@ -276,7 +276,7 @@ FocusScope {
Connections {
target: ElisaApplication
onMusicManagerChanged: {
function onMusicManagerChanged() {
metaDataModel.initializeByIdAndUrl(trackType, databaseId, fileUrl)
}
}
......
......@@ -105,7 +105,9 @@ FocusScope {
Connections {
target: ElisaApplication
onMusicManagerChanged: initializeModel()
function onMusicManagerChanged() {
initializeModel()
}
}
Component.onCompleted: {
......
......@@ -234,13 +234,15 @@ FocusScope {
Connections {
target: ElisaApplication
onMusicManagerChanged: initializeModel()
function onMusicManagerChanged() {
initializeModel()
}
}
Connections {
target: listView.navigationBar
onCreateRadio: {
function onCreateRadio() {
openCreateRadioView()
}
}
......
......@@ -103,7 +103,7 @@ ApplicationWindow {
Connections {
target: headerBar.playerControl
onOpenMenu: {
function onOpenMenu() {
if (applicationMenu.visible) {
applicationMenu.close()
} else {
......@@ -114,8 +114,7 @@ ApplicationWindow {
Connections {
target: Qt.application
onAboutToQuit:
{
function onAboutToQuit() {
persistentSettings.x = mainWindow.x;
persistentSettings.y = mainWindow.y;
persistentSettings.width = mainWindow.width;
......@@ -149,7 +148,7 @@ ApplicationWindow {
showSystemTrayIcon: ElisaApplication.showSystemTrayIcon
elisaMainWindow: mainWindow
onRaisePlayer: {
function onRaisePlayer() {
mainWindow.visible = true
mainWindow.raise()
mainWindow.requestActivate()
......@@ -160,8 +159,12 @@ ApplicationWindow {
Connections {
target: ElisaApplication.audioPlayer
onVolumeChanged: headerBar.playerControl.volume = ElisaApplication.audioPlayer.volume
onMutedChanged: headerBar.playerControl.muted = ElisaApplication.audioPlayer.muted
function onVolumeChanged() {
headerBar.playerControl.volume = ElisaApplication.audioPlayer.volume
}
function onMutedChanged() {
headerBar.playerControl.muted = ElisaApplication.audioPlayer.muted
}
}
Rectangle {
......
......@@ -69,21 +69,23 @@ FocusScope {
Connections {
target: ElisaApplication.mediaPlayListProxyModel
onPlayListLoadFailed: {
function onPlayListLoadFailed() {
showPlayListNotification(i18nc("Message when playlist load failed", "Loading failed"), Kirigami.MessageType.Error, retryLoadAction)
}
}
Connections {
target: ElisaApplication.mediaPlayListProxyModel
onDisplayUndoNotification: {
function onDisplayUndoNotification() {
showPlayListNotification(i18nc("Playlist cleared", "Playlist cleared"), Kirigami.MessageType.Information, undoAction)
}
}
Connections {
target: ElisaApplication.mediaPlayListProxyModel
onHideUndoNotification: hideNotification()
function onHideUndoNotification() {
hideNotification()
}
}
id: topItem
......
......@@ -26,7 +26,7 @@ Item {
Connections {
target: elisaMainWindow
onClosing: {
function onClosing() {
if (systemTrayIcon.available && showSystemTrayIcon && !forceCloseWindow) {
close.accepted = false
elisaMainWindow.hide()
......@@ -37,7 +37,7 @@ Item {
Connections {
target: ElisaApplication
onCommitDataRequest: {
function onCommitDataRequest() {
forceCloseWindow = true
}
}
......
......@@ -104,7 +104,7 @@ FocusScope {
Connections {
target: ElisaApplication
onInitializationDone: {
function onInitializationDone() {
viewModeView.currentIndex = 3
}
}
......
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