#ifndef MAINWINDOW_H #define MAINWINDOW_H #include QT_BEGIN_NAMESPACE namespace Ui { class MainWindow; } QT_END_NAMESPACE class MainWindow : public QMainWindow { Q_OBJECT public: MainWindow(QWidget *parent = nullptr); ~MainWindow(); private slots: void digitClicked(); void dotClicked(); void addClicked(); void subtractClicked(); void multiplyClicked(); void divideClicked(); void equalsClicked(); void clearClicked(); void changeSignClicked(); void powClicked(); void printDisplay(); private: Ui::MainWindow *ui; double currentValue; double storedValue; int doubleDepth; QString pendingOperator; }; #endif // MAINWINDOW_H