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
view3d_tool.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 VIEW3D_TOOL_H
6#define VIEW3D_TOOL_H
7
9#include "view3d.h"
10
11#include <QtDesigner/qdesignerformwindowtoolinterface.h>
12#include <QtCore/qpointer.h>
13
15
17{
19
20public:
22 QDesignerFormEditorInterface *core() const override;
23 QDesignerFormWindowInterface *formWindow() const override;
24 QWidget *editor() const override;
25
26 QAction *action() const override;
27
28 virtual void activated();
29 virtual void deactivated();
30
31 bool handleEvent(QWidget *widget, QWidget *managedWidget, QEvent *event) override;
32
33private:
34 QDesignerFormWindowInterface *m_formWindow;
35 mutable QPointer<QView3D> m_editor;
36 QAction *m_action;
37};
38
39QT_END_NAMESPACE
40
41#endif // VIEW3D_TOOL_H
void initialize(QDesignerFormEditorInterface *core) override
Initializes the plugin interface for the specified core interface.
QAction * action() const override
Returns the action associated with this interface.
QDesignerFormEditorInterface * core() const override
Returns the core form editor interface associated with this component.
bool isInitialized() const override
Returns true if the plugin interface is initialized; otherwise returns false.
QWidget * editor() const override
QDesignerFormEditorInterface * core() const override
QAction * action() const override
virtual void activated()
virtual void deactivated()
QDesignerFormWindowInterface * formWindow() const override
bool handleEvent(QWidget *widget, QWidget *managedWidget, QEvent *event) override
Combined button and popup list for selecting options.
#define VIEW3D_EXPORT