Revert "Display visual feedback of where cards will go (#5737)" (#5750)

This reverts commit a7641a571f.
This commit is contained in:
Zach H 2025-03-18 21:53:35 -04:00 committed by GitHub
parent 0fa744f6ec
commit 48123c8822
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 92 additions and 222 deletions

View file

@ -1,10 +1,11 @@
#include "card_zone.h"
#include "../cards/card_database_manager.h"
#include "../cards/card_drag_item.h"
#include "../cards/card_item.h"
#include "../player/player.h"
#include "pb/command_move_card.pb.h"
#include "pb/serverinfo_user.pb.h"
#include "pile_zone.h"
#include "view_zone.h"
#include <QAction>
@ -232,26 +233,7 @@ void CardZone::moveAllToZone()
player->sendGameCommand(cmd);
}
bool CardZone::dragEnter(CardDragItem *dragItem, const QPointF &pos)
QPointF CardZone::closestGridPoint(const QPointF &point)
{
Q_UNUSED(dragItem);
Q_UNUSED(pos);
return true;
}
void CardZone::dragMove(CardDragItem *dragItem, const QPointF &pos)
{
Q_UNUSED(dragItem);
Q_UNUSED(pos);
}
void CardZone::dragAccept(CardDragItem *dragItem, const QPointF &pos)
{
handleDropEvent(dragItem->getValidItems(), dragItem->getStartZone(), pos.toPoint());
}
void CardZone::dragLeave(CardDragItem *dragItem)
{
Q_UNUSED(dragItem);
}
return point;
}