Changeset View
Changeset View
Standalone View
Standalone View
src/plugins/queries/kexiquerypart.cpp
Show First 20 Lines • Show All 137 Lines • ▼ Show 20 Line(s) | 133 | if (!query) { | |||
---|---|---|---|---|---|
138 | } | 138 | } | ||
139 | /* Set this to true on data loading loadSchemaObject() to indicate that TextView mode | 139 | /* Set this to true on data loading loadSchemaObject() to indicate that TextView mode | ||
140 | could be used instead of DataView or DesignView, because there are problems | 140 | could be used instead of DataView or DesignView, because there are problems | ||
141 | with opening object. */ | 141 | with opening object. */ | ||
142 | temp->proposeOpeningInTextViewModeBecauseOfProblems = true; | 142 | temp->proposeOpeningInTextViewModeBecauseOfProblems = true; | ||
143 | //! @todo | 143 | //! @todo | ||
144 | return 0; | 144 | return 0; | ||
145 | } | 145 | } | ||
146 | qDebug() << *query; | 146 | qDebug() << KDbConnectionAndQuerySchema( | ||
147 | KexiMainWindowIface::global()->project()->dbConnection(), *query); | ||||
147 | (KDbObject&)*query = object; //copy main attributes | 148 | (KDbObject&)*query = object; //copy main attributes | ||
148 | 149 | | |||
149 | temp->registerTableSchemaChanges(query); | 150 | temp->registerTableSchemaChanges(query); | ||
150 | if (ownedByWindow) | 151 | if (ownedByWindow) | ||
151 | *ownedByWindow = false; | 152 | *ownedByWindow = false; | ||
152 | 153 | | |||
153 | qDebug() << *query; | 154 | qDebug() << KDbConnectionAndQuerySchema( | ||
155 | KexiMainWindowIface::global()->project()->dbConnection(), *query); | ||||
154 | return query; | 156 | return query; | ||
155 | } | 157 | } | ||
156 | 158 | | |||
157 | KDbQuerySchema *KexiQueryPart::currentQuery(KexiView* view) | 159 | KDbQuerySchema *KexiQueryPart::currentQuery(KexiView* view) | ||
158 | { | 160 | { | ||
159 | if (!view) | 161 | if (!view) | ||
160 | return 0; | 162 | return 0; | ||
161 | 163 | | |||
▲ Show 20 Lines • Show All 105 Lines • Show Last 20 Lines |