mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 12:29:02 +08:00
Remove unnecessary QML imports
CURA-7868
This commit is contained in:
parent
dc02038513
commit
adcdf7bad9
@ -2,19 +2,15 @@
|
||||
// Cura is released under the terms of the LGPLv3 or higher.
|
||||
|
||||
import QtQuick 2.10
|
||||
import QtQuick.Window 2.2
|
||||
import QtQuick.Controls 1.4 as OldControls // TableView doesn't exist in the QtQuick Controls 2.x in 5.10, so use the old one
|
||||
import QtQuick.Controls 2.3
|
||||
import QtQuick.Controls.Styles 1.4
|
||||
|
||||
import UM 1.2 as UM
|
||||
import Cura 1.6 as Cura
|
||||
|
||||
|
||||
OldControls.TableView
|
||||
{
|
||||
id: tableView
|
||||
|
||||
itemDelegate: Item
|
||||
{
|
||||
height: tableCellLabel.implicitHeight + UM.Theme.getSize("thin_margin").height
|
||||
@ -43,22 +39,23 @@ OldControls.TableView
|
||||
|
||||
handle: Rectangle
|
||||
{
|
||||
// both implicit width and height have to be set, since the handle is used by both the horizontal and the vertical scrollbars
|
||||
// Both implicit width and height have to be set, since the handle is used by both the horizontal and the vertical scrollbars
|
||||
implicitWidth: UM.Theme.getSize("scrollbar").width
|
||||
implicitHeight: UM.Theme.getSize("scrollbar").width //
|
||||
implicitHeight: UM.Theme.getSize("scrollbar").width
|
||||
radius: width / 2
|
||||
color: UM.Theme.getColor(styleData.pressed ? "scrollbar_handle_down" : styleData.hovered ? "scrollbar_handle_hover" : "scrollbar_handle")
|
||||
color: UM.Theme.getColor(styleData.pressed ? "scrollbar_handle_down" : (styleData.hovered ? "scrollbar_handle_hover" : "scrollbar_handle"))
|
||||
}
|
||||
|
||||
scrollBarBackground: Rectangle
|
||||
{
|
||||
// both implicit width and height have to be set, since the handle is used by both the horizontal and the vertical scrollbars
|
||||
// Both implicit width and height have to be set, since the handle is used by both the horizontal and the vertical scrollbars
|
||||
implicitWidth: UM.Theme.getSize("scrollbar").width
|
||||
implicitHeight: UM.Theme.getSize("scrollbar").width
|
||||
color: UM.Theme.getColor("main_background")
|
||||
}
|
||||
|
||||
corner: Rectangle // The little rectangle between the vertical and horizontal scrollbars
|
||||
// The little rectangle between the vertical and horizontal scrollbars
|
||||
corner: Rectangle
|
||||
{
|
||||
color: UM.Theme.getColor("main_background")
|
||||
}
|
||||
@ -68,5 +65,3 @@ OldControls.TableView
|
||||
decrementControl: Item { }
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user