Logo Search packages:      
Sourcecode: qt-at-spi version File versions  Download package

void Calculator::backspaceClicked (  ) [private, slot]

[24]

[26]

Definition at line 288 of file calculator.cpp.

References display, and waitingForOperand.

Referenced by Calculator().

{
    if (waitingForOperand)
        return;

    QString text = display->text();
    text.chop(1);
    if (text.isEmpty()) {
        text = "0";
        waitingForOperand = true;
    }
    display->setText(text);
}

Here is the caller graph for this function:


Generated by  Doxygen 1.6.0   Back to index