remove menu stuff
This commit is contained in:
parent
75f780753f
commit
3074bcae38
4 changed files with 1 additions and 84 deletions
|
|
@ -1,34 +0,0 @@
|
||||||
import qs.config
|
|
||||||
import qs.services
|
|
||||||
import QtQuick
|
|
||||||
import QtQuick.Controls
|
|
||||||
|
|
||||||
Menu {
|
|
||||||
id: root
|
|
||||||
|
|
||||||
palette.window: Theme.palette.base100
|
|
||||||
palette.base: Theme.palette.base100
|
|
||||||
|
|
||||||
focus: true
|
|
||||||
closePolicy: Popup.CloseOnEscape | Popup.CloseOnPressOutsideParent
|
|
||||||
popupType: Popup.Window
|
|
||||||
|
|
||||||
function toggle() {
|
|
||||||
visible ? close() : open();
|
|
||||||
}
|
|
||||||
|
|
||||||
enter: Transition {
|
|
||||||
NumberAnimation {
|
|
||||||
property: "opacity"
|
|
||||||
from: 0.0
|
|
||||||
to: 1.0
|
|
||||||
}
|
|
||||||
}
|
|
||||||
exit: Transition {
|
|
||||||
NumberAnimation {
|
|
||||||
property: "opacity"
|
|
||||||
from: 1.0
|
|
||||||
to: 0.0
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,9 +0,0 @@
|
||||||
import qs.config
|
|
||||||
import QtQuick
|
|
||||||
import QtQuick.Controls
|
|
||||||
|
|
||||||
MenuItem {
|
|
||||||
palette.text: Theme.palette.basecontent
|
|
||||||
palette.highlight: Theme.palette.primary
|
|
||||||
palette.highlightedText: Theme.palette.primarycontent
|
|
||||||
}
|
|
||||||
|
|
@ -1,9 +0,0 @@
|
||||||
import qs.config
|
|
||||||
import QtQuick
|
|
||||||
import QtQuick.Controls
|
|
||||||
|
|
||||||
MenuSeparator {
|
|
||||||
palette.text: Theme.palette.basecontent
|
|
||||||
palette.highlight: Theme.palette.primary
|
|
||||||
palette.highlightedText: Theme.palette.primarycontent
|
|
||||||
}
|
|
||||||
|
|
@ -10,9 +10,8 @@ import QtQuick
|
||||||
import QtQuick.Controls
|
import QtQuick.Controls
|
||||||
import QtQuick.Layouts
|
import QtQuick.Layouts
|
||||||
|
|
||||||
StyledWindow {
|
StyledPopupWindow {
|
||||||
id: root
|
id: root
|
||||||
name: "storybook"
|
|
||||||
|
|
||||||
visible: Visibility.storybook
|
visible: Visibility.storybook
|
||||||
implicitWidth: rect.width
|
implicitWidth: rect.width
|
||||||
|
|
@ -152,36 +151,6 @@ StyledWindow {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ColumnLayout {
|
|
||||||
StyledText {
|
|
||||||
text: "Popup"
|
|
||||||
font.pixelSize: 18
|
|
||||||
}
|
|
||||||
Button {
|
|
||||||
id: fileButton
|
|
||||||
text: "File"
|
|
||||||
onPressed: menu.visible ? menu.close() : menu.open()
|
|
||||||
|
|
||||||
StyledPopup {
|
|
||||||
id: menu
|
|
||||||
|
|
||||||
anchor.item: fileButton
|
|
||||||
|
|
||||||
Column {
|
|
||||||
StyledButton {
|
|
||||||
text: "New..."
|
|
||||||
}
|
|
||||||
StyledButton {
|
|
||||||
text: "Open..."
|
|
||||||
}
|
|
||||||
StyledText {
|
|
||||||
text: "Close"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
StyledText {
|
StyledText {
|
||||||
text: "Drawer"
|
text: "Drawer"
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue