summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Golubev <fatzer2@gmail.com>2024-03-17 04:39:31 +0300
committerMichele Calgaro <michele.calgaro@yahoo.it>2024-03-20 11:25:44 +0900
commitbb6797db1f6f36a38f528f39423cf7db47b3bd2f (patch)
treece31b8b5c02c6eac8044b6a0895062239231c5ae
parentba566100303033554bf9b9583edb6196733eb115 (diff)
downloadtqt3-bb6797db.tar.gz
tqt3-bb6797db.zip
TQPrinterPrivate: add virtual destructor.
As derivative from it e.g. TQPrinterUnixPrivate are getting deleted (e.g in unix TQPrinter implementation) by a reference to base class. Also added missing include to the header. Signed-off-by: Alexander Golubev <fatzer2@gmail.com> (cherry picked from commit 5920542e9e62672acb42cbb70e6eac27442ebed0)
-rw-r--r--src/kernel/qprinter_p.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/kernel/qprinter_p.h b/src/kernel/qprinter_p.h
index 79c5f827..b7f6d68c 100644
--- a/src/kernel/qprinter_p.h
+++ b/src/kernel/qprinter_p.h
@@ -43,6 +43,7 @@
#ifndef TQT_NO_PRINTER
#ifndef QT_H
+#include <ntqprinter.h>
#include <ntqshared.h>
#include <ntqstring.h>
#include <ntqsize.h>
@@ -53,6 +54,8 @@ class TQPrinterPrivate
public:
TQ_UINT32 printerOptions;
TQPrinter::PrintRange printRange;
+
+ virtual ~TQPrinterPrivate() {};
};
#endif