- #include <QObject> zu 106+ Header-Dateien hinzugefügt (Qt6 benötigt explizites Include) - ui_requirement.h/cpp zu requirement_widget.h/cpp umbenannt (vermeidet AutoUIC-Scan) - CMakeLists.txt aktualisiert - Qt6Positioning-Dependency in Dockerfile hinzugefügt Fixes: - AutoUIC-Fehler bei AesBaseGui (requirement.ui nicht gefunden) - QObject-Missing-Include-Fehler in Qt6 - Qt6Location-Modul nicht gefunden (qtpositioning fehlte)
41 lines
801 B
C++
Executable File
41 lines
801 B
C++
Executable File
|
|
|
|
|
|
#pragma once
|
|
#include <QObject>
|
|
|
|
#include "lts_base.h"
|
|
#include "lts_widgets_export.h"
|
|
|
|
#include <QSplitterHandle>
|
|
#include <QList>
|
|
#include <QPropertyAnimation>
|
|
|
|
namespace LtsWidgets
|
|
{
|
|
|
|
class LTSWIDGETS_EXPORT LtsSplitterHandle : public QSplitterHandle
|
|
{
|
|
Q_OBJECT
|
|
Q_PROPERTY(QColor splittercolor READ splitterColor WRITE setCurrentColor DESIGNABLE false)
|
|
|
|
public:
|
|
explicit LtsSplitterHandle(Qt::Orientation orientation, QSplitter *parent = nullptr);
|
|
~LtsSplitterHandle();
|
|
|
|
void paintEvent(QPaintEvent *event) override;
|
|
void animate();
|
|
|
|
QColor splitterColor() const;
|
|
void setCurrentColor(const QColor ¤tcolor);
|
|
|
|
private:
|
|
bool m_animate {false};
|
|
QColor m_endColor {Qt::black};
|
|
QColor m_currentColor{QColor(239,87,50)};
|
|
QPropertyAnimation *m_colorAnimation;
|
|
|
|
};
|
|
|
|
}
|