Advertisement
Guest User

Untitled

a guest
Aug 7th, 2016
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.46 KB | None | 0 0
  1. #ifndef CALC_H
  2. #define CALC_H
  3.  
  4. #include <QWidget>
  5. #include <QStack>
  6.  
  7. class QLCDNumber;
  8. class QPushButton;
  9.  
  10. class Calculator : public QWidget
  11. {
  12.     Q_OBJECT
  13. private:
  14.     QLCDNumber*         m_plcd;
  15.     QStack<QString>     m_stk;
  16.     QString             m_strDisplay;
  17.  
  18. public:
  19.     Calculator(QWidget *wgt = 0);
  20.     QPushButton* createButton(const QString& str);
  21.     void calculate();
  22. public slots:
  23.     void slotButtonClicked();
  24. };
  25.  
  26. #endif // CALC_H
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement