mirror of
https://gitee.com/Zhaoxin59/my-chat_-client.git
synced 2026-02-14 09:01:50 +08:00
refactor: 大规模调整项目目录结构,将ChatClient和ChatServer整合为Monorepo结构,并分为两个独立文件夹:chatclient/ 和 chatserver/。更新了ChatClient的CMakeLists.txt配置以适配新结构。
This commit is contained in:
22
ChatClient/include/toast.h
Normal file
22
ChatClient/include/toast.h
Normal file
@ -0,0 +1,22 @@
|
||||
#pragma once
|
||||
|
||||
#include <QDialog>
|
||||
#include <QWidget>
|
||||
#include <QApplication>
|
||||
#include <QScreen>
|
||||
#include <QVBoxLayout>
|
||||
#include <QLabel>
|
||||
#include <QTimer>
|
||||
|
||||
class Toast : public QDialog
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
//此处并不需要指定父窗口,全局通知的父窗口就是桌面
|
||||
Toast(const QString& text);
|
||||
|
||||
//并不需要手动的来new这个对象,而是通过showMessage来弹出
|
||||
static void showMessage(const QString& text);
|
||||
|
||||
};
|
||||
Reference in New Issue
Block a user