62 QT_WARNING_DISABLE_GCC(
"-Weffc++")
63 QT_WARNING_DISABLE_GCC("-Wnon-virtual-dtor")
76 void unaryOperatorClicked();
77 void additiveOperatorClicked();
78 void multiplicativeOperatorClicked();
81 void changeSignClicked();
82 void backspaceClicked();
94 Button *createButton(
const QString &text,
const char *member);
95 void abortOperation();
96 bool calculate(
double rightOperand,
const QString &pendingOperator);
117 enum { NumDigitButtons = 10 };
QString pendingMultiplicativeOperator
[6] //! [7]
bool waitingForOperand
[7] //! [8]
double sumSoFar
[3] //! [4]
QString pendingAdditiveOperator
[5] //! [6]
double factorSoFar
[4] //! [5]