Compare commits
No commits in common. "cc4e88adbd4ee2eb8d7a52ffeb3b4bf8f22299b8" and "924ce5d12793360cb0656eb01d6b3a42d9679377" have entirely different histories.
cc4e88adbd
...
924ce5d127
|
@ -67,10 +67,10 @@ FluScrollablePage{
|
||||||
text:"Always"
|
text:"Always"
|
||||||
Layout.preferredWidth: 120
|
Layout.preferredWidth: 120
|
||||||
FluMenuItem{
|
FluMenuItem{
|
||||||
text:"Never"
|
text:"Nerver"
|
||||||
onClicked: {
|
onClicked: {
|
||||||
btn_close_button_visibility.text = text
|
btn_close_button_visibility.text = text
|
||||||
tab_view.closeButtonVisibility = FluTabViewType.Never
|
tab_view.closeButtonVisibility = FluTabViewType.Nerver
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
FluMenuItem{
|
FluMenuItem{
|
||||||
|
|
|
@ -68,10 +68,10 @@ FluScrollablePage{
|
||||||
text:"Always"
|
text:"Always"
|
||||||
Layout.preferredWidth: 120
|
Layout.preferredWidth: 120
|
||||||
FluMenuItem{
|
FluMenuItem{
|
||||||
text:"Never"
|
text:"Nerver"
|
||||||
onClicked: {
|
onClicked: {
|
||||||
btn_close_button_visibility.text = text
|
btn_close_button_visibility.text = text
|
||||||
tab_view.closeButtonVisibility = FluTabViewType.Never
|
tab_view.closeButtonVisibility = FluTabViewType.Nerver
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
FluMenuItem{
|
FluMenuItem{
|
||||||
|
|
|
@ -145,7 +145,7 @@ enum TabWidthBehavior {
|
||||||
};
|
};
|
||||||
Q_ENUM_NS(TabWidthBehavior)
|
Q_ENUM_NS(TabWidthBehavior)
|
||||||
enum CloseButtonVisibility {
|
enum CloseButtonVisibility {
|
||||||
Never = 0x0000,
|
Nerver = 0x0000,
|
||||||
Always = 0x0001,
|
Always = 0x0001,
|
||||||
OnHover = 0x0002
|
OnHover = 0x0002
|
||||||
};
|
};
|
||||||
|
|
|
@ -57,11 +57,10 @@ static inline bool isCompositionEnabled(){
|
||||||
}
|
}
|
||||||
return composition_enabled;
|
return composition_enabled;
|
||||||
}
|
}
|
||||||
return true;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline void showShadow(HWND hwnd){
|
static inline void showShadow(HWND hwnd){
|
||||||
if(isCompositionEnabled()){
|
|
||||||
const MARGINS shadow = { 0, 0, 1, 0 };
|
const MARGINS shadow = { 0, 0, 1, 0 };
|
||||||
typedef HRESULT (WINAPI* DwmExtendFrameIntoClientAreaPtr)(HWND hWnd, const MARGINS *pMarInset);
|
typedef HRESULT (WINAPI* DwmExtendFrameIntoClientAreaPtr)(HWND hWnd, const MARGINS *pMarInset);
|
||||||
HMODULE module = LoadLibraryW(L"dwmapi.dll");
|
HMODULE module = LoadLibraryW(L"dwmapi.dll");
|
||||||
|
@ -74,10 +73,6 @@ static inline void showShadow(HWND hwnd){
|
||||||
dwm_extendframe_into_client_area_(hwnd, &shadow);
|
dwm_extendframe_into_client_area_(hwnd, &shadow);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}else{
|
|
||||||
ULONG_PTR cNewStyle = GetClassLongPtr(hwnd, GCL_STYLE) | CS_DROPSHADOW;
|
|
||||||
SetClassLongPtr(hwnd, GCL_STYLE, cNewStyle);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -116,9 +111,7 @@ bool FramelessEventFilter::nativeEventFilter(const QByteArray &eventType, void *
|
||||||
}else if(uMsg == WM_NCCALCSIZE){
|
}else if(uMsg == WM_NCCALCSIZE){
|
||||||
const auto clientRect = ((wParam == FALSE) ? reinterpret_cast<LPRECT>(lParam) : &(reinterpret_cast<LPNCCALCSIZE_PARAMS>(lParam))->rgrc[0]);
|
const auto clientRect = ((wParam == FALSE) ? reinterpret_cast<LPRECT>(lParam) : &(reinterpret_cast<LPNCCALCSIZE_PARAMS>(lParam))->rgrc[0]);
|
||||||
const LONG originalTop = clientRect->top;
|
const LONG originalTop = clientRect->top;
|
||||||
const LONG originalBottom = clientRect->bottom;
|
|
||||||
const LONG originalLeft = clientRect->left;
|
const LONG originalLeft = clientRect->left;
|
||||||
const LONG originalRight = clientRect->right;
|
|
||||||
const LRESULT hitTestResult = ::DefWindowProcW(hwnd, WM_NCCALCSIZE, wParam, lParam);
|
const LRESULT hitTestResult = ::DefWindowProcW(hwnd, WM_NCCALCSIZE, wParam, lParam);
|
||||||
if ((hitTestResult != HTERROR) && (hitTestResult != HTNOWHERE)) {
|
if ((hitTestResult != HTERROR) && (hitTestResult != HTNOWHERE)) {
|
||||||
*result = hitTestResult;
|
*result = hitTestResult;
|
||||||
|
@ -140,14 +133,7 @@ bool FramelessEventFilter::nativeEventFilter(const QByteArray &eventType, void *
|
||||||
offsetTop = 1;
|
offsetTop = 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(isCompositionEnabled()){
|
|
||||||
clientRect->top = originalTop+offsetTop;
|
clientRect->top = originalTop+offsetTop;
|
||||||
}else{
|
|
||||||
clientRect->top = originalTop;
|
|
||||||
clientRect->bottom = originalBottom;
|
|
||||||
clientRect->left = originalLeft;
|
|
||||||
clientRect->right = originalRight;
|
|
||||||
}
|
|
||||||
*result = WVR_REDRAW;
|
*result = WVR_REDRAW;
|
||||||
return true;
|
return true;
|
||||||
}if(uMsg == WM_NCHITTEST){
|
}if(uMsg == WM_NCHITTEST){
|
||||||
|
@ -171,8 +157,8 @@ bool FramelessEventFilter::nativeEventFilter(const QByteArray &eventType, void *
|
||||||
QGuiApplication::sendEvent(_helper->maximizeButton(),&event);
|
QGuiApplication::sendEvent(_helper->maximizeButton(),&event);
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}else if(uMsg == WM_NCPAINT || uMsg == 0x00AE || uMsg == 0x00AF){
|
}else if(uMsg == WM_NCPAINT){
|
||||||
*result = FALSE;
|
*result = 0;
|
||||||
return true;
|
return true;
|
||||||
}else if(uMsg == WM_NCACTIVATE){
|
}else if(uMsg == WM_NCACTIVATE){
|
||||||
*result = DefWindowProcW(hwnd, WM_NCACTIVATE, wParam, -1);
|
*result = DefWindowProcW(hwnd, WM_NCACTIVATE, wParam, -1);
|
||||||
|
@ -299,9 +285,8 @@ void FluFramelessHelper::componentComplete(){
|
||||||
_realHeight = QQmlProperty(window,"_realHeight");
|
_realHeight = QQmlProperty(window,"_realHeight");
|
||||||
_realWidth = QQmlProperty(window,"_realWidth");
|
_realWidth = QQmlProperty(window,"_realWidth");
|
||||||
_appBarHeight = QQmlProperty(window,"_appBarHeight");
|
_appBarHeight = QQmlProperty(window,"_appBarHeight");
|
||||||
_enableMarginsBottomLeftRight = QQmlProperty(window,"_enableMarginsBottomLeftRight");
|
|
||||||
#ifdef Q_OS_WIN
|
#ifdef Q_OS_WIN
|
||||||
_enableMarginsBottomLeftRight.write(!isCompositionEnabled());
|
if(isCompositionEnabled()){
|
||||||
window->setFlag(Qt::CustomizeWindowHint,true);
|
window->setFlag(Qt::CustomizeWindowHint,true);
|
||||||
_nativeEvent =new FramelessEventFilter(this);
|
_nativeEvent =new FramelessEventFilter(this);
|
||||||
qApp->installNativeEventFilter(_nativeEvent);
|
qApp->installNativeEventFilter(_nativeEvent);
|
||||||
|
@ -313,7 +298,10 @@ void FluFramelessHelper::componentComplete(){
|
||||||
SetWindowLongPtr(hwnd, GWL_STYLE, style | WS_THICKFRAME);
|
SetWindowLongPtr(hwnd, GWL_STYLE, style | WS_THICKFRAME);
|
||||||
}
|
}
|
||||||
SetWindowPos(hwnd,nullptr,0,0,0,0,SWP_NOZORDER | SWP_NOOWNERZORDER | SWP_NOMOVE | SWP_NOSIZE | SWP_FRAMECHANGED);
|
SetWindowPos(hwnd,nullptr,0,0,0,0,SWP_NOZORDER | SWP_NOOWNERZORDER | SWP_NOMOVE | SWP_NOSIZE | SWP_FRAMECHANGED);
|
||||||
showShadow(hwnd);
|
|
||||||
|
}else{
|
||||||
|
window->setFlags((window->flags() & (~Qt::WindowMinMaxButtonsHint) & (~Qt::Dialog)) | Qt::FramelessWindowHint | Qt::Window);
|
||||||
|
}
|
||||||
#else
|
#else
|
||||||
window->setFlags((window->flags() & (~Qt::WindowMinMaxButtonsHint) & (~Qt::Dialog)) | Qt::FramelessWindowHint | Qt::Window);
|
window->setFlags((window->flags() & (~Qt::WindowMinMaxButtonsHint) & (~Qt::Dialog)) | Qt::FramelessWindowHint | Qt::Window);
|
||||||
#endif
|
#endif
|
||||||
|
@ -386,8 +374,10 @@ FluFramelessHelper::~FluFramelessHelper(){
|
||||||
if (!window.isNull()) {
|
if (!window.isNull()) {
|
||||||
window->setFlags(Qt::Window);
|
window->setFlags(Qt::Window);
|
||||||
#ifdef Q_OS_WIN
|
#ifdef Q_OS_WIN
|
||||||
|
if(isCompositionEnabled()){
|
||||||
qApp->removeNativeEventFilter(_nativeEvent);
|
qApp->removeNativeEventFilter(_nativeEvent);
|
||||||
delete _nativeEvent;
|
delete _nativeEvent;
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
window->removeEventFilter(this);
|
window->removeEventFilter(this);
|
||||||
}
|
}
|
||||||
|
|
|
@ -61,7 +61,6 @@ private:
|
||||||
QQmlProperty _realHeight;
|
QQmlProperty _realHeight;
|
||||||
QQmlProperty _realWidth;
|
QQmlProperty _realWidth;
|
||||||
QQmlProperty _appBarHeight;
|
QQmlProperty _appBarHeight;
|
||||||
QQmlProperty _enableMarginsBottomLeftRight;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // FLUFRAMELESSHELPER_H
|
#endif // FLUFRAMELESSHELPER_H
|
||||||
|
|
|
@ -44,7 +44,6 @@ Rectangle{
|
||||||
d.win.visibility = Window.Windowed
|
d.win.visibility = Window.Windowed
|
||||||
else
|
else
|
||||||
d.win.visibility = Window.Maximized
|
d.win.visibility = Window.Maximized
|
||||||
d.hoverMaxBtn = false
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
property var minClickListener: function(){
|
property var minClickListener: function(){
|
||||||
|
|
|
@ -236,7 +236,7 @@ Item {
|
||||||
width: visible ? 24 : 0
|
width: visible ? 24 : 0
|
||||||
height: 24
|
height: 24
|
||||||
visible: {
|
visible: {
|
||||||
if(closeButtonVisibility === FluTabViewType.Never)
|
if(closeButtonVisibility === FluTabViewType.Nerver)
|
||||||
return false
|
return false
|
||||||
if(closeButtonVisibility === FluTabViewType.OnHover)
|
if(closeButtonVisibility === FluTabViewType.OnHover)
|
||||||
return item_mouse_hove.containsMouse || item_btn_close.hovered
|
return item_mouse_hove.containsMouse || item_btn_close.hovered
|
||||||
|
|
|
@ -64,7 +64,6 @@ Window {
|
||||||
property int _realHeight
|
property int _realHeight
|
||||||
property int _realWidth
|
property int _realWidth
|
||||||
property int _appBarHeight: appBar.height
|
property int _appBarHeight: appBar.height
|
||||||
property bool _enableMarginsBottomLeftRight: false
|
|
||||||
id:window
|
id:window
|
||||||
color:"transparent"
|
color:"transparent"
|
||||||
Component.onCompleted: {
|
Component.onCompleted: {
|
||||||
|
@ -210,9 +209,6 @@ Window {
|
||||||
anchors{
|
anchors{
|
||||||
fill:parent
|
fill:parent
|
||||||
topMargin: _offsetXY.y
|
topMargin: _offsetXY.y
|
||||||
bottomMargin: _enableMarginsBottomLeftRight ? _offsetXY.y : 0
|
|
||||||
leftMargin: _enableMarginsBottomLeftRight ? _offsetXY.x : 0
|
|
||||||
rightMargin: _enableMarginsBottomLeftRight ? _offsetXY.x : 0
|
|
||||||
}
|
}
|
||||||
onWidthChanged: {
|
onWidthChanged: {
|
||||||
window.appBar.width = width
|
window.appBar.width = width
|
||||||
|
|
|
@ -80,8 +80,6 @@ Module {
|
||||||
prototype: "QObject"
|
prototype: "QObject"
|
||||||
exports: ["FluentUI/FluFramelessHelper 1.0"]
|
exports: ["FluentUI/FluFramelessHelper 1.0"]
|
||||||
exportMetaObjectRevisions: [0]
|
exportMetaObjectRevisions: [0]
|
||||||
Signal { name: "loadCompleted" }
|
|
||||||
Method { name: "showSystemMenu" }
|
|
||||||
}
|
}
|
||||||
Component {
|
Component {
|
||||||
name: "FluNavigationViewType"
|
name: "FluNavigationViewType"
|
||||||
|
@ -188,7 +186,7 @@ Module {
|
||||||
Enum {
|
Enum {
|
||||||
name: "CloseButtonVisibility"
|
name: "CloseButtonVisibility"
|
||||||
values: {
|
values: {
|
||||||
"Never": 0,
|
"Nerver": 0,
|
||||||
"Always": 1,
|
"Always": 1,
|
||||||
"OnHover": 2
|
"OnHover": 2
|
||||||
}
|
}
|
||||||
|
@ -2343,13 +2341,11 @@ Module {
|
||||||
Property { name: "closeClickListener"; type: "QVariant" }
|
Property { name: "closeClickListener"; type: "QVariant" }
|
||||||
Property { name: "stayTopClickListener"; type: "QVariant" }
|
Property { name: "stayTopClickListener"; type: "QVariant" }
|
||||||
Property { name: "darkClickListener"; type: "QVariant" }
|
Property { name: "darkClickListener"; type: "QVariant" }
|
||||||
Property { name: "systemMenuListener"; type: "QVariant" }
|
|
||||||
Method { name: "stayTopButton"; type: "QVariant" }
|
Method { name: "stayTopButton"; type: "QVariant" }
|
||||||
Method { name: "minimizeButton"; type: "QVariant" }
|
Method { name: "minimizeButton"; type: "QVariant" }
|
||||||
Method { name: "maximizeButton"; type: "QVariant" }
|
Method { name: "maximizeButton"; type: "QVariant" }
|
||||||
Method { name: "closeButton"; type: "QVariant" }
|
Method { name: "closeButton"; type: "QVariant" }
|
||||||
Method { name: "darkButton"; type: "QVariant" }
|
Method { name: "darkButton"; type: "QVariant" }
|
||||||
Method { name: "maximizeButtonHover"; type: "QVariant" }
|
|
||||||
}
|
}
|
||||||
Component {
|
Component {
|
||||||
prototype: "QQuickRectangle"
|
prototype: "QQuickRectangle"
|
||||||
|
@ -3017,15 +3013,15 @@ Module {
|
||||||
defaultProperty: "data"
|
defaultProperty: "data"
|
||||||
Property { name: "logo"; type: "QUrl" }
|
Property { name: "logo"; type: "QUrl" }
|
||||||
Property { name: "title"; type: "string" }
|
Property { name: "title"; type: "string" }
|
||||||
Property { name: "items"; type: "FluObject_QMLTYPE_157"; isPointer: true }
|
Property { name: "items"; type: "FluObject_QMLTYPE_125"; isPointer: true }
|
||||||
Property { name: "footerItems"; type: "FluObject_QMLTYPE_157"; isPointer: true }
|
Property { name: "footerItems"; type: "FluObject_QMLTYPE_125"; isPointer: true }
|
||||||
Property { name: "displayMode"; type: "int" }
|
Property { name: "displayMode"; type: "int" }
|
||||||
Property { name: "autoSuggestBox"; type: "QQmlComponent"; isPointer: true }
|
Property { name: "autoSuggestBox"; type: "QQmlComponent"; isPointer: true }
|
||||||
Property { name: "actionItem"; type: "QQmlComponent"; isPointer: true }
|
Property { name: "actionItem"; type: "QQmlComponent"; isPointer: true }
|
||||||
Property { name: "topPadding"; type: "int" }
|
Property { name: "topPadding"; type: "int" }
|
||||||
Property { name: "pageMode"; type: "int" }
|
Property { name: "pageMode"; type: "int" }
|
||||||
Property { name: "navItemRightMenu"; type: "FluMenu_QMLTYPE_45"; isPointer: true }
|
Property { name: "navItemRightMenu"; type: "FluMenu_QMLTYPE_34"; isPointer: true }
|
||||||
Property { name: "navItemExpanderRightMenu"; type: "FluMenu_QMLTYPE_45"; isPointer: true }
|
Property { name: "navItemExpanderRightMenu"; type: "FluMenu_QMLTYPE_34"; isPointer: true }
|
||||||
Property { name: "navCompactWidth"; type: "int" }
|
Property { name: "navCompactWidth"; type: "int" }
|
||||||
Property { name: "navTopMargin"; type: "int" }
|
Property { name: "navTopMargin"; type: "int" }
|
||||||
Property { name: "cellHeight"; type: "int" }
|
Property { name: "cellHeight"; type: "int" }
|
||||||
|
@ -3113,17 +3109,21 @@ Module {
|
||||||
Property { name: "_ext"; type: "QVariant" }
|
Property { name: "_ext"; type: "QVariant" }
|
||||||
Property { name: "_parent"; type: "QVariant" }
|
Property { name: "_parent"; type: "QVariant" }
|
||||||
Property { name: "title"; type: "string" }
|
Property { name: "title"; type: "string" }
|
||||||
|
Property { name: "order"; type: "int" }
|
||||||
Property { name: "url"; type: "QVariant" }
|
Property { name: "url"; type: "QVariant" }
|
||||||
Property { name: "disabled"; type: "bool" }
|
Property { name: "disabled"; type: "bool" }
|
||||||
Property { name: "icon"; type: "int" }
|
Property { name: "icon"; type: "int" }
|
||||||
Property { name: "iconVisible"; type: "bool" }
|
Property { name: "iconVisible"; type: "bool" }
|
||||||
Property { name: "infoBadge"; type: "QQmlComponent"; isPointer: true }
|
Property { name: "infoBadge"; type: "QQmlComponent"; isPointer: true }
|
||||||
|
Property { name: "recentlyAdded"; type: "bool" }
|
||||||
|
Property { name: "recentlyUpdated"; type: "bool" }
|
||||||
|
Property { name: "desc"; type: "string" }
|
||||||
|
Property { name: "image"; type: "QVariant" }
|
||||||
Property { name: "count"; type: "int" }
|
Property { name: "count"; type: "int" }
|
||||||
Property { name: "onTapListener"; type: "QVariant" }
|
Property { name: "onTapListener"; type: "QVariant" }
|
||||||
Property { name: "iconDelegate"; type: "QQmlComponent"; isPointer: true }
|
Property { name: "iconDelegate"; type: "QQmlComponent"; isPointer: true }
|
||||||
Property { name: "menuDelegate"; type: "QQmlComponent"; isPointer: true }
|
Property { name: "menuDelegate"; type: "QQmlComponent"; isPointer: true }
|
||||||
Property { name: "editDelegate"; type: "QQmlComponent"; isPointer: true }
|
Property { name: "editDelegate"; type: "QQmlComponent"; isPointer: true }
|
||||||
Property { name: "extra"; type: "QVariant" }
|
|
||||||
Property { name: "showEdit"; type: "bool" }
|
Property { name: "showEdit"; type: "bool" }
|
||||||
Signal { name: "tap" }
|
Signal { name: "tap" }
|
||||||
}
|
}
|
||||||
|
@ -3534,6 +3534,13 @@ Module {
|
||||||
}
|
}
|
||||||
Method { name: "count"; type: "QVariant" }
|
Method { name: "count"; type: "QVariant" }
|
||||||
}
|
}
|
||||||
|
Component {
|
||||||
|
prototype: "QQmlTableModelColumn"
|
||||||
|
name: "FluentUI/FluTableModelColumn 1.0"
|
||||||
|
exports: ["FluentUI/FluTableModelColumn 1.0"]
|
||||||
|
exportMetaObjectRevisions: [0]
|
||||||
|
isComposite: true
|
||||||
|
}
|
||||||
Component {
|
Component {
|
||||||
prototype: "QQuickRectangle"
|
prototype: "QQuickRectangle"
|
||||||
name: "FluentUI/FluTableView 1.0"
|
name: "FluentUI/FluTableView 1.0"
|
||||||
|
@ -3791,15 +3798,7 @@ Module {
|
||||||
Property { name: "resizeBorderColor"; type: "QColor" }
|
Property { name: "resizeBorderColor"; type: "QColor" }
|
||||||
Property { name: "resizeBorderWidth"; type: "int" }
|
Property { name: "resizeBorderWidth"; type: "int" }
|
||||||
Property { name: "closeListener"; type: "QVariant" }
|
Property { name: "closeListener"; type: "QVariant" }
|
||||||
Property { name: "_offsetXY"; type: "QPointF" }
|
|
||||||
Property { name: "_originalPos"; type: "QVariant" }
|
|
||||||
Property { name: "_accentColor"; type: "QColor" }
|
|
||||||
Property { name: "_realHeight"; type: "int" }
|
|
||||||
Property { name: "_realWidth"; type: "int" }
|
|
||||||
Property { name: "_appBarHeight"; type: "int" }
|
|
||||||
Property { name: "_enableMarginsBottomLeftRight"; type: "bool" }
|
|
||||||
Property { name: "content"; type: "QObject"; isList: true; isReadonly: true }
|
Property { name: "content"; type: "QObject"; isList: true; isReadonly: true }
|
||||||
Signal { name: "showSystemMenu" }
|
|
||||||
Signal {
|
Signal {
|
||||||
name: "initArgument"
|
name: "initArgument"
|
||||||
Parameter { name: "argument"; type: "QVariant" }
|
Parameter { name: "argument"; type: "QVariant" }
|
||||||
|
@ -3847,14 +3846,12 @@ Module {
|
||||||
Parameter { name: "path"; type: "QVariant" }
|
Parameter { name: "path"; type: "QVariant" }
|
||||||
}
|
}
|
||||||
Method { name: "moveWindowToDesktopCenter"; type: "QVariant" }
|
Method { name: "moveWindowToDesktopCenter"; type: "QVariant" }
|
||||||
Method { name: "fixWindowSize"; type: "QVariant" }
|
|
||||||
Method {
|
Method {
|
||||||
name: "onResult"
|
name: "onResult"
|
||||||
type: "QVariant"
|
type: "QVariant"
|
||||||
Parameter { name: "data"; type: "QVariant" }
|
Parameter { name: "data"; type: "QVariant" }
|
||||||
}
|
}
|
||||||
Method { name: "layoutContainer"; type: "QVariant" }
|
Method { name: "containerItem"; type: "QVariant" }
|
||||||
Method { name: "layoutContent"; type: "QVariant" }
|
|
||||||
}
|
}
|
||||||
Component {
|
Component {
|
||||||
prototype: "QQuickRow"
|
prototype: "QQuickRow"
|
||||||
|
|
|
@ -44,7 +44,6 @@ Rectangle{
|
||||||
d.win.visibility = Window.Windowed
|
d.win.visibility = Window.Windowed
|
||||||
else
|
else
|
||||||
d.win.visibility = Window.Maximized
|
d.win.visibility = Window.Maximized
|
||||||
d.hoverMaxBtn = false
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
property var minClickListener: function(){
|
property var minClickListener: function(){
|
||||||
|
|
|
@ -236,7 +236,7 @@ Item {
|
||||||
width: visible ? 24 : 0
|
width: visible ? 24 : 0
|
||||||
height: 24
|
height: 24
|
||||||
visible: {
|
visible: {
|
||||||
if(closeButtonVisibility === FluTabViewType.Never)
|
if(closeButtonVisibility === FluTabViewType.Nerver)
|
||||||
return false
|
return false
|
||||||
if(closeButtonVisibility === FluTabViewType.OnHover)
|
if(closeButtonVisibility === FluTabViewType.OnHover)
|
||||||
return item_mouse_hove.containsMouse || item_btn_close.hovered
|
return item_mouse_hove.containsMouse || item_btn_close.hovered
|
||||||
|
|
|
@ -63,7 +63,6 @@ Window {
|
||||||
property int _realHeight
|
property int _realHeight
|
||||||
property int _realWidth
|
property int _realWidth
|
||||||
property int _appBarHeight: appBar.height
|
property int _appBarHeight: appBar.height
|
||||||
property bool _enableMarginsBottomLeftRight: false
|
|
||||||
id:window
|
id:window
|
||||||
color:"transparent"
|
color:"transparent"
|
||||||
Component.onCompleted: {
|
Component.onCompleted: {
|
||||||
|
@ -209,9 +208,6 @@ Window {
|
||||||
anchors{
|
anchors{
|
||||||
fill:parent
|
fill:parent
|
||||||
topMargin: _offsetXY.y
|
topMargin: _offsetXY.y
|
||||||
bottomMargin: _enableMarginsBottomLeftRight ? _offsetXY.y : 0
|
|
||||||
leftMargin: _enableMarginsBottomLeftRight ? _offsetXY.x : 0
|
|
||||||
rightMargin: _enableMarginsBottomLeftRight ? _offsetXY.x : 0
|
|
||||||
}
|
}
|
||||||
onWidthChanged: {
|
onWidthChanged: {
|
||||||
window.appBar.width = width
|
window.appBar.width = width
|
||||||
|
|
Loading…
Reference in New Issue