KDDockWidgets API Documentation 2.0
Loading...
Searching...
No Matches
qtwidgets/views/SegmentedDropIndicatorOverlay.h
Go to the documentation of this file.
1/*
2 This file is part of KDDockWidgets.
3
4 SPDX-FileCopyrightText: 2019 Klarälvdalens Datakonsult AB, a KDAB Group company <info@kdab.com>
5 Author: SĂ©rgio Martins <sergio.martins@kdab.com>
6
7 SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only
8
9 Contact KDAB at <info@kdab.com> for commercial licensing options.
10*/
11
12#ifndef KD_SEGMENTEDDROPINDICATOROVERLAY_QTWIDGETS_H
13#define KD_SEGMENTEDDROPINDICATOROVERLAY_QTWIDGETS_H
14
15#pragma once
16
17#include "View.h"
18
19namespace KDDockWidgets {
20
21namespace Core {
22class SegmentedDropIndicatorOverlay;
23}
24
25namespace QtWidgets {
26
27class DOCKS_EXPORT SegmentedDropIndicatorOverlay : public View<QWidget>
28{
29 Q_OBJECT
30public:
32 QWidget *parent = nullptr);
34
38
39protected:
40 void paintEvent(QPaintEvent *) override;
41
42private:
43 void drawSegments(QPainter *p);
44 void drawSegment(QPainter *p, const QPolygon &segment);
45 Core::SegmentedDropIndicatorOverlay *const m_controller;
46};
47
48}
49
50}
51
52#endif
Class to abstract QAction, so code still works with QtQuick and Flutter.

© Klarälvdalens Datakonsult AB (KDAB)
"The Qt, C++ and OpenGL Experts"
https://www.kdab.com/
KDDockWidgets
Advanced Dock Widget Framework for Qt
https://www.kdab.com/development-resources/qt-tools/kddockwidgets/
Generated by doxygen 1.9.8