From 67b499d961ec0bdf138928901bb96f8f4c9af446 Mon Sep 17 00:00:00 2001 From: Jesse Qu Date: Tue, 20 Jan 2026 17:18:04 +0800 Subject: [PATCH] refined property editor --- include/graphicsItem/graphicsBusSectionItem.h | 8 ++++++-- ui/mainwindow.ui | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/include/graphicsItem/graphicsBusSectionItem.h b/include/graphicsItem/graphicsBusSectionItem.h index e1846e6..1c16994 100644 --- a/include/graphicsItem/graphicsBusSectionItem.h +++ b/include/graphicsItem/graphicsBusSectionItem.h @@ -66,8 +66,12 @@ private: virtual void updateHandles() override; QRectF m_lastBoudingRect; - double m_dRatioX; - double m_dRatioY; + Q_PROPERTY_VAR(QRectF, m_lastBoudingRectF); + Q_PROPERTY_VAR(QPointF, m_lastBoudingPointF); + Q_PROPERTY_VAR(double, m_dRatioX); + Q_PROPERTY_VAR(double, m_dRatioY); + // double m_dRatioX; + // double m_dRatioY; }; #endif // GRAPHICSBUSSECTIONITEM_H diff --git a/ui/mainwindow.ui b/ui/mainwindow.ui index 69188e8..6c212cc 100644 --- a/ui/mainwindow.ui +++ b/ui/mainwindow.ui @@ -1,7 +1,7 @@ CMainWindow - + 0