Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qcolumnviewgrip_p.h
Go to the documentation of this file.
1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3// Qt-Security score:significant reason:default
4
5#ifndef QCOLUMNVIEWGRIP_P_H
6#define QCOLUMNVIEWGRIP_P_H
7
8//
9// W A R N I N G
10// -------------
11//
12// This file is not part of the Qt API. It exists for the convenience
13// of other Qt classes. This header file may change from version to
14// version without notice, or even be removed.
15//
16// We mean it.
17//
18
19#include <QtWidgets/private/qtwidgetsglobal_p.h>
20#include <private/qwidget_p.h>
21
23
24QT_BEGIN_NAMESPACE
25
26class QColumnViewGripPrivate;
27
28class Q_AUTOTEST_EXPORT QColumnViewGrip : public QWidget {
29
30Q_OBJECT
31
32Q_SIGNALS:
33 void gripMoved(int offset);
34
35public:
36 explicit QColumnViewGrip(QWidget *parent = nullptr);
37 ~QColumnViewGrip();
38 int moveGrip(int offset);
39
40protected:
41 QColumnViewGrip(QColumnViewGripPrivate &, QWidget *parent = nullptr, Qt::WindowFlags f = { });
42 void paintEvent(QPaintEvent *event) override;
43 void mouseDoubleClickEvent(QMouseEvent *event) override;
44 void mouseMoveEvent(QMouseEvent *event) override;
45 void mouseReleaseEvent(QMouseEvent *event) override;
46 void mousePressEvent(QMouseEvent *event) override;
47
48private:
49 Q_DECLARE_PRIVATE(QColumnViewGrip)
50 Q_DISABLE_COPY_MOVE(QColumnViewGrip)
51};
52
54{
55 Q_DECLARE_PUBLIC(QColumnViewGrip)
56
57public:
60
62};
63
64QT_END_NAMESPACE
65
66#endif //QCOLUMNVIEWGRIP_P_H
QT_REQUIRE_CONFIG(columnview)