Compare commits

..

2 Commits

Author SHA1 Message Date
朱子楚\zhuzi
5fd934b5f5 update 2024-03-29 00:51:55 +08:00
朱子楚\zhuzi
b7fde5f79c update 2024-03-29 00:48:58 +08:00
13 changed files with 43 additions and 14 deletions

View File

@ -195,8 +195,7 @@ bool FluFrameless::nativeEventFilter(const QByteArray &eventType, void *message,
if (0 != *result) { if (0 != *result) {
return true; return true;
} }
auto aa = _hitAppBar(); if(_hitAppBar()){
if(aa){
*result = HTCAPTION; *result = HTCAPTION;
return true; return true;
} }

View File

@ -47,9 +47,8 @@ private:
bool _containsCursorToItem(QQuickItem* item); bool _containsCursorToItem(QQuickItem* item);
bool _hitAppBar(); bool _hitAppBar();
bool _hitMaximizeButton(); bool _hitMaximizeButton();
qint64 _current;
private: private:
qint64 _current;
int _edges = 0; int _edges = 0;
int _margins = 8; int _margins = 8;
QList<QPointer<QQuickItem>> _hitTestList; QList<QPointer<QQuickItem>> _hitTestList;

View File

@ -3,7 +3,7 @@ import QtQuick.Controls 2.15
import FluentUI 1.0 import FluentUI 1.0
QtObject { QtObject {
readonly property string key : FluTools.uuid() property string key
property int _idx property int _idx
property var _ext property var _ext
property var _parent property var _parent
@ -22,4 +22,7 @@ QtObject {
property var extra property var extra
property bool showEdit property bool showEdit
signal tap signal tap
Component.onCompleted: {
key = FluTools.uuid()
}
} }

View File

@ -3,9 +3,12 @@ import QtQuick.Controls 2.15
import FluentUI 1.0 import FluentUI 1.0
QtObject { QtObject {
readonly property string key : FluTools.uuid() property string key
property int _idx property int _idx
property var _ext property var _ext
property var _parent property var _parent
property bool visible: true property bool visible: true
Component.onCompleted: {
key = FluTools.uuid()
}
} }

View File

@ -3,7 +3,7 @@ import QtQuick.Controls 2.15
import FluentUI 1.0 import FluentUI 1.0
FluObject { FluObject {
readonly property string key : FluTools.uuid() property string key
property int _idx property int _idx
property bool visible: true property bool visible: true
property string title property string title
@ -15,4 +15,7 @@ FluObject {
property Component iconDelegate property Component iconDelegate
property Component menuDelegate property Component menuDelegate
property Component editDelegate property Component editDelegate
Component.onCompleted: {
key = FluTools.uuid()
}
} }

View File

@ -3,9 +3,12 @@ import QtQuick.Controls 2.15
import FluentUI 1.0 import FluentUI 1.0
QtObject { QtObject {
readonly property string key : FluTools.uuid() property string key
property int _idx property int _idx
property bool visible: true property bool visible: true
property string title property string title
property var parent property var parent
Component.onCompleted: {
key = FluTools.uuid()
}
} }

View File

@ -3,10 +3,13 @@ import QtQuick.Controls 2.15
import FluentUI 1.0 import FluentUI 1.0
QtObject { QtObject {
readonly property string key : FluTools.uuid() property string key
property int _idx property int _idx
property bool visible: true property bool visible: true
property var parent property var parent
property real spacing property real spacing
property int size:1 property int size:1
Component.onCompleted: {
key = FluTools.uuid()
}
} }

View File

@ -3,7 +3,7 @@ import QtQuick.Controls
import FluentUI import FluentUI
QtObject { QtObject {
readonly property string key : FluTools.uuid() property string key
property int _idx property int _idx
property var _ext property var _ext
property var _parent property var _parent
@ -22,4 +22,7 @@ QtObject {
property var extra property var extra
property bool showEdit property bool showEdit
signal tap signal tap
Component.onCompleted: {
key = FluTools.uuid()
}
} }

View File

@ -3,9 +3,12 @@ import QtQuick.Controls
import FluentUI import FluentUI
QtObject { QtObject {
readonly property string key : FluTools.uuid() property string key
property int _idx property int _idx
property var _ext property var _ext
property var _parent property var _parent
property bool visible: true property bool visible: true
Component.onCompleted: {
key = FluTools.uuid()
}
} }

View File

@ -3,7 +3,7 @@ import QtQuick.Controls
import FluentUI import FluentUI
FluObject { FluObject {
readonly property string key : FluTools.uuid() property string key
property int _idx property int _idx
property bool visible: true property bool visible: true
property string title property string title
@ -15,4 +15,7 @@ FluObject {
property Component iconDelegate property Component iconDelegate
property Component menuDelegate property Component menuDelegate
property Component editDelegate property Component editDelegate
Component.onCompleted: {
key = FluTools.uuid()
}
} }

View File

@ -3,9 +3,12 @@ import QtQuick.Controls
import FluentUI import FluentUI
QtObject { QtObject {
readonly property string key : FluTools.uuid() property string key
property int _idx property int _idx
property bool visible: true property bool visible: true
property string title property string title
property var parent property var parent
Component.onCompleted: {
key = FluTools.uuid()
}
} }

View File

@ -3,10 +3,13 @@ import QtQuick.Controls
import FluentUI import FluentUI
QtObject { QtObject {
readonly property string key : FluTools.uuid() property string key
property int _idx property int _idx
property bool visible: true property bool visible: true
property var parent property var parent
property real spacing property real spacing
property int size:1 property int size:1
Component.onCompleted: {
key = FluTools.uuid()
}
} }

View File

@ -1,5 +1,6 @@
import QtQuick import QtQuick
import QtQuick.Controls import QtQuick.Controls
import QtQuick.Controls.Basic
import FluentUI import FluentUI
Page { Page {