C++ (Qt)int OperationCounter = 0; void operationBegin(void) { if(!OperationCounter) {firstOperation();} ++OperationCounter;} void operationEnd(void) { --OperationCounter; if(OperationCounter) {return;} lastOperation();}
C++ (Qt) timer.blockSignals(true); timer.stop(); /* действия */ timer.start(); timer.blockSignals(false);