Alex Jbanca 1cd00b77a0 fix(StatusQ): Extend StatusToastNotification to support RichText and allow larger content
Changes:
1. StatusToastMessage now supports dynamic content height
2. Add new StatusToastMessage type: Danger
3. Update StatusToastMessage to support RichText content
4. Fix StatusQ sanboxapp compilation
5. Add the new StatusToastMessage content to sandbox
2023-10-23 16:33:17 +03:00

39 lines
692 B
C++

#ifndef SANDBOXAPP_H
#define SANDBOXAPP_H
#include <QGuiApplication>
#include <QQmlApplicationEngine>
#ifdef QT_DEBUG
#include <QFileSystemWatcher>
#endif
class SandboxApp : public QGuiApplication
{
public:
SandboxApp(int &argc, char **argv);
void startEngine();
public slots:
void restartEngine();
private:
std::unique_ptr<QQmlApplicationEngine> m_engine;
#ifdef QT_DEBUG
QFileSystemWatcher m_watcher;
void watchDirectoryChanges(const QString& path);
#endif
const QUrl m_url {
#ifdef QT_DEBUG
QUrl::fromLocalFile(SANDBOX_SRC_DIR + QStringLiteral("/main.qml"))
#else
QStringLiteral("qrc:/main.qml")
#endif
};
};
#endif // SANDBOXAPP_H