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
+46
@@ -0,0 +1,46 @@
|
||||
|
||||
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <QDialog>
|
||||
|
||||
#include "lts_base.h"
|
||||
#include "lts_widgets_export.h"
|
||||
|
||||
|
||||
namespace LtsWidgets
|
||||
{
|
||||
|
||||
|
||||
enum class Behaviour
|
||||
{
|
||||
Popup = 0,
|
||||
Modal,
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
class LTSWIDGETS_EXPORT LtsFramelessDialog : public QDialog
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
|
||||
|
||||
explicit LtsFramelessDialog(QWidget *parent = nullptr, const Behaviour &behaviour = Behaviour::Popup);
|
||||
virtual ~LtsFramelessDialog();
|
||||
|
||||
public Q_SLOTS:
|
||||
void onUpdateGeometry();
|
||||
private:
|
||||
QRect screenRectFromPoint(const QPoint &pos) const;
|
||||
void addTouchScroll(QWidget *widget);
|
||||
|
||||
protected:
|
||||
void showEvent(QShowEvent *event) override;
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user