19 Q_DISABLE_COPY_MOVE(QDesignerFormWindowCursorInterface)
41 QDesignerFormWindowCursorInterface() =
default;
42 virtual ~QDesignerFormWindowCursorInterface() =
default;
44 virtual QDesignerFormWindowInterface *formWindow()
const = 0;
46 virtual bool movePosition(MoveOperation op, MoveMode mode = MoveAnchor) = 0;
48 virtual int position()
const = 0;
49 virtual void setPosition(
int pos, MoveMode mode = MoveAnchor) = 0;
51 virtual QWidget *current()
const = 0;
53 virtual int widgetCount()
const = 0;
54 virtual QWidget *widget(
int index)
const = 0;
56 virtual bool hasSelection()
const = 0;
57 virtual int selectedWidgetCount()
const = 0;
58 virtual QWidget *selectedWidget(
int index)
const = 0;
60 virtual void setProperty(
const QString &name,
const QVariant &value) = 0;
61 virtual void setWidgetProperty(QWidget *widget,
const QString &name,
const QVariant &value) = 0;
62 virtual void resetWidgetProperty(QWidget *widget,
const QString &name) = 0;
64 bool isWidgetSelected(QWidget *widget)
const;