Move implementation of updateMoveResize to AbstractClient

No longer virtual.
This commit is contained in:
Martin Gräßlin 2015-10-23 13:36:53 +02:00
parent f4b02d5a8c
commit f5848d9405
4 changed files with 2 additions and 9 deletions

View file

@ -612,7 +612,7 @@ QSize AbstractClient::minSize() const
void AbstractClient::updateMoveResize(const QPointF &currentGlobalCursor) void AbstractClient::updateMoveResize(const QPointF &currentGlobalCursor)
{ {
Q_UNUSED(currentGlobalCursor) handleMoveResize(pos(), currentGlobalCursor.toPoint());
} }
bool AbstractClient::hasStrut() const bool AbstractClient::hasStrut() const

View file

@ -363,7 +363,7 @@ public:
virtual void shrinkHorizontal(); virtual void shrinkHorizontal();
virtual void growVertical(); virtual void growVertical();
virtual void shrinkVertical(); virtual void shrinkVertical();
virtual void updateMoveResize(const QPointF &currentGlobalCursor); void updateMoveResize(const QPointF &currentGlobalCursor);
/** /**
* These values represent positions inside an area * These values represent positions inside an area

View file

@ -413,8 +413,6 @@ public:
**/ **/
void showOnScreenEdge(); void showOnScreenEdge();
void updateMoveResize(const QPointF &currentGlobalCursor) override;
public Q_SLOTS: public Q_SLOTS:
void closeWindow() override; void closeWindow() override;
void updateCaption(); void updateCaption();

View file

@ -2818,11 +2818,6 @@ void AbstractClient::stopDelayedMoveResize()
m_moveResize.delayedTimer = nullptr; m_moveResize.delayedTimer = nullptr;
} }
void Client::updateMoveResize(const QPointF &currentGlobalCursor)
{
handleMoveResize(pos(), currentGlobalCursor.toPoint());
}
void AbstractClient::handleMoveResize(const QPoint &local, const QPoint &global) void AbstractClient::handleMoveResize(const QPoint &local, const QPoint &global)
{ {
const QRect oldGeo = geometry(); const QRect oldGeo = geometry();