DAWorkbench 0.0.1
DAWorkbench API
载入中...
搜索中...
未找到
DAWaitCursorScoped.h
1#ifndef DAWAITCURSORSCOPED_H
2#define DAWAITCURSORSCOPED_H
3#include <QCursor>
4#include "DACommonWidgetsAPI.h"
5#include "DACursorScoped.h"
6namespace DA
7{
11class DACOMMONWIDGETS_API DAWaitCursorScoped : public DACursorScoped
12{
13public:
15 virtual ~DAWaitCursorScoped();
16};
17} // end namespace DA
18
19#ifndef DA_WAIT_CURSOR_SCOPED
20#define DA_WAIT_CURSOR_SCOPED() \
21 DAWaitCursorScoped __da__wait__cursor; \
22 Q_UNUSED(__da__wait__cursor)
23#endif
24
25#ifndef DA_WAIT_CURSOR_SCOPED_NS
26#define DA_WAIT_CURSOR_SCOPED_NS() \
27 DA::DAWaitCursorScoped __da__wait__cursor; \
28 Q_UNUSED(__da__wait__cursor)
29#endif
30#endif // DAWAITCURSORSCOPED_H
用于图标保护,防止异常导致图标无法恢复
Definition DACursorScoped.h:11
一个等待鼠标的保护类
Definition DAWaitCursorScoped.h:12
序列化类都是带异常的,使用中需要处理异常
Definition AppMainWindow.cpp:44