12345678910111213141516171819202122232425262728293031323334 |
- #ifndef QMINMAXWINDOWWIDGET_H
- #define QMINMAXWINDOWWIDGET_H
- #include <QWidget>
- #include "ui_qminmaxwindowwidget.h"
- class QMinMaxWindowWidget : public QWidget
- {
- Q_OBJECT
- public:
- QMinMaxWindowWidget(QWidget *parent = 0);
- ~QMinMaxWindowWidget();
- void setControlWidget(QWidget * contrl);
- void setMaxVisible(bool visible);
- void setMinVisible(bool visible);
- void setCloseVisible(bool visible);
- void initalizeIcons();
- public slots:
- void closeWindow();
- void switchWindow();
- void minimizedWindow();
- virtual bool eventFilter(QObject *, QEvent *);
- public:
- Ui::QMinMaxWindowWidget ui;
- QWidget * m_contrl;
- QMargins m_contentMargin;
- QString m_closeTip;
- };
- #endif // QMINMAXWINDOWWIDGET_H
|