mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-05-07 14:16:46 +02:00
* display selectable-by-mouse source filepath * add radius property to FloatingPane to control border radius from outside * use FloatingPane in ImageMetadataView
18 lines
464 B
QML
18 lines
464 B
QML
import QtQuick 2.9
|
|
import QtQuick.Controls 2.3
|
|
import QtQuick.Layouts 1.3
|
|
|
|
/**
|
|
* FloatingPane provides a Pane with a slightly transparent default background
|
|
* using palette.base as color. Useful to create floating toolbar/overlays.
|
|
*/
|
|
Pane {
|
|
id: root
|
|
|
|
property bool opaque: false
|
|
property int radius: 1
|
|
|
|
padding: 6
|
|
anchors.margins: 2
|
|
background: Rectangle { color: root.palette.base; opacity: opaque ? 1.0 : 0.7; radius: root.radius }
|
|
}
|