~adamreichold/qpdfview/trunk

« back to all changes in this revision

Viewing changes to sources/thumbnailitem.cpp

  • Committer: Adam Reichold
  • Date: 2018-05-04 17:49:20 UTC
  • Revision ID: adam.reichold@t-online.de-20180504174920-mqn268i0h46fq311
Add static_resources configuration option to embed translations and online help into binary to facilitate single binary builds.

Show diffs side-by-side

added added

removed removed

Lines of Context:
117
117
void ThumbnailItem::mousePressEvent(QGraphicsSceneMouseEvent* event)
118
118
{
119
119
    if(event->modifiers() == Qt::NoModifier
120
 
            && (event->button() == Qt::LeftButton || event->button() == Qt::MiddleButton))
 
120
            && (event->button() == Qt::LeftButton || event->button() == Qt::MidButton))
121
121
    {
122
 
        emit linkClicked(event->button() == Qt::MiddleButton, index() + 1);
 
122
        emit linkClicked(event->button() == Qt::MidButton, index() + 1);
123
123
 
124
124
        event->accept();
125
125
        return;