diff options
Diffstat (limited to 'kexi/plugins/queries/kexiquerypart.cpp')
-rw-r--r-- | kexi/plugins/queries/kexiquerypart.cpp | 50 |
1 files changed, 25 insertions, 25 deletions
diff --git a/kexi/plugins/queries/kexiquerypart.cpp b/kexi/plugins/queries/kexiquerypart.cpp index 6cecfcf1..c9ce5755 100644 --- a/kexi/plugins/queries/kexiquerypart.cpp +++ b/kexi/plugins/queries/kexiquerypart.cpp @@ -37,8 +37,8 @@ //------------------------------------------------ -KexiQueryPart::KexiQueryPart(QObject *parent, const char *name, const QStringList &l) - : KexiPart::Part(parent, name, l) +KexiQueryPart::KexiQueryPart(TQObject *tqparent, const char *name, const TQStringList &l) + : KexiPart::Part(tqparent, name, l) { // REGISTERED ID: m_registeredPartID = (int)KexiPart::QueryObjectType; @@ -65,33 +65,33 @@ KexiQueryPart::createTempData(KexiDialogBase* dialog) } KexiViewBase* -KexiQueryPart::createView(QWidget *parent, KexiDialogBase* dialog, KexiPart::Item &item, int viewMode, QMap<QString,QString>*) +KexiQueryPart::createView(TQWidget *tqparent, KexiDialogBase* dialog, KexiPart::Item &item, int viewMode, TQMap<TQString,TQString>*) { Q_UNUSED( item ); kdDebug() << "KexiQueryPart::createView()" << endl; if (viewMode == Kexi::DataViewMode) { - return new KexiQueryView(dialog->mainWin(), parent, "dataview"); + return new KexiQueryView(dialog->mainWin(), tqparent, "dataview"); } else if (viewMode == Kexi::DesignViewMode) { KexiQueryDesignerGuiEditor* view = new KexiQueryDesignerGuiEditor( - dialog->mainWin(), parent, "guieditor"); + dialog->mainWin(), tqparent, "guieditor"); //needed for updating tables combo box: KexiProject *prj = dialog->mainWin()->project(); - connect(prj, SIGNAL(newItemStored(KexiPart::Item&)), - view, SLOT(slotNewItemStored(KexiPart::Item&))); - connect(prj, SIGNAL(itemRemoved(const KexiPart::Item&)), - view, SLOT(slotItemRemoved(const KexiPart::Item&))); - connect(prj, SIGNAL(itemRenamed(const KexiPart::Item&, const QCString&)), - view, SLOT(slotItemRenamed(const KexiPart::Item&, const QCString&))); - -// connect(dialog->mainWin()->project(), SIGNAL(tableCreated(KexiDB::TableSchema&)), -// view, SLOT(slotTableCreated(KexiDB::TableSchema&))); + connect(prj, TQT_SIGNAL(newItemStored(KexiPart::Item&)), + view, TQT_SLOT(slotNewItemStored(KexiPart::Item&))); + connect(prj, TQT_SIGNAL(itemRemoved(const KexiPart::Item&)), + view, TQT_SLOT(slotItemRemoved(const KexiPart::Item&))); + connect(prj, TQT_SIGNAL(itemRenamed(const KexiPart::Item&, const TQCString&)), + view, TQT_SLOT(slotItemRenamed(const KexiPart::Item&, const TQCString&))); + +// connect(dialog->mainWin()->project(), TQT_SIGNAL(tableCreated(KexiDB::TableSchema&)), +// view, TQT_SLOT(slotTableCreated(KexiDB::TableSchema&))); return view; } else if (viewMode == Kexi::TextViewMode) { - return new KexiQueryDesignerSQLView(dialog->mainWin(), parent, "sqldesigner"); + return new KexiQueryDesignerSQLView(dialog->mainWin(), tqparent, "sqldesigner"); } return 0; @@ -128,9 +128,9 @@ void KexiQueryPart::initInstanceActions( int mode, KActionCollection *col ) else if (mode==Kexi::DesignViewMode) { } else if (mode==Kexi::TextViewMode) { -// new KAction(i18n("Check Query"), "test_it", 0, this, SLOT(slotCheckQuery()), col, "querypart_check_query"); +// new KAction(i18n("Check Query"), "test_it", 0, this, TQT_SLOT(slotCheckQuery()), col, "querypart_check_query"); -//TODO new KAction(i18n("Execute Query"), "?????", 0, this, SLOT(checkQuery()), col, "querypart_execute_query"); +//TODO new KAction(i18n("Execute Query"), "?????", 0, this, TQT_SLOT(checkQuery()), col, "querypart_execute_query"); } } #endif @@ -141,7 +141,7 @@ void KexiQueryPart::initPartActions() void KexiQueryPart::initInstanceActions() { -// new KAction(i18n("Check Query"), "test_it", 0, this, SLOT(slotCheckQuery()), +// new KAction(i18n("Check Query"), "test_it", 0, this, TQT_SLOT(slotCheckQuery()), // m_instanceGuiClients[Kexi::DesignViewMode]->actionCollection(), "querypart_check_query"); KAction *a = createSharedAction(Kexi::TextViewMode, i18n("Check Query"), "test_it", @@ -161,7 +161,7 @@ KexiDB::SchemaData* KexiQueryPart::loadSchemaData(KexiDialogBase *dlg, const KexiDB::SchemaData& sdata, int viewMode) { KexiQueryPart::TempData * temp = static_cast<KexiQueryPart::TempData*>(dlg->tempData()); - QString sqlText; + TQString sqlText; if (!loadDataBlock( dlg, sqlText, "sql" )) { return 0; } @@ -191,7 +191,7 @@ KexiQueryPart::loadSchemaData(KexiDialogBase *dlg, const KexiDB::SchemaData& sda return query; } -QString KexiQueryPart::i18nMessage(const QCString& englishMessage, KexiDialogBase* dlg) const +TQString KexiQueryPart::i18nMessage(const TQCString& englishMessage, KexiDialogBase* dlg) const { Q_UNUSED(dlg); if (englishMessage=="Design of object \"%1\" has been modified.") @@ -202,7 +202,7 @@ QString KexiQueryPart::i18nMessage(const QCString& englishMessage, KexiDialogBas return englishMessage; } -tristate KexiQueryPart::rename(KexiMainWindow *win, KexiPart::Item &item, const QString& newName) +tristate KexiQueryPart::rename(KexiMainWindow *win, KexiPart::Item &item, const TQString& newName) { Q_UNUSED(newName); if (!win->project()->dbConnection()) @@ -213,8 +213,8 @@ tristate KexiQueryPart::rename(KexiMainWindow *win, KexiPart::Item &item, const //---------------- -KexiQueryPart::TempData::TempData(KexiDialogBase* parent, KexiDB::Connection *conn) - : KexiDialogTempData(parent) +KexiQueryPart::TempData::TempData(KexiDialogBase* tqparent, KexiDB::Connection *conn) + : KexiDialogTempData(TQT_TQOBJECT(tqparent)) , KexiDB::Connection::TableSchemaChangeListenerInterface() , queryChangedInPreviousView(false) , m_query(0) @@ -253,7 +253,7 @@ void KexiQueryPart::TempData::registerTableSchemaChanges(KexiDB::QuerySchema *q) tristate KexiQueryPart::TempData::closeListener() { - KexiDialogBase* dlg = static_cast<KexiDialogBase*>(parent()); + KexiDialogBase* dlg = static_cast<KexiDialogBase*>(TQT_TQWIDGET(tqparent())); return dlg->mainWin()->closeDialog(dlg); } @@ -270,7 +270,7 @@ void KexiQueryPart::TempData::setQuery(KexiDB::QuerySchema *query) return; if (m_query /* query not owned by dialog */ - && (static_cast<KexiDialogBase*>(parent())->schemaData() != static_cast<KexiDB::SchemaData*>( m_query ))) + && (static_cast<KexiDialogBase*>(TQT_TQWIDGET(tqparent()))->schemaData() != static_cast<KexiDB::SchemaData*>( m_query ))) { delete m_query; } |