Add function to open Marketplace window

This will now load in a QML file, cache it, and create an empty window with the title 'Marketplace'.

Contributes to issue CURA-8556.
This commit is contained in:
Ghostkeeper 2021-10-19 13:43:41 +02:00
parent aa4b7ddb8b
commit 5897b3de38
No known key found for this signature in database
GPG key ID: 68F39EA88EEED5FF
2 changed files with 55 additions and 3 deletions

View file

@ -0,0 +1,21 @@
// Copyright (c) 2021 Ultimaker B.V.
// Cura is released under the terms of the LGPLv3 or higher.
import QtQuick 2.15
import QtQuick.Window 2.2
import UM 1.2 as UM
Window
{
id: marketplaceDialog
property variant catalog: UM.I18nCatalog { name: "cura" }
minimumWidth: UM.Theme.getSize("modal_window_minimum").width
minimumHeight: UM.Theme.getSize("modal_window_minimum").height
width: minimumWidth
height: minimumHeight
title: "Marketplace" //Seen by Ultimaker as a brand name, so this doesn't get translated.
modality: Qt.NonModal
}