Qt6 migration: LtsWidgets API fixes, LtsWebSocket logger init, RTI Docker install
- 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>
This commit is contained in:
69 files changed
+12765
-14202
No files matched your search
Executable → Regular
+41
-34
@@ -1,61 +1,68 @@
|
||||
|
||||
|
||||
|
||||
#pragma once
|
||||
#include <QObject>
|
||||
|
||||
#include "ltswidgets_export.h"
|
||||
|
||||
#include <QObject>
|
||||
#include <QWidget>
|
||||
|
||||
|
||||
namespace LtsWidgets
|
||||
{
|
||||
|
||||
class LTSWIDGETS_EXPORT LtsImageEditor : public QWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_OBJECT
|
||||
|
||||
Q_PROPERTY(QPixmap pixmap READ pixmap WRITE setPixmap)
|
||||
Q_PROPERTY(bool menuEnabled READ isMenuEnabled WRITE setMenuEnabled)
|
||||
Q_PROPERTY(QPixmap pixmap READ pixmap WRITE setPixmap)
|
||||
Q_PROPERTY(bool menuEnabled READ isMenuEnabled WRITE setMenuEnabled)
|
||||
|
||||
public:
|
||||
explicit LtsImageEditor(QWidget *parent = nullptr);
|
||||
public:
|
||||
explicit LtsImageEditor(QWidget* parent = nullptr);
|
||||
|
||||
|
||||
void setPixmap(const QPixmap& pixmap);
|
||||
|
||||
void setPixmap(const QPixmap &pixmap);
|
||||
QPixmap pixmap() const
|
||||
{
|
||||
return m_pixmap;
|
||||
}
|
||||
|
||||
|
||||
void setMenuEnabled(bool enabled = true)
|
||||
{
|
||||
m_menuEnabled = enabled;
|
||||
}
|
||||
|
||||
QPixmap pixmap() const { return m_pixmap; }
|
||||
bool isMenuEnabled() const
|
||||
{
|
||||
return m_menuEnabled;
|
||||
}
|
||||
|
||||
|
||||
void setDrawOuterRect(bool bDraw)
|
||||
{
|
||||
m_bDrawOuterRect = bDraw;
|
||||
}
|
||||
|
||||
void setMenuEnabled(bool enabled = true) { m_menuEnabled = enabled; }
|
||||
bool isMenuEnabled() const { return m_menuEnabled; }
|
||||
bool drawOuterRect() const
|
||||
{
|
||||
return m_bDrawOuterRect;
|
||||
}
|
||||
|
||||
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);
|
||||
|
||||
protected:
|
||||
void paintEvent(QPaintEvent *event);
|
||||
void enterEvent(QEvent *);
|
||||
void leaveEvent(QEvent *);
|
||||
bool event(QEvent *event);
|
||||
private:
|
||||
QPixmap m_pixmap;
|
||||
bool m_isHovered;
|
||||
bool m_menuEnabled;
|
||||
bool m_bDrawOuterRect;
|
||||
|
||||
private:
|
||||
QPixmap m_pixmap;
|
||||
bool m_isHovered;
|
||||
bool m_menuEnabled;
|
||||
bool m_bDrawOuterRect;
|
||||
signals:
|
||||
|
||||
signals:
|
||||
|
||||
void signalClicked();
|
||||
|
||||
void signalClicked();
|
||||
|
||||
void imageChanged();
|
||||
void imageChanged();
|
||||
};
|
||||
|
||||
}
|
||||
} // namespace LtsWidgets
|
||||
Reference in new issue
Block a user