Continues migration with DDS, Common
This commit is contained in:
1 parent
9b15cee841
commit
fa48db111e
668 files changed
+111841
-2
No files matched your search
Executable
+50
@@ -0,0 +1,50 @@
|
||||
#pragma once
|
||||
|
||||
#include "lts_widgets_export.h"
|
||||
#include <QWidget>
|
||||
#include <QPainterPath>
|
||||
|
||||
|
||||
class QPaintEvent;
|
||||
class QResizeEvent;
|
||||
|
||||
|
||||
namespace Ui
|
||||
{
|
||||
class NotiBox;
|
||||
}
|
||||
|
||||
|
||||
namespace LtsWidgets
|
||||
{
|
||||
class LTSWIDGETS_EXPORT LtsNotificationBox : public QWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
enum class MessageType
|
||||
{
|
||||
Success,
|
||||
Error,
|
||||
Warning,
|
||||
Info,
|
||||
};
|
||||
|
||||
explicit LtsNotificationBox(QWidget *parent = nullptr);
|
||||
|
||||
void message(const QString &title, const QString &text, MessageType type = MessageType::Error);
|
||||
|
||||
signals:
|
||||
void signalClose();
|
||||
void signalAck();
|
||||
void signalLinkClicked(const QString &link);
|
||||
|
||||
protected:
|
||||
void paintEvent(QPaintEvent *) override;
|
||||
|
||||
private:
|
||||
Ui::NotiBox *m_ui;
|
||||
QPainterPath roundRectPath;
|
||||
const static int margin;
|
||||
};
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user