mirror of
https://invent.kde.org/graphics/okular
synced 2024-11-05 18:34:53 +00:00
the annotation toolbar can be moved around again
svn path=/trunk/playground/graphics/okular/; revision=585598
This commit is contained in:
parent
dbff613876
commit
78bffae1e3
1 changed files with 2 additions and 1 deletions
|
@ -326,6 +326,7 @@ PageViewToolBar::PageViewToolBar( QWidget * parent, QWidget * anchorWidget )
|
|||
: QWidget( parent ), d( new ToolBarPrivate )
|
||||
{
|
||||
setAttribute( Qt::WA_OpaquePaintEvent, true );
|
||||
setMouseTracking( true );
|
||||
|
||||
// initialize values of the private data storage structure
|
||||
d->anchorWidget = anchorWidget;
|
||||
|
@ -423,7 +424,7 @@ void PageViewToolBar::mousePressEvent( QMouseEvent * e )
|
|||
|
||||
void PageViewToolBar::mouseMoveEvent( QMouseEvent * e )
|
||||
{
|
||||
if ( e->button() != Qt::LeftButton )
|
||||
if ( ( QApplication::mouseButtons() & Qt::LeftButton ) != Qt::LeftButton )
|
||||
return;
|
||||
|
||||
// compute the nearest side to attach the widget to
|
||||
|
|
Loading…
Reference in a new issue