qminmaxwindowwidget.h 698 B

12345678910111213141516171819202122232425262728293031323334
  1. #ifndef QMINMAXWINDOWWIDGET_H
  2. #define QMINMAXWINDOWWIDGET_H
  3. #include <QWidget>
  4. #include "ui_qminmaxwindowwidget.h"
  5. class QMinMaxWindowWidget : public QWidget
  6. {
  7. Q_OBJECT
  8. public:
  9. QMinMaxWindowWidget(QWidget *parent = 0);
  10. ~QMinMaxWindowWidget();
  11. void setControlWidget(QWidget * contrl);
  12. void setMaxVisible(bool visible);
  13. void setMinVisible(bool visible);
  14. void setCloseVisible(bool visible);
  15. void initalizeIcons();
  16. public slots:
  17. void closeWindow();
  18. void switchWindow();
  19. void minimizedWindow();
  20. virtual bool eventFilter(QObject *, QEvent *);
  21. public:
  22. Ui::QMinMaxWindowWidget ui;
  23. QWidget * m_contrl;
  24. QMargins m_contentMargin;
  25. QString m_closeTip;
  26. };
  27. #endif // QMINMAXWINDOWWIDGET_H