Guest User

Untitled

a guest
Jul 23rd, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. #ifndef MAINWINDOW_H
  2. #define MAINWINDOW_H
  3.  
  4. #include <KXmlGuiWindow>
  5.  
  6. class KTextEdit;
  7.  
  8. class MainWindow : public KXmlGuiWindow
  9. {
  10. Q_OBJECT //new from tutorial3
  11.  
  12. public:
  13. MainWindow(QWidget *parent=0);
  14.  
  15. private:
  16. void setupActions();
  17.  
  18. KTextEdit *m_textArea;
  19. QString m_fileName; //new
  20.  
  21. private slots: //new
  22. void newFile(); //new
  23. void openFile(); //new
  24. void saveFile(); //new
  25. void saveFileAs(); //new
  26. void saveFileAs(const QString &outputFileName); //new
  27. };
  28.  
  29. #endif
Add Comment
Please, Sign In to add comment