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>
pull/135/head
Alexander Golubev 8 months ago committed by TDE Gitea
parent 8a13d9aef4
commit 5920542e9e

@ -43,6 +43,7 @@
#ifndef TQT_NO_PRINTER #ifndef TQT_NO_PRINTER
#ifndef QT_H #ifndef QT_H
#include <ntqprinter.h>
#include <ntqshared.h> #include <ntqshared.h>
#include <ntqstring.h> #include <ntqstring.h>
#include <ntqsize.h> #include <ntqsize.h>
@ -53,6 +54,8 @@ class TQPrinterPrivate
public: public:
TQ_UINT32 printerOptions; TQ_UINT32 printerOptions;
TQPrinter::PrintRange printRange; TQPrinter::PrintRange printRange;
virtual ~TQPrinterPrivate() {};
}; };
#endif #endif

Loading…
Cancel
Save