diff --git a/src/drivers/Qt/TasEditor/bookmarks.cpp b/src/drivers/Qt/TasEditor/bookmarks.cpp index 91e418c5..209d35e4 100644 --- a/src/drivers/Qt/TasEditor/bookmarks.cpp +++ b/src/drivers/Qt/TasEditor/bookmarks.cpp @@ -814,7 +814,7 @@ void BOOKMARKS::mouseReleaseEvent(QMouseEvent * event) void BOOKMARKS::showImage(void) { FCEU_CRITICAL_SECTION( emuLock ); - //static_cast(fceuCustomToolTipShow( imagePos, new bookmarkPreviewPopup(imageItem, this) )); + bool item_valid = (imageItem >= 0) && (imageItem < TOTAL_BOOKMARKS); if ( item_valid && (imageItem != bookmarkPreviewPopup::currentIndex()) ) @@ -858,11 +858,6 @@ void BOOKMARKS::mouseMoveEvent(QMouseEvent * event) emit imageIndexChanged(item); } imageItem = item; -#if QT_VERSION >= QT_VERSION_CHECK(6,0,0) - imagePos = event->globalPosition().toPoint(); -#else - imagePos = event->globalPos(); -#endif imageTimer->start(); QToolTip::hideText(); } diff --git a/src/drivers/Qt/TasEditor/bookmarks.h b/src/drivers/Qt/TasEditor/bookmarks.h index 86077e0e..338688f8 100644 --- a/src/drivers/Qt/TasEditor/bookmarks.h +++ b/src/drivers/Qt/TasEditor/bookmarks.h @@ -136,8 +136,6 @@ private: QScrollBar *vbar; QTimer *imageTimer; - QPoint imagePos; - int imageItem; int viewWidth; int viewHeight; diff --git a/src/drivers/Qt/TasEditor/branches.cpp b/src/drivers/Qt/TasEditor/branches.cpp index 3ecd0b2d..2e3758e9 100644 --- a/src/drivers/Qt/TasEditor/branches.cpp +++ b/src/drivers/Qt/TasEditor/branches.cpp @@ -649,7 +649,6 @@ void BRANCHES::mouseReleaseEvent(QMouseEvent * event) void BRANCHES::showImage(void) { FCEU_CRITICAL_SECTION( emuLock ); - //static_cast(fceuCustomToolTipShow( imagePos, new bookmarkPreviewPopup(imageItem, this) )); bool item_valid = (imageItem >= 0) && (imageItem < TOTAL_BOOKMARKS); @@ -690,11 +689,6 @@ void BRANCHES::mouseMoveEvent(QMouseEvent * event) emit imageIndexChanged(item); } imageItem = item; -#if QT_VERSION >= QT_VERSION_CHECK(6,0,0) - imagePos = event->globalPosition().toPoint(); -#else - imagePos = event->globalPos(); -#endif imageTimer->start(); QToolTip::hideText(); } diff --git a/src/drivers/Qt/TasEditor/branches.h b/src/drivers/Qt/TasEditor/branches.h index 5313ea2c..3893f733 100644 --- a/src/drivers/Qt/TasEditor/branches.h +++ b/src/drivers/Qt/TasEditor/branches.h @@ -194,7 +194,6 @@ private: int lastItemUnderMouse; QFont font; - QPoint imagePos; QTimer *imageTimer; QRect viewRect; QRect box[TOTAL_BOOKMARKS];