diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-10 22:19:39 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-10 22:19:39 +0000 |
commit | 04766b207afba7961d4d802313e426f5a2fbef63 (patch) | |
tree | c888ea1027c793e2d0386a7e5a1a0cd077b03cb3 /kexi/plugins/reports | |
parent | b6edfe41c9395f2e20784cbf0e630af6426950a3 (diff) | |
download | koffice-04766b207afba7961d4d802313e426f5a2fbef63.tar.gz koffice-04766b207afba7961d4d802313e426f5a2fbef63.zip |
rename the following methods:
tqparent parent
tqmask mask
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/koffice@1246260 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kexi/plugins/reports')
-rw-r--r-- | kexi/plugins/reports/kexireportfactory.cpp | 4 | ||||
-rw-r--r-- | kexi/plugins/reports/kexireportfactory.h | 6 | ||||
-rw-r--r-- | kexi/plugins/reports/kexireportform.cpp | 4 | ||||
-rw-r--r-- | kexi/plugins/reports/kexireportform.h | 2 | ||||
-rw-r--r-- | kexi/plugins/reports/kexireportpart.cpp | 12 | ||||
-rw-r--r-- | kexi/plugins/reports/kexireportpart.h | 6 | ||||
-rw-r--r-- | kexi/plugins/reports/kexireportview.cpp | 10 | ||||
-rw-r--r-- | kexi/plugins/reports/kexireportview.h | 4 | ||||
-rw-r--r-- | kexi/plugins/reports/reportwidgets.cpp | 16 | ||||
-rw-r--r-- | kexi/plugins/reports/reportwidgets.h | 8 |
10 files changed, 36 insertions, 36 deletions
diff --git a/kexi/plugins/reports/kexireportfactory.cpp b/kexi/plugins/reports/kexireportfactory.cpp index d863bc9f..f45b30bf 100644 --- a/kexi/plugins/reports/kexireportfactory.cpp +++ b/kexi/plugins/reports/kexireportfactory.cpp @@ -33,8 +33,8 @@ #include "reportwidgets.h" #include "kexireportfactory.h" -KexiReportFactory::KexiReportFactory(TQObject *tqparent, const char *name, const TQStringList &) - : KFormDesigner::WidgetFactory(tqparent, name) +KexiReportFactory::KexiReportFactory(TQObject *parent, const char *name, const TQStringList &) + : KFormDesigner::WidgetFactory(parent, name) { KFormDesigner::WidgetInfo *wView = new KFormDesigner::WidgetInfo(this); wView->setPixmap("report"); diff --git a/kexi/plugins/reports/kexireportfactory.h b/kexi/plugins/reports/kexireportfactory.h index 1813fce7..e7c5f13a 100644 --- a/kexi/plugins/reports/kexireportfactory.h +++ b/kexi/plugins/reports/kexireportfactory.h @@ -29,11 +29,11 @@ class KexiReportFactory : public KFormDesigner::WidgetFactory TQ_OBJECT public: - KexiReportFactory(TQObject *tqparent, const char *name, const TQStringList &args); + KexiReportFactory(TQObject *parent, const char *name, const TQStringList &args); virtual ~KexiReportFactory(); virtual TQString name(); - virtual TQWidget *createWidget(const TQCString &classname, TQWidget *tqparent, const char *name, KFormDesigner::Container *container, + virtual TQWidget *createWidget(const TQCString &classname, TQWidget *parent, const char *name, KFormDesigner::Container *container, int options = DefaultOptions); virtual bool createMenuActions(const TQCString &classname, TQWidget *w, TQPopupMenu *menu, @@ -42,7 +42,7 @@ class KexiReportFactory : public KFormDesigner::WidgetFactory virtual bool previewWidget(const TQCString &, TQWidget *, KFormDesigner::Container *); //virtual void saveSpecialProperty(const TQString &classname, const TQString &name, const TQVariant &value, TQWidget *w, - //TQDomElement &parentNode, TQDomDocument &tqparent) {} + //TQDomElement &parentNode, TQDomDocument &parent) {} //virtual void readSpecialProperty(const TQCString &classname, TQDomElement &node, TQWidget *w, KFormDesigner::ObjectTreeItem *item) {} virtual TQValueList<TQCString> autoSaveProperties(const TQCString &classname); diff --git a/kexi/plugins/reports/kexireportform.cpp b/kexi/plugins/reports/kexireportform.cpp index 4e04beae..89423b03 100644 --- a/kexi/plugins/reports/kexireportform.cpp +++ b/kexi/plugins/reports/kexireportform.cpp @@ -26,8 +26,8 @@ #include "kexireportform.h" -KexiReportForm::KexiReportForm(TQWidget *tqparent, const char *name/*, KexiDB::Connection *conn*/) - : TQWidget(tqparent, name) +KexiReportForm::KexiReportForm(TQWidget *parent, const char *name/*, KexiDB::Connection *conn*/) + : TQWidget(parent, name) { //m_conn = conn; kexipluginsdbg << "KexiReportForm::KexiReportForm(): " << endl; diff --git a/kexi/plugins/reports/kexireportform.h b/kexi/plugins/reports/kexireportform.h index 9f13fbc9..8813a2c3 100644 --- a/kexi/plugins/reports/kexireportform.h +++ b/kexi/plugins/reports/kexireportform.h @@ -33,7 +33,7 @@ class KEXIREPORTUTILS_EXPORT KexiReportForm : public TQWidget, public KFormDesig TQ_OBJECT public: - KexiReportForm(TQWidget *tqparent, const char *name="kexi_dbform"); + KexiReportForm(TQWidget *parent, const char *name="kexi_dbform"); virtual ~KexiReportForm(); /*TQString datasource() const { return m_ds; } diff --git a/kexi/plugins/reports/kexireportpart.cpp b/kexi/plugins/reports/kexireportpart.cpp index 6b9c6bc3..08c4cf7c 100644 --- a/kexi/plugins/reports/kexireportpart.cpp +++ b/kexi/plugins/reports/kexireportpart.cpp @@ -43,8 +43,8 @@ KFormDesigner::WidgetLibrary* KexiReportPart::static_reportsLibrary = 0L; -KexiReportPart::KexiReportPart(TQObject *tqparent, const char *name, const TQStringList &l) - : KexiPart::Part(tqparent, name, l) +KexiReportPart::KexiReportPart(TQObject *parent, const char *name, const TQStringList &l) + : KexiPart::Part(parent, name, l) { // REGISTERED ID: m_registeredPartID = (int)KexiPart::ReportObjectType; @@ -101,7 +101,7 @@ KexiReportPart::createTempData(KexiDialogBase* dialog) } KexiViewBase* -KexiReportPart::createView(TQWidget *tqparent, KexiDialogBase* dialog, +KexiReportPart::createView(TQWidget *parent, KexiDialogBase* dialog, KexiPart::Item &item, int, TQMap<TQString,TQString>*) { kexipluginsdbg << "KexiReportPart::createView()" << endl; @@ -109,7 +109,7 @@ KexiReportPart::createView(TQWidget *tqparent, KexiDialogBase* dialog, if (!win || !win->project() || !win->project()->dbConnection()) return 0; - KexiReportView *view = new KexiReportView(win, tqparent, item.name().latin1(), + KexiReportView *view = new KexiReportView(win, parent, item.name().latin1(), win->project()->dbConnection() ); return view; @@ -128,8 +128,8 @@ KexiReportPart::i18nMessage(const TQCString& englishMessage, KexiDialogBase* dlg //--------------- -KexiReportPart::TempData::TempData(TQObject* tqparent) - : KexiDialogTempData(tqparent) +KexiReportPart::TempData::TempData(TQObject* parent) + : KexiDialogTempData(parent) { } diff --git a/kexi/plugins/reports/kexireportpart.h b/kexi/plugins/reports/kexireportpart.h index ee93580f..47f9d4ef 100644 --- a/kexi/plugins/reports/kexireportpart.h +++ b/kexi/plugins/reports/kexireportpart.h @@ -45,7 +45,7 @@ class KEXIREPORTUTILS_EXPORT KexiReportPart : public KexiPart::Part TQ_OBJECT public: - KexiReportPart(TQObject *tqparent, const char *name, const TQStringList &); + KexiReportPart(TQObject *parent, const char *name, const TQStringList &); virtual ~KexiReportPart(); //! \return a pointer to Reports Widget Library. @@ -58,7 +58,7 @@ class KEXIREPORTUTILS_EXPORT KexiReportPart : public KexiPart::Part class TempData : public KexiDialogTempData { public: - TempData(TQObject* tqparent); + TempData(TQObject* parent); ~TempData(); TQGuardedPtr<KFormDesigner::Form> form; TQGuardedPtr<KFormDesigner::Form> previewForm; @@ -73,7 +73,7 @@ class KEXIREPORTUTILS_EXPORT KexiReportPart : 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(); diff --git a/kexi/plugins/reports/kexireportview.cpp b/kexi/plugins/reports/kexireportview.cpp index 403c0277..2de5f4a7 100644 --- a/kexi/plugins/reports/kexireportview.cpp +++ b/kexi/plugins/reports/kexireportview.cpp @@ -39,8 +39,8 @@ #define NO_DSWIZARD -KexiReportScrollView::KexiReportScrollView(TQWidget *tqparent, bool preview) - : KexiScrollView(tqparent, preview) +KexiReportScrollView::KexiReportScrollView(TQWidget *parent, bool preview) + : KexiScrollView(parent, preview) { if(preview) { setRecordNavigatorVisible(true); @@ -61,7 +61,7 @@ KexiReportScrollView::show() //now get resize mode settings for entire form if (m_preview) { - KexiReportView* fv = dynamic_cast<KexiReportView*>(tqparent()); + KexiReportView* fv = dynamic_cast<KexiReportView*>(parent()); int resizeMode = fv ? fv->resizeMode() : KexiReportView::ResizeAuto; if (resizeMode == KexiReportView::ResizeAuto) setResizePolicy(AutoOneFit); @@ -80,9 +80,9 @@ KexiReportScrollView::slotResizingStarted() ////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////// -KexiReportView::KexiReportView(KexiMainWindow *win, TQWidget *tqparent, const char *name, +KexiReportView::KexiReportView(KexiMainWindow *win, TQWidget *parent, const char *name, KexiDB::Connection *conn) - : KexiViewBase(win, tqparent, name), m_propertySet(0), m_conn(conn) + : KexiViewBase(win, parent, name), m_propertySet(0), m_conn(conn) , m_resizeMode(KexiReportView::ResizeDefault) { TQHBoxLayout *l = new TQHBoxLayout(this); diff --git a/kexi/plugins/reports/kexireportview.h b/kexi/plugins/reports/kexireportview.h index 2b88c181..df4b3190 100644 --- a/kexi/plugins/reports/kexireportview.h +++ b/kexi/plugins/reports/kexireportview.h @@ -37,7 +37,7 @@ class KEXIREPORTUTILS_EXPORT KexiReportScrollView : public KexiScrollView TQ_OBJECT public: - KexiReportScrollView(TQWidget *tqparent, bool preview); + KexiReportScrollView(TQWidget *parent, bool preview); virtual ~KexiReportScrollView(); void setForm(KFormDesigner::Form *form) { m_form = form; } @@ -73,7 +73,7 @@ class KEXIREPORTUTILS_EXPORT KexiReportView : public KexiViewBase NoResize = 2 /*! @todo */ }; - KexiReportView(KexiMainWindow *win, TQWidget *tqparent, const char *name, KexiDB::Connection *conn); + KexiReportView(KexiMainWindow *win, TQWidget *parent, const char *name, KexiDB::Connection *conn); virtual ~KexiReportView(); KexiDB::Connection* connection() { return m_conn; } diff --git a/kexi/plugins/reports/reportwidgets.cpp b/kexi/plugins/reports/reportwidgets.cpp index c3ca65e4..7cea50a3 100644 --- a/kexi/plugins/reports/reportwidgets.cpp +++ b/kexi/plugins/reports/reportwidgets.cpp @@ -28,16 +28,16 @@ #include "kexireportview.h" #include "reportwidgets.h" -Label::Label(const TQString &text, TQWidget *tqparent, const char *name) -: TQLabel(text, tqparent, name) +Label::Label(const TQString &text, TQWidget *parent, const char *name) +: TQLabel(text, parent, name) { setPaletteBackgroundColor(white); } //////////////////////////////////////////////////////////////////// -ReportLine::ReportLine(TQWidget *tqparent, const char *name) -: TQWidget(tqparent, name) +ReportLine::ReportLine(TQWidget *parent, const char *name) +: TQWidget(parent, name) { m_lineStyle = (ReportLineStyle)TQt::SolidLine; m_lineWidth = 1; @@ -113,8 +113,8 @@ ReportLine::paintEvent (TQPaintEvent *ev) //////////////////////////////////////////////////////////////////// -PicLabel::PicLabel(const TQPixmap &pix, TQWidget *tqparent, const char *name) - : TQLabel(tqparent, name) +PicLabel::PicLabel(const TQPixmap &pix, TQWidget *parent, const char *name) + : TQLabel(parent, name) { setPixmap(pix); setScaledContents(false); @@ -131,8 +131,8 @@ PicLabel::setProperty(const char *name, const TQVariant &value) //////////////////////////////////////////////////////////////////// -KexiSubReport::KexiSubReport(TQWidget *tqparent, const char *name) -: TQScrollView(tqparent, name), m_form(0), m_widget(0) +KexiSubReport::KexiSubReport(TQWidget *parent, const char *name) +: TQScrollView(parent, name), m_form(0), m_widget(0) { setFrameStyle(TQFrame::Plain | TQFrame::Box); viewport()->setPaletteBackgroundColor(white); diff --git a/kexi/plugins/reports/reportwidgets.h b/kexi/plugins/reports/reportwidgets.h index 9e587556..1452f41e 100644 --- a/kexi/plugins/reports/reportwidgets.h +++ b/kexi/plugins/reports/reportwidgets.h @@ -38,7 +38,7 @@ class KexiSubReport : public TQScrollView TQ_PROPERTY(TQString reportName READ reportName WRITE setReportName DESIGNABLE true); public: - KexiSubReport(TQWidget *tqparent, const char *name); + KexiSubReport(TQWidget *parent, const char *name); ~KexiSubReport() {} //! \return the name of the subreport inside the db @@ -59,7 +59,7 @@ class Label : public TQLabel TQ_OBJECT public: - Label(const TQString &text, TQWidget *tqparent, const char *name); + Label(const TQString &text, TQWidget *parent, const char *name); ~Label() {} }; @@ -70,7 +70,7 @@ class PicLabel : public TQLabel TQ_OBJECT public: - PicLabel(const TQPixmap &pix, TQWidget *tqparent, const char *name); + PicLabel(const TQPixmap &pix, TQWidget *parent, const char *name); ~PicLabel() {} virtual bool setProperty(const char *name, const TQVariant &value); @@ -91,7 +91,7 @@ class ReportLine : public TQWidget DashDot = TQt::DashDotLine, DashDotDot = TQt::DashDotDotLine }; enum CapStyle { Flat = TQt::FlatCap, Square = TQt::SquareCap, Round = TQt::RoundCap }; - ReportLine(TQWidget *tqparent, const char *name); + ReportLine(TQWidget *parent, const char *name); ~ReportLine(){;} ReportLineStyle lineStyle() const; |