Skip to content

File SelectionRectangle.hpp

File List > inspection > internal > SelectionRectangle.hpp

Go to the documentation of this file

//
// SPDX-FileCopyrightText: 2026 Michal Grabarczyk
// SPDX-License-Identifier: GPL-3.0-only WITH Universal-FOSS-exception-1.0
//
// This file is also available under a separate commercial license.
// See COMMERCIAL-LICENSING.md for contact information.
//
#pragma once

#include <QQuickItem>

namespace QAccelPlot {
class SelectionTool;
} // namespace QAccelPlot

namespace QAccelPlot::Internal {

class OutlinedRectangle;

class SelectionRectangle final : public QQuickItem {
public:
    explicit SelectionRectangle(SelectionTool& tool);

private:
    void attach();
    void sync();

    SelectionTool& tool_;
    OutlinedRectangle* rectangle_;
};

} // namespace QAccelPlot::Internal