== has higher precedence than &

http://en.wikipedia.org/wiki/Operators_in_C_and_C++

svn path=/trunk/; revision=51990
This commit is contained in:
Jörg Mayer 2013-09-12 21:53:53 +00:00
parent 07c3d057b8
commit 2e9cd19c9c
1 changed files with 1 additions and 1 deletions

View File

@ -742,7 +742,7 @@ void TCPStreamDialog::mouseMoved(QMouseEvent *event)
QCustomPlot *sp = ui->streamPlot;
Qt::CursorShape shape = Qt::ArrowCursor;
if (event) {
if (event->buttons() & Qt::LeftButton == Qt::LeftButton) {
if ((event->buttons() & Qt::LeftButton) == Qt::LeftButton) {
if (mouse_drags_) {
shape = Qt::ClosedHandCursor;
} else {