Files
qt-migration-legatus/qt6-after/qt6-migrated-legatus/Lts/Common/LtsNotification/lts_notification.h
T
torstenandCopilot d6b6ffce7c Apply clang-format to Lts/Common and DTC/enum headers
- Formatted all CodeGen module files (9 files)
- Formatted LtsAppDescriptor module files
- Formatted LtsAppManager/AppChooser files
- Applied clang-format to all DTC and enum headers across modules
- Removed coordTransTests from CommonUnitTestsPlaceholder (moved to tests/)

Cosmetic changes only, no functional modifications.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-08-19 14:46:29 +02:00

46 lines
875 B
C++

#pragma once
#include "ltsnotification_export.h"
#include <QList>
#include <QObject>
#include <functional>
#include <memory>
namespace LtsSession
{
class LtsSession;
}
namespace LtsNotification
{
class LtsNotificationController;
class LTSNOTIFICATION_EXPORT LtsNotification : public QObject
{
Q_OBJECT
public:
explicit LtsNotification(LtsNotificationController* ctl);
~LtsNotification();
void setIcon(const QIcon& icon);
void setAction(const std::function<void(void)>& action);
void setToolTip(const QString& toolTip);
void setCount(const int count);
void setEnabled(bool enable);
void setBackground(const int r, const int g, const int b);
const QString& tooltip() const;
private:
LtsNotificationController* m_controller;
private slots:
void slotCtlDestroyed(QObject* obj);
};
} // namespace LtsNotification