more updates
This commit is contained in:
@@ -133,8 +133,10 @@ void TierCard::mousePressEvent(QMouseEvent* event)
|
||||
render(&pix);
|
||||
QDrag drag(this);
|
||||
drag.setPixmap(pix);
|
||||
drag.setHotSpot(QPoint(pix.size().width() / 2,
|
||||
pix.size().height() / 2));
|
||||
// const auto scale = compareMultiplier(ComparePoint::MiddleCenter);
|
||||
// drag.setHotSpot(QPoint(pix.size().width() * std::get<0>(scale),
|
||||
// pix.size().height() * std::get<1>(scale)));
|
||||
drag.setHotSpot(getPoint(this, ComparePoint::MiddleCenter));
|
||||
QByteArray itemData;
|
||||
QDataStream dataStream(&itemData, QIODevice::WriteOnly);
|
||||
TierCard::IdType _id = getId();
|
||||
|
||||
Reference in New Issue
Block a user