2025-03-29 00:13:10 +01:00
|
|
|
#ifndef QT_ICONINDICATORS_HPP
|
2025-05-01 21:02:59 +02:00
|
|
|
# define QT_ICONINDICATORS_HPP
|
2025-03-29 00:13:10 +01:00
|
|
|
|
|
|
|
|
#include <QPixmap>
|
|
|
|
|
#include <QIcon>
|
|
|
|
|
|
|
|
|
|
enum IconIndicator {
|
|
|
|
|
None,
|
|
|
|
|
Active,
|
2025-04-22 17:37:00 +06:00
|
|
|
WriteActive,
|
|
|
|
|
ReadWriteActive,
|
2025-03-29 00:13:10 +01:00
|
|
|
Disabled,
|
2025-07-21 01:20:54 +06:00
|
|
|
WriteProtected,
|
|
|
|
|
WriteProtectedActive,
|
2025-03-29 00:13:10 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
QPixmap getIconWithIndicator(const QIcon &icon, const QSize &size, QIcon::Mode iconMode, IconIndicator indicator);
|
|
|
|
|
|
2025-05-01 21:02:59 +02:00
|
|
|
#endif
|