wPictureItem.h 716 B

12345678910111213141516171819202122232425262728293031323334353637
  1. #ifndef WPICTUREITEM_H
  2. #define WPICTUREITEM_H
  3. #include <QWidget>
  4. #include "CHttpBll.h"
  5. namespace Ui {
  6. class wPictureItem;
  7. }
  8. class wPictureItem : public QWidget
  9. {
  10. Q_OBJECT
  11. signals:
  12. void delFile(QString sUrl);
  13. void viewPhoto(QString sUrl);
  14. public:
  15. explicit wPictureItem(QString sUrl, QWidget *parent = nullptr);
  16. ~wPictureItem();
  17. QString getUrl();
  18. void setUI(int nLeft, int nTop, int nWidth, int nHeight);
  19. private slots:
  20. void onDownLoadFile(CDownLoadFileInfo downLoadFileInfo);
  21. void on_btn_delete_clicked();
  22. void on_btn_view_clicked();
  23. private:
  24. bool eventFilter(QObject *obj, QEvent *ev);
  25. Ui::wPictureItem *ui;
  26. QString m_sUrl;
  27. };
  28. #endif // WPICTUREITEM_H