+ enum Transition
+ {
+ /** No transition is done when the pixmap is changed. */
+ NoTransition,
+
+ /**
+ * The old pixmap is replaced by the new pixmap and the size is
+ * adjusted smoothly to the size of the new pixmap.
+ */
+ DefaultTransition,
+
+ /**
+ * If the old pixmap and the new pixmap have the same content, but
+ * a different size it is recommended to use Transition::SizeTransition
+ * instead of Transition::DefaultTransition. In this case it is assured
+ * that the larger pixmap is used for downscaling, which leads
+ * to an improved scaling output.
+ */
+ SizeTransition
+ };
+
+ explicit PixmapViewer(QWidget* parent,
+ Transition transition = DefaultTransition);
+