widgetViewPhoto.h 642 B

12345678910111213141516171819202122232425262728293031323334353637
  1. #ifndef WIDGETVIEWPHOTO_H
  2. #define WIDGETVIEWPHOTO_H
  3. #include <QWidget>
  4. #include "CHttpBll.h"
  5. namespace Ui {
  6. class widgetViewPhoto;
  7. }
  8. class widgetViewPhoto : public QWidget
  9. {
  10. Q_OBJECT
  11. public:
  12. explicit widgetViewPhoto(int nIndex, QStringList list, QWidget *parent = nullptr);
  13. ~widgetViewPhoto();
  14. signals:
  15. void viewImgClose();
  16. private slots:
  17. void on_btn_prev_photo_clicked();
  18. void on_btn_next_photo_clicked();
  19. void on_btn_vp_close_clicked();
  20. private:
  21. void initUI();
  22. void showImage(QString sImage);
  23. Ui::widgetViewPhoto *ui;
  24. QStringList m_list;
  25. int m_nIdex;
  26. };
  27. #endif // WIDGETVIEWPHOTO_H