== has higher precedence than &
http://en.wikipedia.org/wiki/Operators_in_C_and_C++ svn path=/trunk/; revision=51990
This commit is contained in:
parent
07c3d057b8
commit
2e9cd19c9c
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue