use "static const" - variables instead of multiple times values in source-code

use multiplication-sign "×" instead of asterisk "*" between widht and height
This commit is contained in:
plc-user
2025-02-06 15:16:19 +01:00
parent 33570ffceb
commit 924d1c1b05
2 changed files with 14 additions and 9 deletions

View File

@@ -79,6 +79,11 @@ class ExportDialog : public QDialog {
QSignalMapper *reset_mapper_;
QSignalMapper *clipboard_mapper_;
// constants for exporting images:
static const int BMPmaxSize = 32767;
static const int JPGmaxSize = 65535;
static const int GeneralMaxSize = 100000;
// project whose diagrams are to be exported
QETProject *project_;