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

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

[22]

[24]

Definition at line 273 of file calculator.cpp.

References display.

Referenced by Calculator().

{
    QString text = display->text();
    double value = text.toDouble();

    if (value > 0.0) {
        text.prepend(tr("-"));
    } else if (value < 0.0) {
        text.remove(0, 1);
    }
    display->setText(text);
}

Here is the caller graph for this function:


Generated by  Doxygen 1.6.0   Back to index