diff options
Diffstat (limited to 'kexi/plugins/queries')
-rw-r--r-- | kexi/plugins/queries/kexiaddparamdialog.cpp | 4 | ||||
-rw-r--r-- | kexi/plugins/queries/kexiaddparamdialog.h | 2 | ||||
-rw-r--r-- | kexi/plugins/queries/kexidynamicqueryparameterdialog.cpp | 4 | ||||
-rw-r--r-- | kexi/plugins/queries/kexidynamicqueryparameterdialog.h | 2 | ||||
-rw-r--r-- | kexi/plugins/queries/kexiquerydesignerguieditor.cpp | 10 | ||||
-rw-r--r-- | kexi/plugins/queries/kexiquerydesignerguieditor.h | 2 | ||||
-rw-r--r-- | kexi/plugins/queries/kexiquerydesignersql.cpp | 4 | ||||
-rw-r--r-- | kexi/plugins/queries/kexiquerydesignersql.h | 2 | ||||
-rw-r--r-- | kexi/plugins/queries/kexiquerydesignersqlhistory.cpp | 4 | ||||
-rw-r--r-- | kexi/plugins/queries/kexiquerydesignersqlhistory.h | 2 | ||||
-rw-r--r-- | kexi/plugins/queries/kexiquerypart.cpp | 20 | ||||
-rw-r--r-- | kexi/plugins/queries/kexiquerypart.h | 8 | ||||
-rw-r--r-- | kexi/plugins/queries/kexiqueryview.cpp | 4 | ||||
-rw-r--r-- | kexi/plugins/queries/kexiqueryview.h | 2 |
14 files changed, 35 insertions, 35 deletions
diff --git a/kexi/plugins/queries/kexiaddparamdialog.cpp b/kexi/plugins/queries/kexiaddparamdialog.cpp index 4b1141be..9b7f5db9 100644 --- a/kexi/plugins/queries/kexiaddparamdialog.cpp +++ b/kexi/plugins/queries/kexiaddparamdialog.cpp @@ -26,8 +26,8 @@ #include "kexiaddparamdialog.moc" #include "kexiaddparamwidget.h" -KexiAddParamDialog::KexiAddParamDialog(TQWidget *tqparent) - : KDialogBase(tqparent, "kexiaddparamdialog", true, i18n("Add Parameter"), KDialogBase::Ok|KDialogBase::Cancel, KDialogBase::Ok, true) +KexiAddParamDialog::KexiAddParamDialog(TQWidget *parent) + : KDialogBase(parent, "kexiaddparamdialog", true, i18n("Add Parameter"), KDialogBase::Ok|KDialogBase::Cancel, KDialogBase::Ok, true) { m_wid=new KexiAddParamWidget(makeVBoxMainWidget()); for (int i=1;i<=KexiDataProvider::Parameter::maxType;i++) diff --git a/kexi/plugins/queries/kexiaddparamdialog.h b/kexi/plugins/queries/kexiaddparamdialog.h index 2aa27bf7..3c543941 100644 --- a/kexi/plugins/queries/kexiaddparamdialog.h +++ b/kexi/plugins/queries/kexiaddparamdialog.h @@ -30,7 +30,7 @@ class KexiAddParamDialog : public KDialogBase TQ_OBJECT public: - KexiAddParamDialog(TQWidget *tqparent); + KexiAddParamDialog(TQWidget *parent); virtual ~KexiAddParamDialog(); TQString parameterName(); int parameterType(); diff --git a/kexi/plugins/queries/kexidynamicqueryparameterdialog.cpp b/kexi/plugins/queries/kexidynamicqueryparameterdialog.cpp index 938d407f..555a84cf 100644 --- a/kexi/plugins/queries/kexidynamicqueryparameterdialog.cpp +++ b/kexi/plugins/queries/kexidynamicqueryparameterdialog.cpp @@ -27,9 +27,9 @@ #include <tqlineedit.h> #include <tqobjectlist.h> -KexiDynamicQueryParameterDialog::KexiDynamicQueryParameterDialog(TQWidget *tqparent, +KexiDynamicQueryParameterDialog::KexiDynamicQueryParameterDialog(TQWidget *parent, KexiDataProvider::Parameters *values, const KexiDataProvider::ParameterList &list): - KDialogBase(tqparent, "paramddialog", true, i18n("Query Parameters"), + KDialogBase(parent, "paramddialog", true, i18n("Query Parameters"), KDialogBase::Ok|KDialogBase::Cancel, KDialogBase::Ok, true ) { m_values=values; diff --git a/kexi/plugins/queries/kexidynamicqueryparameterdialog.h b/kexi/plugins/queries/kexidynamicqueryparameterdialog.h index 60137c1f..afa9163d 100644 --- a/kexi/plugins/queries/kexidynamicqueryparameterdialog.h +++ b/kexi/plugins/queries/kexidynamicqueryparameterdialog.h @@ -31,7 +31,7 @@ class KexiDynamicQueryParameterDialog : public KDialogBase Q_OBJECT TQ_OBJECT public: - KexiDynamicQueryParameterDialog(TQWidget *tqparent,KexiDataProvider::Parameters *, const KexiDataProvider::ParameterList &); + KexiDynamicQueryParameterDialog(TQWidget *parent,KexiDataProvider::Parameters *, const KexiDataProvider::ParameterList &); virtual ~KexiDynamicQueryParameterDialog(); protected: diff --git a/kexi/plugins/queries/kexiquerydesignerguieditor.cpp b/kexi/plugins/queries/kexiquerydesignerguieditor.cpp index be16b70d..e215ab90 100644 --- a/kexi/plugins/queries/kexiquerydesignerguieditor.cpp +++ b/kexi/plugins/queries/kexiquerydesignerguieditor.cpp @@ -139,8 +139,8 @@ static bool sortingAllowed(const TQString& fieldName, const TQString& tableName) //========================================================= KexiQueryDesignerGuiEditor::KexiQueryDesignerGuiEditor( - KexiMainWindow *mainWin, TQWidget *tqparent, const char *name) - : KexiViewBase(mainWin, tqparent, name) + KexiMainWindow *mainWin, TQWidget *parent, const char *name) + : KexiViewBase(mainWin, parent, name) , d( new Private() ) { d->conn = mainWin->project()->dbConnection(); @@ -916,8 +916,8 @@ void KexiQueryDesignerGuiEditor::showFieldsOrRelationsForQueryInternal( if (!criteriaArgument) {//try table.field criteriaArgument = criterias[tableName+"."+fieldName]; } - if (criteriaArgument) {//criteria expression is just a tqparent of argument - criteriaExpr = criteriaArgument->tqparent()->toBinary(); + if (criteriaArgument) {//criteria expression is just a parent of argument + criteriaExpr = criteriaArgument->parent()->toBinary(); usedCriterias.insert(criteriaArgument, (char*)1); //save info. about used criteria } } @@ -1002,7 +1002,7 @@ void KexiQueryDesignerGuiEditor::showFieldsOrRelationsForQueryInternal( if (usedCriterias[it.current()]) continue; //unused: append a new row - KexiDB::BinaryExpr *criteriaExpr = criteriaArgument->tqparent()->toBinary(); + KexiDB::BinaryExpr *criteriaExpr = criteriaArgument->parent()->toBinary(); if (!criteriaExpr) { kexipluginswarn << "KexiQueryDesignerGuiEditor::showFieldsOrRelationsForQueryInternal(): " "criteriaExpr is not a binary expr" << endl; diff --git a/kexi/plugins/queries/kexiquerydesignerguieditor.h b/kexi/plugins/queries/kexiquerydesignerguieditor.h index 587e60a6..c97c140d 100644 --- a/kexi/plugins/queries/kexiquerydesignerguieditor.h +++ b/kexi/plugins/queries/kexiquerydesignerguieditor.h @@ -62,7 +62,7 @@ class KexiQueryDesignerGuiEditor : public KexiViewBase TQ_OBJECT public: - KexiQueryDesignerGuiEditor(KexiMainWindow *mainWin, TQWidget *tqparent, const char *name = 0); + KexiQueryDesignerGuiEditor(KexiMainWindow *mainWin, TQWidget *parent, const char *name = 0); virtual ~KexiQueryDesignerGuiEditor(); // KexiDB::QuerySchema *schema(); diff --git a/kexi/plugins/queries/kexiquerydesignersql.cpp b/kexi/plugins/queries/kexiquerydesignersql.cpp index e6eb9835..37fab0e6 100644 --- a/kexi/plugins/queries/kexiquerydesignersql.cpp +++ b/kexi/plugins/queries/kexiquerydesignersql.cpp @@ -99,8 +99,8 @@ class KexiQueryDesignerSQLView::Private //=================== -KexiQueryDesignerSQLView::KexiQueryDesignerSQLView(KexiMainWindow *mainWin, TQWidget *tqparent, const char *name) - : KexiViewBase(mainWin, tqparent, name) +KexiQueryDesignerSQLView::KexiQueryDesignerSQLView(KexiMainWindow *mainWin, TQWidget *parent, const char *name) + : KexiViewBase(mainWin, parent, name) , d( new Private() ) { d->splitter = new TQSplitter(this); diff --git a/kexi/plugins/queries/kexiquerydesignersql.h b/kexi/plugins/queries/kexiquerydesignersql.h index ae07d457..fe535b0d 100644 --- a/kexi/plugins/queries/kexiquerydesignersql.h +++ b/kexi/plugins/queries/kexiquerydesignersql.h @@ -38,7 +38,7 @@ class KexiQueryDesignerSQLView : public KexiViewBase TQ_OBJECT public: - KexiQueryDesignerSQLView(KexiMainWindow *mainWin, TQWidget *tqparent, const char *name = 0); + KexiQueryDesignerSQLView(KexiMainWindow *mainWin, TQWidget *parent, const char *name = 0); virtual ~KexiQueryDesignerSQLView(); TQString sqlText() const; diff --git a/kexi/plugins/queries/kexiquerydesignersqlhistory.cpp b/kexi/plugins/queries/kexiquerydesignersqlhistory.cpp index 0321ff2b..7cc62620 100644 --- a/kexi/plugins/queries/kexiquerydesignersqlhistory.cpp +++ b/kexi/plugins/queries/kexiquerydesignersqlhistory.cpp @@ -31,8 +31,8 @@ #include "kexiquerydesignersqlhistory.h" -KexiQueryDesignerSQLHistory::KexiQueryDesignerSQLHistory(TQWidget *tqparent, const char *name) - : TQScrollView(tqparent, name) +KexiQueryDesignerSQLHistory::KexiQueryDesignerSQLHistory(TQWidget *parent, const char *name) + : TQScrollView(parent, name) { viewport()->setPaletteBackgroundColor(white); diff --git a/kexi/plugins/queries/kexiquerydesignersqlhistory.h b/kexi/plugins/queries/kexiquerydesignersqlhistory.h index 6709a22f..a6d55285 100644 --- a/kexi/plugins/queries/kexiquerydesignersqlhistory.h +++ b/kexi/plugins/queries/kexiquerydesignersqlhistory.h @@ -65,7 +65,7 @@ class KexiQueryDesignerSQLHistory : public TQScrollView TQ_OBJECT public: - KexiQueryDesignerSQLHistory(TQWidget *tqparent, const char *name=0); + KexiQueryDesignerSQLHistory(TQWidget *parent, const char *name=0); virtual ~KexiQueryDesignerSQLHistory(); KPopupMenu* popupMenu() const; diff --git a/kexi/plugins/queries/kexiquerypart.cpp b/kexi/plugins/queries/kexiquerypart.cpp index c9ce5755..d0c71eae 100644 --- a/kexi/plugins/queries/kexiquerypart.cpp +++ b/kexi/plugins/queries/kexiquerypart.cpp @@ -37,8 +37,8 @@ //------------------------------------------------ -KexiQueryPart::KexiQueryPart(TQObject *tqparent, const char *name, const TQStringList &l) - : KexiPart::Part(tqparent, name, l) +KexiQueryPart::KexiQueryPart(TQObject *parent, const char *name, const TQStringList &l) + : KexiPart::Part(parent, name, l) { // REGISTERED ID: m_registeredPartID = (int)KexiPart::QueryObjectType; @@ -65,18 +65,18 @@ KexiQueryPart::createTempData(KexiDialogBase* dialog) } KexiViewBase* -KexiQueryPart::createView(TQWidget *tqparent, KexiDialogBase* dialog, KexiPart::Item &item, int viewMode, TQMap<TQString,TQString>*) +KexiQueryPart::createView(TQWidget *parent, 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(), tqparent, "dataview"); + return new KexiQueryView(dialog->mainWin(), parent, "dataview"); } else if (viewMode == Kexi::DesignViewMode) { KexiQueryDesignerGuiEditor* view = new KexiQueryDesignerGuiEditor( - dialog->mainWin(), tqparent, "guieditor"); + dialog->mainWin(), parent, "guieditor"); //needed for updating tables combo box: KexiProject *prj = dialog->mainWin()->project(); connect(prj, TQT_SIGNAL(newItemStored(KexiPart::Item&)), @@ -91,7 +91,7 @@ KexiQueryPart::createView(TQWidget *tqparent, KexiDialogBase* dialog, KexiPart:: return view; } else if (viewMode == Kexi::TextViewMode) { - return new KexiQueryDesignerSQLView(dialog->mainWin(), tqparent, "sqldesigner"); + return new KexiQueryDesignerSQLView(dialog->mainWin(), parent, "sqldesigner"); } return 0; @@ -213,8 +213,8 @@ tristate KexiQueryPart::rename(KexiMainWindow *win, KexiPart::Item &item, const //---------------- -KexiQueryPart::TempData::TempData(KexiDialogBase* tqparent, KexiDB::Connection *conn) - : KexiDialogTempData(TQT_TQOBJECT(tqparent)) +KexiQueryPart::TempData::TempData(KexiDialogBase* parent, KexiDB::Connection *conn) + : KexiDialogTempData(TQT_TQOBJECT(parent)) , 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*>(TQT_TQWIDGET(tqparent())); + KexiDialogBase* dlg = static_cast<KexiDialogBase*>(TQT_TQWIDGET(parent())); 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*>(TQT_TQWIDGET(tqparent()))->schemaData() != static_cast<KexiDB::SchemaData*>( m_query ))) + && (static_cast<KexiDialogBase*>(TQT_TQWIDGET(parent()))->schemaData() != static_cast<KexiDB::SchemaData*>( m_query ))) { delete m_query; } diff --git a/kexi/plugins/queries/kexiquerypart.h b/kexi/plugins/queries/kexiquerypart.h index aee905e6..1fb2063c 100644 --- a/kexi/plugins/queries/kexiquerypart.h +++ b/kexi/plugins/queries/kexiquerypart.h @@ -47,7 +47,7 @@ class KexiQueryPart : public KexiPart::Part TQ_OBJECT public: - KexiQueryPart(TQObject *tqparent, const char *name, const TQStringList &); + KexiQueryPart(TQObject *parent, const char *name, const TQStringList &); virtual ~KexiQueryPart(); virtual bool remove(KexiMainWindow *win, KexiPart::Item &item); @@ -57,7 +57,7 @@ class KexiQueryPart : public KexiPart::Part public KexiDB::Connection::TableSchemaChangeListenerInterface { public: - TempData(KexiDialogBase* tqparent, KexiDB::Connection *conn); + TempData(KexiDialogBase* parent, KexiDB::Connection *conn); virtual ~TempData(); virtual tristate closeListener(); void clearQuery(); @@ -66,7 +66,7 @@ class KexiQueryPart : public KexiPart::Part /*! Assigns query \a query for this data. Existing query (available using query()) is deleted but only - if it is not owned by tqparent dialog (i.e. != KexiDialogBase::schemaData()). + if it is not owned by parent dialog (i.e. != KexiDialogBase::schemaData()). \a query can be 0. If \a query is equal to existing query, nothing is performed. */ @@ -102,7 +102,7 @@ class KexiQueryPart : public KexiPart::Part protected: virtual KexiDialogTempData* createTempData(KexiDialogBase* dialog); - virtual KexiViewBase* createView(TQWidget *tqparent, KexiDialogBase* dialog, + virtual KexiViewBase* createView(TQWidget *parent, KexiDialogBase* dialog, KexiPart::Item &item, int viewMode = Kexi::DataViewMode, TQMap<TQString,TQString>* staticObjectArgs = 0); // virtual void initPartActions( KActionCollection *col ); diff --git a/kexi/plugins/queries/kexiqueryview.cpp b/kexi/plugins/queries/kexiqueryview.cpp index 9d7cc542..c57224ea 100644 --- a/kexi/plugins/queries/kexiqueryview.cpp +++ b/kexi/plugins/queries/kexiqueryview.cpp @@ -50,8 +50,8 @@ class KexiQueryView::Private //--------------------------------------------------------------------------------- -KexiQueryView::KexiQueryView(KexiMainWindow *win, TQWidget *tqparent, const char *name) - : KexiDataTable(win, tqparent, name) +KexiQueryView::KexiQueryView(KexiMainWindow *win, TQWidget *parent, const char *name) + : KexiDataTable(win, parent, name) , d( new Private() ) { tableView()->setInsertingEnabled(false); //default diff --git a/kexi/plugins/queries/kexiqueryview.h b/kexi/plugins/queries/kexiqueryview.h index b1f183ad..e089bfc4 100644 --- a/kexi/plugins/queries/kexiqueryview.h +++ b/kexi/plugins/queries/kexiqueryview.h @@ -35,7 +35,7 @@ class KexiQueryView : public KexiDataTable TQ_OBJECT public: - KexiQueryView(KexiMainWindow *win, TQWidget *tqparent, const char *name=0); + KexiQueryView(KexiMainWindow *win, TQWidget *parent, const char *name=0); ~KexiQueryView(); protected: |