This commit is contained in:
朱子楚\zhuzi 2024-03-29 00:48:58 +08:00
parent 41cbeef3fd
commit b7fde5f79c
12 changed files with 40 additions and 13 deletions

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -22,4 +22,7 @@ QtObject {
property var extra
property bool showEdit
signal tap
Component.onCompleted: {
key = FluTools.uuid()
}
}

View File

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

View File

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

View File

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

View File

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