Qt 5.10 Book Examples
DocWindow.h
Go to the documentation of this file.
1 // ======================================================================
2 // DocWindow.h
3 // ======================================================================
4 // This file is a part of the book
5 // "Qt 5.10 Professional programming with C++"
6 // http://qt-book.com
7 // ======================================================================
8 // Copyright (c) 2017 by Max Schlee
9 // ======================================================================
10 
11 #pragma once
12 
13 #include <QTextEdit>
14 
15 // ======================================================================
16 class DocWindow: public QTextEdit {
17 Q_OBJECT
18 private:
19  QString m_strFileName;
20 
21 public:
22  DocWindow(QWidget* pwgt = 0);
23 
24 signals:
25  void changeWindowTitle(const QString&);
26 
27 public slots:
28  void slotLoad ();
29  void slotSave ();
30  void slotSaveAs();
31 };
void slotLoad()
Definition: DocWindow.cpp:20
void slotSaveAs()
Definition: DocWindow.cpp:55
void slotSave()
Definition: DocWindow.cpp:39
void changeWindowTitle(const QString &)
DocWindow(QWidget *pwgt=0)
Definition: DocWindow.cpp:15