comparison widgets/LEDButton.cpp @ 586:1ae54a29e59e

Merge from debug-output branch
author Chris Cannam
date Tue, 14 Jun 2011 14:48:29 +0100
parents f4960f8ce798
children 4806715f7a19
comparison
equal deleted inserted replaced
583:4c484636d5ec 586:1ae54a29e59e
97 std::cerr << "LEDButton(" << this << ")::mousePressEvent" << std::endl; 97 std::cerr << "LEDButton(" << this << ")::mousePressEvent" << std::endl;
98 98
99 if (e->buttons() & Qt::LeftButton) { 99 if (e->buttons() & Qt::LeftButton) {
100 toggle(); 100 toggle();
101 bool newState = state(); 101 bool newState = state();
102 std::cerr << "emitting new state " << newState << std::endl; 102 DEBUG << "emitting new state " << newState << endl;
103 emit stateChanged(newState); 103 emit stateChanged(newState);
104 } 104 }
105 } 105 }
106 106
107 void 107 void