diff options
Diffstat (limited to 'kexi/plugins/queries/kexiqueryview.cpp')
-rw-r--r-- | kexi/plugins/queries/kexiqueryview.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/kexi/plugins/queries/kexiqueryview.cpp b/kexi/plugins/queries/kexiqueryview.cpp index cf3fee96..cf5400dc 100644 --- a/kexi/plugins/queries/kexiqueryview.cpp +++ b/kexi/plugins/queries/kexiqueryview.cpp @@ -50,8 +50,8 @@ class KexiQueryView::Private //--------------------------------------------------------------------------------- -KexiQueryView::KexiQueryView(KexiMainWindow *win, QWidget *parent, const char *name) - : KexiDataTable(win, parent, name) +KexiQueryView::KexiQueryView(KexiMainWindow *win, TQWidget *tqparent, const char *name) + : KexiDataTable(win, tqparent, name) , d( new Private() ) { tableView()->setInsertingEnabled(false); //default @@ -72,7 +72,7 @@ tristate KexiQueryView::executeQuery(KexiDB::QuerySchema *query) KexiDB::Cursor *oldCursor = d->cursor; KexiDB::debug( query->parameters() ); bool ok; - QValueList<QVariant> params; + TQValueList<TQVariant> params; { KexiUtils::WaitCursorRemover remover; params = KexiQueryParameters::getParameters(this, @@ -83,7 +83,7 @@ tristate KexiQueryView::executeQuery(KexiDB::QuerySchema *query) } d->cursor = mainWin()->project()->dbConnection()->executeQuery(*query, params); if (!d->cursor) { - parentDialog()->setStatus(parentDialog()->mainWin()->project()->dbConnection(), + tqparentDialog()->settqStatus(tqparentDialog()->mainWin()->project()->dbConnection(), i18n("Query executing failed.")); //todo: also provide server result and sql statement return false; @@ -100,7 +100,7 @@ tristate KexiQueryView::executeQuery(KexiDB::QuerySchema *query) tableView()->setReadOnly( true ); //! @todo maybe allow writing and inserting for single-table relations? //set data model itself read-only too - tableView()->data()->setReadOnly( true ); + tableView()->KexiDataAwareObjectInterface::data()->setReadOnly( true ); tableView()->setInsertingEnabled( false ); return true; } @@ -108,13 +108,13 @@ tristate KexiQueryView::executeQuery(KexiDB::QuerySchema *query) tristate KexiQueryView::afterSwitchFrom(int mode) { if (mode==Kexi::NoViewMode) { - KexiDB::QuerySchema *querySchema = static_cast<KexiDB::QuerySchema *>(parentDialog()->schemaData()); + KexiDB::QuerySchema *querySchema = static_cast<KexiDB::QuerySchema *>(tqparentDialog()->schemaData()); const tristate result = executeQuery(querySchema); if (true != result) return result; } else if (mode==Kexi::DesignViewMode || Kexi::TextViewMode) { - KexiQueryPart::TempData * temp = static_cast<KexiQueryPart::TempData*>(parentDialog()->tempData()); + KexiQueryPart::TempData * temp = static_cast<KexiQueryPart::TempData*>(tqparentDialog()->tempData()); //remember what view we should use to store data changes, if needed // if (temp->queryChangedInPreviousView) @@ -131,7 +131,7 @@ tristate KexiQueryView::afterSwitchFrom(int mode) KexiDB::SchemaData* KexiQueryView::storeNewData(const KexiDB::SchemaData& sdata, bool &cancel) { - KexiViewBase * view = parentDialog()->viewThatRecentlySetDirtyFlag(); + KexiViewBase * view = tqparentDialog()->viewThatRecentlySetDirtyFlag(); if (dynamic_cast<KexiQueryDesignerGuiEditor*>(view)) return dynamic_cast<KexiQueryDesignerGuiEditor*>(view)->storeNewData(sdata, cancel); if (dynamic_cast<KexiQueryDesignerSQLView*>(view)) @@ -141,7 +141,7 @@ KexiDB::SchemaData* KexiQueryView::storeNewData(const KexiDB::SchemaData& sdata, tristate KexiQueryView::storeData(bool dontAsk) { - KexiViewBase * view = parentDialog()->viewThatRecentlySetDirtyFlag(); + KexiViewBase * view = tqparentDialog()->viewThatRecentlySetDirtyFlag(); if (dynamic_cast<KexiQueryDesignerGuiEditor*>(view)) return dynamic_cast<KexiQueryDesignerGuiEditor*>(view)->storeData(dontAsk); if (dynamic_cast<KexiQueryDesignerSQLView*>(view)) |