diff --git a/.gitignore b/.gitignore index 85fe66b..755547a 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,5 @@ -Retr0Mine.pro.user build/ *.qml.autosave CMakeLists.txt.user -.vscode \ No newline at end of file +.vscode +.qmlls.ini \ No newline at end of file diff --git a/CMakeLists.txt b/CMakeLists.txt index e99f9d3..cbf2be8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -4,6 +4,7 @@ set(CMAKE_CXX_STANDARD 17) set(CMAKE_CXX_STANDARD_REQUIRED ON) set(CMAKE_AUTOMOC ON) set(CMAKE_AUTORCC ON) +set(QT_QML_GENERATE_QMLLS_INI ON) set(CMAKE_DISABLE_FIND_PACKAGE_WrapVulkanHeaders TRUE) find_package(Qt6 REQUIRED COMPONENTS Core diff --git a/qml/Cell.qml b/qml/Cell.qml index 009505b..dd8f4d3 100644 --- a/qml/Cell.qml +++ b/qml/Cell.qml @@ -1,6 +1,7 @@ import QtQuick import QtQuick.Controls.impl import QtQuick.Controls +import net.odizinne.retr0mine 1.0 Item { id: cellItem diff --git a/qml/GameConstants.qml b/qml/GameConstants.qml index 31a1a25..7a9d7bc 100644 --- a/qml/GameConstants.qml +++ b/qml/GameConstants.qml @@ -1,5 +1,6 @@ pragma Singleton import QtQuick +import net.odizinne.retr0mine 1.0 Item { SystemPalette { diff --git a/qml/GameGrid.qml b/qml/GameGrid.qml index 16358d6..c15bf8f 100644 --- a/qml/GameGrid.qml +++ b/qml/GameGrid.qml @@ -1,4 +1,5 @@ import QtQuick +import net.odizinne.retr0mine 1.0 GridView { id: grid diff --git a/qml/GameSettings.qml b/qml/GameSettings.qml index 1fe1f69..25648d7 100644 --- a/qml/GameSettings.qml +++ b/qml/GameSettings.qml @@ -1,6 +1,7 @@ pragma Singleton import QtCore import QtQuick +import net.odizinne.retr0mine 1.0 Settings { property bool startFullScreen: GameCore.gamescope diff --git a/qml/GameState.qml b/qml/GameState.qml index 5232169..4e0183a 100644 --- a/qml/GameState.qml +++ b/qml/GameState.qml @@ -1,6 +1,6 @@ -// GameState.qml pragma Singleton import QtQuick +import net.odizinne.retr0mine 1.0 QtObject { property bool gameOver: false diff --git a/qml/GameView.qml b/qml/GameView.qml index 4f24c8f..2894e6c 100644 --- a/qml/GameView.qml +++ b/qml/GameView.qml @@ -1,4 +1,5 @@ import QtQuick.Controls +import net.odizinne.retr0mine 1.0 ScrollView { id: control diff --git a/qml/LeaderboardPage.qml b/qml/LeaderboardPage.qml index 1408186..3409ae9 100644 --- a/qml/LeaderboardPage.qml +++ b/qml/LeaderboardPage.qml @@ -4,6 +4,7 @@ import QtQuick import QtQuick.Controls import QtQuick.Controls.impl import QtQuick.Layouts +import net.odizinne.retr0mine 1.0 Popup { id: control diff --git a/qml/LoadWindow.qml b/qml/LoadWindow.qml index 55dabbb..42503b2 100644 --- a/qml/LoadWindow.qml +++ b/qml/LoadWindow.qml @@ -4,6 +4,7 @@ import QtQuick import QtQuick.Controls import QtQuick.Layouts import QtQuick.Controls.impl +import net.odizinne.retr0mine 1.0 Popup { id: control diff --git a/qml/Main.qml b/qml/Main.qml index 9bbd3f4..7e366e0 100644 --- a/qml/Main.qml +++ b/qml/Main.qml @@ -3,6 +3,7 @@ pragma ComponentBehavior: Bound import QtQuick import QtQuick.Controls import QtQuick.Window +import net.odizinne.retr0mine 1.0 ApplicationWindow { id: root diff --git a/qml/SaveManager.qml b/qml/SaveManager.qml index b33bbf3..0a85917 100644 --- a/qml/SaveManager.qml +++ b/qml/SaveManager.qml @@ -1,5 +1,6 @@ pragma Singleton import QtQuick +import net.odizinne.retr0mine 1.0 Item { id: saveManager diff --git a/qml/SaveWindow.qml b/qml/SaveWindow.qml index 8b9500d..f71b07b 100644 --- a/qml/SaveWindow.qml +++ b/qml/SaveWindow.qml @@ -1,6 +1,7 @@ import QtQuick import QtQuick.Controls import QtQuick.Layouts +import net.odizinne.retr0mine 1.0 Popup { id: control diff --git a/qml/SettingsPage.qml b/qml/SettingsPage.qml index afa69ac..6edabad 100644 --- a/qml/SettingsPage.qml +++ b/qml/SettingsPage.qml @@ -3,6 +3,7 @@ pragma ComponentBehavior: Bound import QtQuick import QtQuick.Controls import QtQuick.Layouts +import net.odizinne.retr0mine 1.0 ApplicationWindow { id: control diff --git a/qml/TopBar.qml b/qml/TopBar.qml index 31be43a..29174d1 100644 --- a/qml/TopBar.qml +++ b/qml/TopBar.qml @@ -1,6 +1,7 @@ import QtQuick import QtQuick.Controls import QtQuick.Layouts +import net.odizinne.retr0mine 1.0 RowLayout { id: control diff --git a/qml/WelcomePage.qml b/qml/WelcomePage.qml index 85e2714..a1f3d34 100644 --- a/qml/WelcomePage.qml +++ b/qml/WelcomePage.qml @@ -2,6 +2,7 @@ import QtQuick import QtQuick.Controls import QtQuick.Layouts import QtQuick.Controls.impl +import net.odizinne.retr0mine 1.0 Popup { id: control