Qt 5.10 Book Examples
Viewer.cpp
Go to the documentation of this file.
1 // ======================================================================
2 // Viewer.cpp
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 #include "Viewer.h"
12 
13 // ----------------------------------------------------------------------
14 Viewer::Viewer(QWidget* pwgt /*=0*/) : QTextEdit(pwgt)
15 {
16  setWindowTitle("File System Watcher");
17 }
18 
19 // ----------------------------------------------------------------------
20 void Viewer::slotDirectoryChanged(const QString& str)
21 {
22  append("Directory changed:" + str);
23 }
24 
25 // ----------------------------------------------------------------------
26 void Viewer::slotFileChanged(const QString& str)
27 {
28  append("File changed:" + str);
29 }
30 
Viewer(QWidget *pwgt=0)
Definition: Viewer.cpp:14