Continues migration with DDS, Common
This commit is contained in:
1 parent
9b15cee841
commit
fa48db111e
668 files changed
+111841
-2
No files matched your search
Executable
+39
@@ -0,0 +1,39 @@
|
||||
|
||||
|
||||
|
||||
#pragma once
|
||||
|
||||
#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;
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user