Changeset View
Changeset View
Standalone View
Standalone View
src/plugins/forms/kexiformview.cpp
Show All 22 Lines | |||||
23 | #include <formeditor/formIO.h> | 23 | #include <formeditor/formIO.h> | ||
24 | #include <formeditor/objecttree.h> | 24 | #include <formeditor/objecttree.h> | ||
25 | #include <formeditor/container.h> | 25 | #include <formeditor/container.h> | ||
26 | #include <formeditor/commands.h> | 26 | #include <formeditor/commands.h> | ||
27 | #include <formeditor/widgetwithsubpropertiesinterface.h> | 27 | #include <formeditor/widgetwithsubpropertiesinterface.h> | ||
28 | #include <formeditor/WidgetTreeWidget.h> | 28 | #include <formeditor/WidgetTreeWidget.h> | ||
29 | #include <kexi.h> | 29 | #include <kexi.h> | ||
30 | #include <kexi_global.h> | 30 | #include <kexi_global.h> | ||
31 | //! @todo KEXI3 Port #include <kexidragobjects.h> | 31 | #include <kexidragobjects.h> | ||
32 | #include <widget/kexiqueryparameters.h> | 32 | #include <widget/kexiqueryparameters.h> | ||
33 | #include <kexiutils/utils.h> | 33 | #include <kexiutils/utils.h> | ||
34 | #include <KexiMainWindowIface.h> | 34 | #include <KexiMainWindowIface.h> | ||
35 | #include "widgets/kexidbform.h" | 35 | #include "widgets/kexidbform.h" | ||
36 | #include "kexiformscrollview.h" | 36 | #include "kexiformscrollview.h" | ||
37 | #include "kexidatasourcepage.h" | 37 | #include "kexidatasourcepage.h" | ||
38 | #include "kexiformmanager.h" | 38 | #include "kexiformmanager.h" | ||
39 | #ifdef KEXI_AUTOFIELD_FORM_WIDGET_SUPPORT | 39 | #ifdef KEXI_AUTOFIELD_FORM_WIDGET_SUPPORT | ||
▲ Show 20 Lines • Show All 1024 Lines • ▼ Show 20 Line(s) | 1061 | if (viewMode() == Kexi::DesignViewMode) { | |||
1064 | const QString dataSource = set->propertyValue("dataSource").toString(); | 1064 | const QString dataSource = set->propertyValue("dataSource").toString(); | ||
1065 | formPart()->dataSourcePage()->setFormDataSource(dataSourcePartClass, dataSource); | 1065 | formPart()->dataSourcePage()->setFormDataSource(dataSourcePartClass, dataSource); | ||
1066 | } | 1066 | } | ||
1067 | } | 1067 | } | ||
1068 | 1068 | | |||
1069 | void | 1069 | void | ||
1070 | KexiFormView::slotHandleDragMoveEvent(QDragMoveEvent* e) | 1070 | KexiFormView::slotHandleDragMoveEvent(QDragMoveEvent* e) | ||
1071 | { | 1071 | { | ||
1072 | Q_UNUSED(e); | 1072 | #ifdef KEXI_AUTOFIELD_FORM_WIDGET_SUPPORT | ||
1073 | /*! @todo KEXI3 Port kexidragobjects.cpp | | |||
1074 | if (KexiFieldDrag::canDecode(e)) { | 1073 | if (KexiFieldDrag::canDecode(e)) { | ||
1075 | e->setAccepted(true); | 1074 | e->setAccepted(true); | ||
1076 | }*/ | 1075 | } | ||
1076 | #else | ||||
1077 | Q_UNUSED(e); | ||||
1078 | #endif | ||||
1077 | } | 1079 | } | ||
1078 | 1080 | | |||
1079 | void | 1081 | void | ||
1080 | KexiFormView::slotHandleDropEvent(QDropEvent* e) | 1082 | KexiFormView::slotHandleDropEvent(QDropEvent* e) | ||
1081 | { | 1083 | { | ||
1082 | #ifdef KEXI_AUTOFIELD_FORM_WIDGET_SUPPORT | 1084 | #ifdef KEXI_AUTOFIELD_FORM_WIDGET_SUPPORT | ||
1083 | const QWidget *targetContainerWidget = dynamic_cast<const QWidget*>(sender()); | 1085 | const QWidget *targetContainerWidget = dynamic_cast<const QWidget*>(sender()); | ||
1084 | KFormDesigner::ObjectTreeItem *targetContainerWidgetItem = targetContainerWidget | 1086 | KFormDesigner::ObjectTreeItem *targetContainerWidgetItem = targetContainerWidget | ||
▲ Show 20 Lines • Show All 208 Lines • Show Last 20 Lines |