123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- #ifndef MANAGERPLAN_H
- #define MANAGERPLAN_H
- #include <QDialog>
- namespace Ui {
- class ManagerPlan;
- }
- class ManagerPlan : public QDialog
- {
- Q_OBJECT
- public:
- explicit ManagerPlan(QDialog *parent = nullptr);
- ~ManagerPlan();
- public slots:
- /* 修改UI样式 */
- void do_setUIStyle();
- private:
- /* 设置时间和日期选择Tab */
- void setTabWidget();
- /* 设置可选择的周几 */
- void setWeekDay();
- protected:
- /* 鼠标点击事件 */
- void mousePressEvent(QMouseEvent *event) override;
- /* 鼠标移动事件 */
- void mouseMoveEvent(QMouseEvent *event) override;
- /* 鼠标释放事件 */
- void mouseReleaseEvent(QMouseEvent *event) override;
- /* 事件过滤器 */
- bool eventFilter(QObject *watched, QEvent *event) override;
- private:
- Ui::ManagerPlan *ui;
- QPoint m_lastPos; /* 鼠标点击的位置 */
- };
- #endif // MANAGERPLAN_H
|