添加update信号
This commit is contained in:
parent
2ef64272f7
commit
9cee15a935
|
|
@ -204,3 +204,7 @@ bool PresentIndex::isValid() const
|
|||
{
|
||||
return row != INT_MAX && col != INT_MAX;
|
||||
}
|
||||
|
||||
UnitPresentDelegate::UnitPresentDelegate(QObject* parent /*= nullptr*/)
|
||||
:QObject(parent) {
|
||||
}
|
||||
|
|
|
|||
|
|
@ -42,9 +42,12 @@ struct PresentOption {
|
|||
/// <summary>
|
||||
/// 데禱삥齡官辜
|
||||
/// </summary>
|
||||
class UnitPresentDelegate {
|
||||
class UnitPresentDelegate : public QObject {
|
||||
Q_OBJECT
|
||||
public:
|
||||
UnitPresentDelegate(QObject* parent = nullptr);
|
||||
virtual ~UnitPresentDelegate() = default;
|
||||
|
||||
/// <summary>
|
||||
/// 튈토데禱잚謹
|
||||
/// </summary>
|
||||
|
|
@ -56,6 +59,12 @@ public:
|
|||
/// <param name="p"></param>
|
||||
/// <param name="option"></param>
|
||||
virtual void paint(QPainter* p, const PresentOption& option) = 0;
|
||||
|
||||
signals:
|
||||
/// <summary>
|
||||
/// 更新通知/重绘请求
|
||||
/// </summary>
|
||||
void updateRequest();
|
||||
};
|
||||
|
||||
/// <summary>
|
||||
|
|
|
|||
Loading…
Reference in New Issue