summaryrefslogtreecommitdiffstats
path: root/examples/nfc/ndefeditor/mimeimagerecordeditor.h
diff options
context:
space:
mode:
Diffstat (limited to 'examples/nfc/ndefeditor/mimeimagerecordeditor.h')
-rw-r--r--examples/nfc/ndefeditor/mimeimagerecordeditor.h14
1 files changed, 12 insertions, 2 deletions
diff --git a/examples/nfc/ndefeditor/mimeimagerecordeditor.h b/examples/nfc/ndefeditor/mimeimagerecordeditor.h
index 44cd084b..eed61407 100644
--- a/examples/nfc/ndefeditor/mimeimagerecordeditor.h
+++ b/examples/nfc/ndefeditor/mimeimagerecordeditor.h
@@ -1,6 +1,6 @@
/****************************************************************************
**
-** Copyright (C) 2017 The Qt Company Ltd.
+** Copyright (C) 2021 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of the QtNfc module of the Qt Toolkit.
@@ -48,7 +48,6 @@
**
****************************************************************************/
-
#ifndef MIMEIMAGERECORDEDITOR_H
#define MIMEIMAGERECORDEDITOR_H
@@ -76,9 +75,20 @@ public:
void setRecord(const QNdefRecord &record);
QNdefRecord record() const;
+public slots:
+ void handleScreenOrientationChange(Qt::ScreenOrientation orientation);
+
+protected:
+ void resizeEvent(QResizeEvent *) override;
+
private:
+ void updatePixmap();
+
Ui::MimeImageRecordEditor *ui;
QNdefRecord m_record;
+ QPixmap m_pixmap;
+ bool m_imageSelected = false;
+ bool m_screenRotated = false;
private slots:
void on_mimeImageOpen_clicked();