summaryrefslogtreecommitdiffstats
path: root/qt-ui/printoptions.h
diff options
context:
space:
mode:
Diffstat (limited to 'qt-ui/printoptions.h')
-rw-r--r--qt-ui/printoptions.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/qt-ui/printoptions.h b/qt-ui/printoptions.h
index d96b27a53..3a5c2b179 100644
--- a/qt-ui/printoptions.h
+++ b/qt-ui/printoptions.h
@@ -26,6 +26,12 @@ struct template_options {
int color_palette_index;
double font_size;
double line_spacing;
+ bool operator!=(const template_options &other) const {
+ return other.font_index != font_index
+ || other.color_palette_index != color_palette_index
+ || other.font_size != font_size
+ || other.line_spacing != line_spacing;
+ }
};
// should be based on a custom QPrintDialog class