blob: 4a6d08a85e7a25d2547215c44f22de209d48ae7a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0+ OR GPL-3.0 WITH Qt-GPL-exception-1.0
#pragma once
#include <QGraphicsLineItem>
#include <QTimer>
namespace ScxmlEditor {
namespace PluginInterface {
class SnapLine : public QObject, public QGraphicsLineItem
{
Q_OBJECT
public:
SnapLine(QGraphicsItem *parent = nullptr);
void show(qreal x1, qreal y1, qreal x2, qreal y2);
void hideLine();
private:
QTimer m_visibilityTimer;
};
} // namespace PluginInterface
} // namespace ScxmlEditor
|