refined property editor

This commit is contained in:
Jesse Qu 2026-01-20 17:18:04 +08:00
parent 7723113fe8
commit 67b499d961
2 changed files with 7 additions and 3 deletions

View File

@ -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

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>CMainWindow</class>
<widget class="QMainWindow" name="CMainWindow">
<widget class="QMainWindow" name="mainWindow">
<property name="geometry">
<rect>
<x>0</x>