4#ifndef WIDGETSELECTION_H
5#define WIDGETSELECTION_H
8#include <invisible_widget_p.h>
10#include <QtCore/qhash.h>
11#include <QtCore/qpointer.h>
15class QDesignerFormEditorInterface;
49 QDesignerFormEditorInterface *
core()
const;
58 void changeGridLayoutItemSpan();
59 void changeFormLayoutItemSpan();
60 void trySetGeometry(
QWidget *w,
int x,
int y,
int width,
int height);
61 void tryResize(
QWidget *w,
int width,
int height);
66 QPoint m_origPressPos;
69 QRect m_geom, m_origGeom;
90 QDesignerFormEditorInterface *
core()
const;
92 bool eventFilter(QObject *object, QEvent *event)
override;
99 QPointer<QWidget> m_widget;
QDesignerResource(FormWindow *fw)
Combined button and popup list for selecting options.
Auxiliary methods to store/retrieve settings.
static unsigned mouseFlags(Qt::KeyboardModifiers mod)
static void insertNames(const QDesignerMetaDataBaseInterface *metaDataBase, Iterator it, const Iterator &end, QObject *excludedObject, QSet< QString > &nameSet)
static void clearObjectInspectorSelection(const QDesignerFormEditorInterface *core)
static bool canDragWidgetInLayout(const QDesignerFormEditorInterface *core, QWidget *w)
@ ToggleSelectionModifier
static bool isDescendant(const QWidget *parent, const QWidget *child)
static QSet< QString > languageKeywords()
static QWidget * findSelectedParent(QDesignerFormWindowInterface *fw, const QWidget *w, bool selected)
#define QDESIGNER_SHARED_EXPORT
QRect apply(QRect rect) const