KDDockWidgets API Documentation  1.5
Separator_qwidget.h
Go to the documentation of this file.
1 /*
2  This file is part of KDDockWidgets.
3 
4  SPDX-FileCopyrightText: 2020-2022 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_MULTISPLITTER_SEPARATORQWIDGET_P_H
13 #define KD_MULTISPLITTER_SEPARATORQWIDGET_P_H
14 
15 #include "kddockwidgets/docks_export.h"
16 #include "Separator_p.h"
17 #include "Widget_qwidget.h"
18 #include "kddockwidgets/Qt5Qt6Compat_p.h"
19 
20 #include <QRubberBand>
21 
22 // clazy:excludeall=ctor-missing-parent-argument
23 
24 namespace Layouting {
25 
26 class DOCKS_EXPORT SeparatorWidget
27  : public QWidget,
28  public Layouting::Separator,
30 {
31  Q_OBJECT
32 public:
33  explicit SeparatorWidget(Layouting::Widget *parent = nullptr);
34 
35 protected:
36  void paintEvent(QPaintEvent *) override;
37  void enterEvent(KDDockWidgets::Qt5Qt6Compat::QEnterEvent *) override;
38  void leaveEvent(QEvent *) override;
39  void mousePressEvent(QMouseEvent *) override;
40  void mouseMoveEvent(QMouseEvent *) override;
41  void mouseReleaseEvent(QMouseEvent *) override;
42  void mouseDoubleClickEvent(QMouseEvent *) override;
43  Widget *createRubberBand(Widget *parent) override;
44  Widget *asWidget() override;
45 };
46 
48 {
49  Q_OBJECT
50 public:
52 };
53 
54 }
55 
56 #endif
Widget_qwidget.h
A Layouting::Widget that's deals in QWidget.
Layouting::RubberBand
Definition: Rubberband_quick.h:26
QWidget
Layouting::SeparatorWidget
Definition: Separator_qwidget.h:30
QMouseEvent
Layouting::Widget_qwidget
A Layouting::Widget that's deals in QWidget Allows to host a QWidget in the layout.
Definition: Widget_qwidget.h:28
Layouting::Widget
An abstraction/wrapper around QWidget, QtQuickItem or anything else.
Definition: Widget.h:79
QEvent
QPaintEvent
QRubberBand
Layouting
Definition: FrameworkWidgetFactory.h:32
Layouting::RubberBand::RubberBand
RubberBand(Layouting::Widget *parent)
Layouting::Widget::parent
QObject * parent() const
Definition: Widget.h:128

© 2019-2022 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 on Mon Mar 7 2022 02:01:21 for KDDockWidgets API Documentation by doxygen 1.8.20