forked from quickshell/quickshell
feat(socket): add SocketServer and Socket.write
This commit is contained in:
parent
f004454395
commit
f45d298b66
5 changed files with 248 additions and 7 deletions
|
@ -111,3 +111,18 @@ private:
|
|||
|
||||
QList<QObject*> mChildren;
|
||||
};
|
||||
|
||||
/// Hook that runs after the old widget tree is dropped during a reload.
|
||||
class PostReloadHook {
|
||||
public:
|
||||
PostReloadHook() = default;
|
||||
virtual ~PostReloadHook() = default;
|
||||
PostReloadHook(PostReloadHook&&) = default;
|
||||
PostReloadHook(const PostReloadHook&) = default;
|
||||
PostReloadHook& operator=(PostReloadHook&&) = default;
|
||||
PostReloadHook& operator=(const PostReloadHook&) = default;
|
||||
|
||||
virtual void onPostReload() = 0;
|
||||
|
||||
static void postReloadTree(QObject* root);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue