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
widgetbox_dnditem.h
Go to the documentation of this file.
1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
3
4#ifndef WIDGETBOX_DNDITEM_H
5#define WIDGETBOX_DNDITEM_H
6
7#include <qdesigner_dnditem_p.h>
9
11
12class QDesignerFormEditorInterface;
13class DomUI;
14
15namespace qdesigner_internal {
16
18{
19public:
20 WidgetBoxDnDItem(QDesignerFormEditorInterface *core,
21 DomUI *dom_ui,
22 const QPoint &global_mouse_pos);
23};
24
25} // namespace qdesigner_internal
26
27QT_END_NAMESPACE
28
29#endif // WIDGETBOX_DNDITEM_H
WidgetBoxDnDItem(QDesignerFormEditorInterface *core, DomUI *dom_ui, const QPoint &global_mouse_pos)
void mousePressEvent(QMouseEvent *event) override
\reimp
Definition widgetbox.cpp:44
void focusInEvent(QFocusEvent *e) override
\reimp
Definition widgetbox.cpp:51
WidgetBoxFilterLineEdit(QWidget *parent=nullptr)
Definition widgetbox.cpp:33
Widget widget(int cat_idx, int wgt_idx) const
void setFileName(const QString &file_name)
void contextMenuEvent(QContextMenuEvent *e) override
void resizeEvent(QResizeEvent *e) override
QIcon iconForWidget(const QString &iconName) const
WidgetBoxTreeWidget(QDesignerFormEditorInterface *core, QWidget *parent=nullptr)
void addWidget(int cat_idx, const Widget &wgt)
bool load(QDesignerWidgetBox::LoadMode loadMode)
void removeWidget(int cat_idx, int wgt_idx)
void dropWidgets(const QList< QDesignerDnDItemInterface * > &item_list)
QString fileName() const override
Returns the name of the XML file \QD is currently using to populate its widget box.
Widget widget(int cat_idx, int wgt_idx) const override
Category category(int cat_idx) const override
bool load() override
Populates \QD's widget box by loading (or reloading) the currently specified XML file.
void dragEnterEvent(QDragEnterEvent *event) override
void dropWidgets(const QList< QDesignerDnDItemInterface * > &item_list, const QPoint &global_mouse_pos) override
void removeCategory(int cat_idx) override
void dragMoveEvent(QDragMoveEvent *event) override
void addWidget(int cat_idx, const Widget &wgt) override
int categoryCount() const override
bool save() override
Saves the contents of \QD's widget box in the file specified by the fileName() function.
void addCategory(const Category &cat) override
QDesignerFormEditorInterface * core() const
Definition widgetbox.cpp:97
int widgetCount(int cat_idx) const override
void removeWidget(int cat_idx, int wgt_idx) override
Combined button and popup list for selecting options.
Auxiliary methods to store/retrieve settings.
static const QDesignerMimeData * checkDragEvent(QDropEvent *event, bool acceptEventsFromWidgetBox)
#define QT_WIDGETBOX_EXPORT