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 | #include "widgets/kexidbautofield.h" | 39 | #include "widgets/kexidbautofield.h" | ||
▲ Show 20 Lines • Show All 1007 Lines • ▼ Show 20 Line(s) | 1044 | if (viewMode() == Kexi::DesignViewMode) { | |||
1047 | const QString dataSource = set->propertyValue("dataSource").toString(); | 1047 | const QString dataSource = set->propertyValue("dataSource").toString(); | ||
1048 | formPart()->dataSourcePage()->setFormDataSource(dataSourcePartClass, dataSource); | 1048 | formPart()->dataSourcePage()->setFormDataSource(dataSourcePartClass, dataSource); | ||
1049 | } | 1049 | } | ||
1050 | } | 1050 | } | ||
1051 | 1051 | | |||
1052 | void | 1052 | void | ||
1053 | KexiFormView::slotHandleDragMoveEvent(QDragMoveEvent* e) | 1053 | KexiFormView::slotHandleDragMoveEvent(QDragMoveEvent* e) | ||
1054 | { | 1054 | { | ||
1055 | Q_UNUSED(e); | 1055 | #ifdef KEXI_AUTOFIELD_FORM_WIDGET_SUPPORT | ||
1056 | /*! @todo KEXI3 Port kexidragobjects.cpp | | |||
1057 | if (KexiFieldDrag::canDecode(e)) { | 1056 | if (KexiFieldDrag::canDecode(e)) { | ||
1058 | e->setAccepted(true); | 1057 | e->setAccepted(true); | ||
1059 | }*/ | 1058 | } | ||
1059 | #else | ||||
1060 | Q_UNUSED(e); | ||||
1061 | #endif | ||||
1060 | } | 1062 | } | ||
1061 | 1063 | | |||
1062 | void | 1064 | void | ||
1063 | KexiFormView::slotHandleDropEvent(QDropEvent* e) | 1065 | KexiFormView::slotHandleDropEvent(QDropEvent* e) | ||
1064 | { | 1066 | { | ||
1065 | #ifdef KEXI_AUTOFIELD_FORM_WIDGET_SUPPORT | 1067 | #ifdef KEXI_AUTOFIELD_FORM_WIDGET_SUPPORT | ||
1066 | const QWidget *targetContainerWidget = dynamic_cast<const QWidget*>(sender()); | 1068 | const QWidget *targetContainerWidget = dynamic_cast<const QWidget*>(sender()); | ||
1067 | KFormDesigner::ObjectTreeItem *targetContainerWidgetItem = targetContainerWidget | 1069 | KFormDesigner::ObjectTreeItem *targetContainerWidgetItem = targetContainerWidget | ||
▲ Show 20 Lines • Show All 208 Lines • Show Last 20 Lines |