Removed a couple unused variables from Qt Tas Editor.
This commit is contained in:
parent
20f852eb26
commit
a75c27d517
|
@ -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();
|
||||
}
|
||||
|
|
|
@ -136,8 +136,6 @@ private:
|
|||
QScrollBar *vbar;
|
||||
QTimer *imageTimer;
|
||||
|
||||
QPoint imagePos;
|
||||
|
||||
int imageItem;
|
||||
int viewWidth;
|
||||
int viewHeight;
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
|
|
@ -194,7 +194,6 @@ private:
|
|||
int lastItemUnderMouse;
|
||||
|
||||
QFont font;
|
||||
QPoint imagePos;
|
||||
QTimer *imageTimer;
|
||||
QRect viewRect;
|
||||
QRect box[TOTAL_BOOKMARKS];
|
||||
|
|
Loading…
Reference in New Issue