mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-09 14:55:03 -06:00
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:
parent
aa4b7ddb8b
commit
5897b3de38
2 changed files with 55 additions and 3 deletions
21
plugins/Marketplace/resources/qml/Marketplace.qml
Normal file
21
plugins/Marketplace/resources/qml/Marketplace.qml
Normal 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
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue