Removed a couple unused variables from Qt Tas Editor.

This commit is contained in:
mjbudd77 2022-02-09 05:44:05 -05:00
parent 20f852eb26
commit a75c27d517
4 changed files with 1 additions and 15 deletions

View File

@ -814,7 +814,7 @@ void BOOKMARKS::mouseReleaseEvent(QMouseEvent * event)
void BOOKMARKS::showImage(void)
{
FCEU_CRITICAL_SECTION( emuLock );
//static_cast<bookmarkPreviewPopup*>(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();
}

View File

@ -136,8 +136,6 @@ private:
QScrollBar *vbar;
QTimer *imageTimer;
QPoint imagePos;
int imageItem;
int viewWidth;
int viewHeight;

View File

@ -649,7 +649,6 @@ void BRANCHES::mouseReleaseEvent(QMouseEvent * event)
void BRANCHES::showImage(void)
{
FCEU_CRITICAL_SECTION( emuLock );
//static_cast<bookmarkPreviewPopup*>(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();
}

View File

@ -194,7 +194,6 @@ private:
int lastItemUnderMouse;
QFont font;
QPoint imagePos;
QTimer *imageTimer;
QRect viewRect;
QRect box[TOTAL_BOOKMARKS];