diff options
Diffstat (limited to 'src/dialogs/PreviewUploadOverlay.h')
-rw-r--r-- | src/dialogs/PreviewUploadOverlay.h | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/src/dialogs/PreviewUploadOverlay.h b/src/dialogs/PreviewUploadOverlay.h index d23ea0ae..e9078069 100644 --- a/src/dialogs/PreviewUploadOverlay.h +++ b/src/dialogs/PreviewUploadOverlay.h @@ -18,35 +18,35 @@ namespace dialogs { class PreviewUploadOverlay : public QWidget { - Q_OBJECT + Q_OBJECT public: - PreviewUploadOverlay(QWidget *parent = nullptr); + PreviewUploadOverlay(QWidget *parent = nullptr); - void setPreview(const QImage &src, const QString &mime); - void setPreview(const QByteArray data, const QString &mime); - void setPreview(const QString &path); - void keyPressEvent(QKeyEvent *event); + void setPreview(const QImage &src, const QString &mime); + void setPreview(const QByteArray data, const QString &mime); + void setPreview(const QString &path); + void keyPressEvent(QKeyEvent *event); signals: - void confirmUpload(const QByteArray data, const QString &media, const QString &filename); - void aborted(); + void confirmUpload(const QByteArray data, const QString &media, const QString &filename); + void aborted(); private: - void init(); - void setLabels(const QString &type, const QString &mime, uint64_t upload_size); + void init(); + void setLabels(const QString &type, const QString &mime, uint64_t upload_size); - bool isImage_; - QPixmap image_; + bool isImage_; + QPixmap image_; - QByteArray data_; - QString filePath_; - QString mediaType_; + QByteArray data_; + QString filePath_; + QString mediaType_; - QLabel titleLabel_; - QLabel infoLabel_; - QLineEdit fileName_; + QLabel titleLabel_; + QLabel infoLabel_; + QLineEdit fileName_; - QPushButton upload_; - QPushButton cancel_; + QPushButton upload_; + QPushButton cancel_; }; } // dialogs |