Qt 5.10 Book Examples
chapter34
MDI
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
};
DocWindow::slotLoad
void slotLoad()
Definition:
DocWindow.cpp:20
DocWindow
Definition:
DocWindow.h:16
DocWindow::slotSaveAs
void slotSaveAs()
Definition:
DocWindow.cpp:55
DocWindow::slotSave
void slotSave()
Definition:
DocWindow.cpp:39
DocWindow::changeWindowTitle
void changeWindowTitle(const QString &)
DocWindow::DocWindow
DocWindow(QWidget *pwgt=0)
Definition:
DocWindow.cpp:15
Generated by
1.8.14