- LtsWidgets: Fixed Qt6 API compatibility issues - QWheelEvent::delta() → angleDelta().y() - QStyleOption::init() → initFrom() - QComboBox activated signal signature change - QTextCodec removal (UTF-8 default in Qt6) - Missing widget includes added - LtsWebSocket: Fixed m_logger reference initialization - Added NGLLoggerBootstrap includes - Proper initialization in constructor initializer lists - CMake: Added BUILD_LTSWEBSOCKET option for temporary exclusion - Docker: RTI Connext permanent installation script added - ci/install-rti-in-docker.sh for persistent RTI setup - Removes need for volume mounting RTI into container - BUILD options: FilterManagement, RTI, Codification, Grantlee, LtsWebSocket can be disabled for partial builds during migration Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
69 lines
1.1 KiB
C++
69 lines
1.1 KiB
C++
|
|
|
|
#pragma once
|
|
#include "ltswidgets_export.h"
|
|
|
|
#include <QObject>
|
|
#include <QWidget>
|
|
|
|
namespace LtsWidgets
|
|
{
|
|
|
|
class LTSWIDGETS_EXPORT LtsImageEditor : public QWidget
|
|
{
|
|
Q_OBJECT
|
|
|
|
Q_PROPERTY(QPixmap pixmap READ pixmap WRITE setPixmap)
|
|
Q_PROPERTY(bool menuEnabled READ isMenuEnabled WRITE setMenuEnabled)
|
|
|
|
public:
|
|
explicit LtsImageEditor(QWidget* parent = nullptr);
|
|
|
|
void setPixmap(const QPixmap& pixmap);
|
|
|
|
QPixmap pixmap() const
|
|
{
|
|
return m_pixmap;
|
|
}
|
|
|
|
void setMenuEnabled(bool enabled = true)
|
|
{
|
|
m_menuEnabled = enabled;
|
|
}
|
|
|
|
bool isMenuEnabled() const
|
|
{
|
|
return m_menuEnabled;
|
|
}
|
|
|
|
void setDrawOuterRect(bool bDraw)
|
|
{
|
|
m_bDrawOuterRect = bDraw;
|
|
}
|
|
|
|
bool drawOuterRect() const
|
|
{
|
|
return m_bDrawOuterRect;
|
|
}
|
|
|
|
protected:
|
|
void paintEvent(QPaintEvent* event);
|
|
void enterEvent(QEnterEvent*);
|
|
void leaveEvent(QEvent*);
|
|
bool event(QEvent* event);
|
|
|
|
private:
|
|
QPixmap m_pixmap;
|
|
bool m_isHovered;
|
|
bool m_menuEnabled;
|
|
bool m_bDrawOuterRect;
|
|
|
|
signals:
|
|
|
|
void signalClicked();
|
|
|
|
void imageChanged();
|
|
};
|
|
|
|
} // namespace LtsWidgets
|