qt: import all used qml modules in MainInterface.qml

Although Qt interface fails gracefully if
MainInterface.qml does not load properly,
The said file does not import all necessary
QML modules that are used throughout the
interface. Once QML engine encounters
an unknown module, the whole interface
becomes no longer usable as it asserts
all required modules to be present.
This commit is contained in:
Fatih Uzunoglu 2024-04-15 18:26:47 +03:00 committed by Steve Lhomme
parent b6cab182c9
commit 2a58b2bf92
1 changed files with 5 additions and 0 deletions

View File

@ -16,8 +16,13 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
// NOTE: All imports used throughout the interface
// must be imported here as well:
import QtQml
import QtQml.Models
import QtQuick
import QtQuick.Layouts
import QtQuick.Templates
import QtQuick.Controls
import QtQuick.Window
import Qt5Compat.GraphicalEffects