fix Warning
This commit is contained in:
1 parent
593c221d23
commit
8345470273
316 files changed
+1246
-929
No files matched your search
@@ -58,7 +58,7 @@ void DragHandler::dragLeaveEvent(QDragLeaveEvent* event)
|
||||
|
||||
void DragHandler::dropEvent(QDropEvent* event)
|
||||
{
|
||||
int dropPos = event->pos().x();
|
||||
int dropPos = event->position().toPoint().x();
|
||||
int dropTime = m_tcw->m_tools->getTime(dropPos, m_tcw->m_isFilter) - m_tcw->m_dragOffsetTime;
|
||||
|
||||
for (const auto& tcw : std::as_const(m_tcwCorresponding))
|
||||
@@ -80,7 +80,7 @@ void DragHandler::dropEvent(QDropEvent* event)
|
||||
|
||||
void DragHandler::dragMoveEvent(QDragMoveEvent* event)
|
||||
{
|
||||
int pos = event->pos().x();
|
||||
int pos = event->position().toPoint().x();
|
||||
|
||||
if (m_tcw->dragMove(pos))
|
||||
event->acceptProposedAction();
|
||||
@@ -101,7 +101,7 @@ void DragHandler::mouseMoveEvent(QMouseEvent* event)
|
||||
if (event->buttons() != Qt::LeftButton)
|
||||
return;
|
||||
|
||||
QPoint cursorPos = m_tcw->mapFromGlobal(event->globalPos());
|
||||
QPoint cursorPos = m_tcw->mapFromGlobal(event->globalPosition().toPoint());
|
||||
|
||||
if (!m_tcw->m_mainSelected || ((cursorPos - m_dragStartPos).manhattanLength() < QApplication::startDragDistance() &&
|
||||
(m_dragStartPos - cursorPos).manhattanLength() < QApplication::startDragDistance()))
|
||||
|
||||
Reference in new issue
Block a user