Эх сурвалжийг харах

修复多分屏bug

Signed-off-by: codeClown <zhaomengshou@126.com>
codeClown 1 жил өмнө
parent
commit
ce12abbc86

+ 7 - 1
QFD/shemeFlow/FlowTemplateDataModel.h

@@ -93,7 +93,13 @@ public:
 
     QString name() const override { return QString("FlowIndexData"); }
 
-    unsigned int nPorts(PortType const /*portType*/) const override { return 1; }
+    unsigned int nPorts(PortType const portType) const override
+    {
+        if (portType == PortType::In) {
+            return 0;
+        }
+        return 1;
+    }
 
     NodeDataType dataType(PortType const portType, PortIndex const portIndex) const override
     {

+ 5 - 0
QFramelessWindow/windows/WindowsFramelessHelper.cpp

@@ -186,6 +186,11 @@ bool WindowsFramelessHelper::nativeEventFilter(const QByteArray &eventType, void
                 *result = 0;
             return true;
         }
+    } else if (WM_MOVE == lpMsg->message) {
+        RECT rcClient;
+        GetWindowRect(lpMsg->hwnd, &rcClient);
+        SetWindowPos(lpMsg->hwnd, NULL, rcClient.left, rcClient.top, rcClient.right - rcClient.left,
+                     rcClient.bottom - rcClient.top, SWP_FRAMECHANGED);
     }
 #ifdef Q_CC_MSVC
     else if (WM_DPICHANGED == lpMsg->message) {