showpixmapdialog.h 468 B

1234567891011121314151617181920212223242526
  1. #ifndef SHOWPIXMAPDIALOG_H
  2. #define SHOWPIXMAPDIALOG_H
  3. #include "pixmapviewer.h"
  4. #include <QDialog>
  5. #include <QHBoxLayout>
  6. #include <QPixmap>
  7. namespace Ui {
  8. class showPixmapDialog;
  9. }
  10. class showPixmapDialog : public QDialog {
  11. Q_OBJECT
  12. public:
  13. explicit showPixmapDialog(QWidget* parent = nullptr);
  14. ~showPixmapDialog();
  15. void setImage(QPixmap& image);
  16. private:
  17. Ui::showPixmapDialog* ui;
  18. PixmapViewer* m_viewer;
  19. };
  20. #endif // SHOWPIXMAPDIALOG_H