diff options
Diffstat (limited to 'kexi/widget/utils')
21 files changed, 63 insertions, 63 deletions
diff --git a/kexi/widget/utils/kexiarrowtip.cpp b/kexi/widget/utils/kexiarrowtip.cpp index 2c6f86aa..fa5c35ab 100644 --- a/kexi/widget/utils/kexiarrowtip.cpp +++ b/kexi/widget/utils/kexiarrowtip.cpp @@ -30,8 +30,8 @@ #include <kexiutils/utils.h> -KexiArrowTip::KexiArrowTip(const TQString& text, TQWidget* tqparent) - : KexiToolTip(text, tqparent) +KexiArrowTip::KexiArrowTip(const TQString& text, TQWidget* parent) + : KexiToolTip(text, parent) , m_opacity(0.0) { TQPalette pal( palette() ); @@ -49,7 +49,7 @@ KexiArrowTip::KexiArrowTip(const TQString& text, TQWidget* tqparent) setAutoMask( false ); - //generate tqmask + //generate mask TQPixmap maskPm(size()); maskPm.fill( black ); TQPainter maskPainter(&maskPm); diff --git a/kexi/widget/utils/kexiarrowtip.h b/kexi/widget/utils/kexiarrowtip.h index 791535fa..f4d87d41 100644 --- a/kexi/widget/utils/kexiarrowtip.h +++ b/kexi/widget/utils/kexiarrowtip.h @@ -31,7 +31,7 @@ class KEXIGUIUTILS_EXPORT KexiArrowTip : public KexiToolTip Q_OBJECT TQ_OBJECT public: - KexiArrowTip(const TQString& text, TQWidget* tqparent); + KexiArrowTip(const TQString& text, TQWidget* parent); virtual ~KexiArrowTip(); inline TQString text() const { return m_value.toString(); } diff --git a/kexi/widget/utils/kexicomboboxdropdownbutton.cpp b/kexi/widget/utils/kexicomboboxdropdownbutton.cpp index b5c22372..777fea1b 100644 --- a/kexi/widget/utils/kexicomboboxdropdownbutton.cpp +++ b/kexi/widget/utils/kexicomboboxdropdownbutton.cpp @@ -26,8 +26,8 @@ #include <tqstyle.h> #include <tqapplication.h> -KexiComboBoxDropDownButton::KexiComboBoxDropDownButton( TQWidget *tqparent ) - : KPushButton(tqparent) +KexiComboBoxDropDownButton::KexiComboBoxDropDownButton( TQWidget *parent ) + : KPushButton(parent) { m_paintedCombo = new KComboBox(this); m_paintedCombo->hide(); diff --git a/kexi/widget/utils/kexicomboboxdropdownbutton.h b/kexi/widget/utils/kexicomboboxdropdownbutton.h index 970e46c3..f480de74 100644 --- a/kexi/widget/utils/kexicomboboxdropdownbutton.h +++ b/kexi/widget/utils/kexicomboboxdropdownbutton.h @@ -30,7 +30,7 @@ class KComboBox; class KEXIGUIUTILS_EXPORT KexiComboBoxDropDownButton : public KPushButton { public: - KexiComboBoxDropDownButton( TQWidget *tqparent ); + KexiComboBoxDropDownButton( TQWidget *parent ); virtual ~KexiComboBoxDropDownButton(); protected: diff --git a/kexi/widget/utils/kexicontextmenuutils.cpp b/kexi/widget/utils/kexicontextmenuutils.cpp index f882f6fa..3c6b22f0 100644 --- a/kexi/widget/utils/kexicontextmenuutils.cpp +++ b/kexi/widget/utils/kexicontextmenuutils.cpp @@ -39,8 +39,8 @@ class KexiImageContextMenu::Private { public: - Private(TQWidget *tqparent) - : actionCollection(tqparent) + Private(TQWidget *parent) + : actionCollection(parent) { } @@ -55,8 +55,8 @@ public: //------------ -KexiImageContextMenu::KexiImageContextMenu(TQWidget* tqparent) - : KPopupMenu(tqparent) +KexiImageContextMenu::KexiImageContextMenu(TQWidget* parent) + : KPopupMenu(parent) , d( new Private(this) ) { setName("KexiImageContextMenu"); diff --git a/kexi/widget/utils/kexicontextmenuutils.h b/kexi/widget/utils/kexicontextmenuutils.h index 2f73b18e..50bb96a0 100644 --- a/kexi/widget/utils/kexicontextmenuutils.h +++ b/kexi/widget/utils/kexicontextmenuutils.h @@ -53,7 +53,7 @@ class KEXIGUIUTILS_EXPORT KexiImageContextMenu : public KPopupMenu TQ_OBJECT public: - KexiImageContextMenu(TQWidget *tqparent); + KexiImageContextMenu(TQWidget *parent); virtual ~KexiImageContextMenu(); KActionCollection* actionCollection() const; diff --git a/kexi/widget/utils/kexidatetimeformatter.cpp b/kexi/widget/utils/kexidatetimeformatter.cpp index 1e7b9bc9..8f4d0b96 100644 --- a/kexi/widget/utils/kexidatetimeformatter.cpp +++ b/kexi/widget/utils/kexidatetimeformatter.cpp @@ -317,9 +317,9 @@ TQString KexiTimeFormatter::timeToString( const TQTime& time ) const TQString dateTimeInputMask(const KexiDateFormatter& dateFormatter, const KexiTimeFormatter& timeFormatter) { - TQString tqmask(dateFormatter.inputMask()); - tqmask.truncate(dateFormatter.inputMask().length()-2); - return tqmask + " " + timeFormatter.inputMask(); + TQString mask(dateFormatter.inputMask()); + mask.truncate(dateFormatter.inputMask().length()-2); + return mask + " " + timeFormatter.inputMask(); } TQDateTime stringToDateTime( diff --git a/kexi/widget/utils/kexidatetimeformatter.h b/kexi/widget/utils/kexidatetimeformatter.h index 1340320b..f011a0e2 100644 --- a/kexi/widget/utils/kexidatetimeformatter.h +++ b/kexi/widget/utils/kexidatetimeformatter.h @@ -50,7 +50,7 @@ class KEXIGUIUTILS_EXPORT KexiDateFormatter //! \return null string if \a date is invalid TQString dateToString( const TQDate& date ) const; - //! \return Input tqmask generated using the formatter settings. + //! \return Input mask generated using the formatter settings. //! Can be used in TQLineEdit::setInputMask(). TQString inputMask() const { return m_inputMask; } @@ -62,7 +62,7 @@ class KEXIGUIUTILS_EXPORT KexiDateFormatter bool isEmpty( const TQString& str ) const; protected: - //! Input tqmask generated using the formatter settings. Can be used in TQLineEdit::setInputMask(). + //! Input mask generated using the formatter settings. Can be used in TQLineEdit::setInputMask(). TQString m_inputMask; //! Order of date sections @@ -111,7 +111,7 @@ class KEXIGUIUTILS_EXPORT KexiTimeFormatter //! \return null string if \a time is invalid TQString timeToString( const TQTime& time ) const; - //! \return Input tqmask generated using the formatter settings. + //! \return Input mask generated using the formatter settings. //! Can be used in TQLineEdit::setInputMask(). TQString inputMask() const { return m_inputMask; } @@ -120,7 +120,7 @@ class KEXIGUIUTILS_EXPORT KexiTimeFormatter bool isEmpty( const TQString& str ) const; protected: - //! Input tqmask generated using the formatter settings. Can be used in TQLineEdit::setInputMask(). + //! Input mask generated using the formatter settings. Can be used in TQLineEdit::setInputMask(). TQString m_inputMask; // //! Order of date sections @@ -140,7 +140,7 @@ class KEXIGUIUTILS_EXPORT KexiTimeFormatter TQRegExp *m_hmsRegExp, *m_hmRegExp; }; -//! \return a date/time input tqmask using date and time formatter. +//! \return a date/time input mask using date and time formatter. //! Date is separated from time by one space character. KEXIGUIUTILS_EXPORT TQString dateTimeInputMask( const KexiDateFormatter& dateFormatter, const KexiTimeFormatter& timeFormatter); diff --git a/kexi/widget/utils/kexidropdownbutton.cpp b/kexi/widget/utils/kexidropdownbutton.cpp index b2ed022e..909d507c 100644 --- a/kexi/widget/utils/kexidropdownbutton.cpp +++ b/kexi/widget/utils/kexidropdownbutton.cpp @@ -25,8 +25,8 @@ #include <tqstyle.h> #include <tqapplication.h> -KexiDropDownButton::KexiDropDownButton(TQWidget *tqparent) - : TQToolButton(tqparent, "KexiDBImageBox::Button") +KexiDropDownButton::KexiDropDownButton(TQWidget *parent) + : TQToolButton(parent, "KexiDBImageBox::Button") { tqsetSizePolicy(TQSizePolicy::Preferred, TQSizePolicy::Expanding); //! @todo get this from a KStyle diff --git a/kexi/widget/utils/kexidropdownbutton.h b/kexi/widget/utils/kexidropdownbutton.h index a2d280a7..e61ab9f5 100644 --- a/kexi/widget/utils/kexidropdownbutton.h +++ b/kexi/widget/utils/kexidropdownbutton.h @@ -33,7 +33,7 @@ class KEXIGUIUTILS_EXPORT KexiDropDownButton : public TQToolButton TQ_OBJECT public: - KexiDropDownButton(TQWidget *tqparent); + KexiDropDownButton(TQWidget *parent); virtual ~KexiDropDownButton(); virtual void drawButton( TQPainter *p ); diff --git a/kexi/widget/utils/kexiflowlayout.cpp b/kexi/widget/utils/kexiflowlayout.cpp index c7c7687c..dc655c63 100644 --- a/kexi/widget/utils/kexiflowlayout.cpp +++ b/kexi/widget/utils/kexiflowlayout.cpp @@ -66,16 +66,16 @@ KexiFlowLayoutIterator::takeCurrent() //// The tqlayout itself -KexiFlowLayout::KexiFlowLayout(TQWidget *tqparent, int border, int space, const char *name) - : TQLayout(tqparent, border, space, name) +KexiFlowLayout::KexiFlowLayout(TQWidget *parent, int border, int space, const char *name) + : TQLayout(parent, border, space, name) { m_orientation =Qt::Horizontal; m_justify = false; m_cached_width = 0; } -KexiFlowLayout::KexiFlowLayout(TQLayout* tqparent, int space, const char *name) - : TQLayout( tqparent, space, name ) +KexiFlowLayout::KexiFlowLayout(TQLayout* parent, int space, const char *name) + : TQLayout( parent, space, name ) { m_orientation =Qt::Horizontal; m_justify = false; diff --git a/kexi/widget/utils/kexiflowlayout.h b/kexi/widget/utils/kexiflowlayout.h index e410fb83..83d2f172 100644 --- a/kexi/widget/utils/kexiflowlayout.h +++ b/kexi/widget/utils/kexiflowlayout.h @@ -27,8 +27,8 @@ class KEXIGUIUTILS_EXPORT KexiFlowLayout : public TQLayout { public: - KexiFlowLayout(TQWidget *tqparent, int border=0, int space=-1, const char *name=0); - KexiFlowLayout(TQLayout* tqparent, int space=-1, const char *name=0); + KexiFlowLayout(TQWidget *parent, int border=0, int space=-1, const char *name=0); + KexiFlowLayout(TQLayout* parent, int space=-1, const char *name=0); KexiFlowLayout(int space=-1, const char *name=0); ~KexiFlowLayout(); diff --git a/kexi/widget/utils/kexigradientwidget.cpp b/kexi/widget/utils/kexigradientwidget.cpp index ce92444f..18d34447 100644 --- a/kexi/widget/utils/kexigradientwidget.cpp +++ b/kexi/widget/utils/kexigradientwidget.cpp @@ -29,8 +29,8 @@ #include "kexigradientwidget.h" -KexiGradientWidget::KexiGradientWidget( TQWidget *tqparent, const char *name, WFlags f ) - : TQWidget( tqparent, name, f ), p_displayMode( NoGradient ), +KexiGradientWidget::KexiGradientWidget( TQWidget *parent, const char *name, WFlags f ) + : TQWidget( parent, name, f ), p_displayMode( NoGradient ), p_gradientType( VerticalGradient ), p_color1( TQt::white ), p_color2( TQt::blue ), p_currentChild( 0 ), p_opacity( 0.5 ), p_cacheDirty( true ) @@ -179,7 +179,7 @@ void KexiGradientWidget::rebuildCache( void ) { Get the part of the tempPixmap that is under the current child-widget. */ - if ( TQT_BASE_OBJECT(childWidget->tqparent()) == TQT_BASE_OBJECT(this) ) { + if ( TQT_BASE_OBJECT(childWidget->parent()) == TQT_BASE_OBJECT(this) ) { area = childWidget->tqgeometry(); } else { area.setTopLeft( childWidget->mapTo( this, @@ -310,11 +310,11 @@ void KexiGradientWidget::updateChildBackground( TQWidget* childWidget ) return; /** - Exclude widgtes that don't have a tqparent. + Exclude widgtes that don't have a parent. This happens when tqchildren are removed which are in the knownWidgets-list. */ - if ( childWidget->tqparent() == 0L ) + if ( childWidget->parent() == 0L ) return; /** @@ -329,7 +329,7 @@ void KexiGradientWidget::updateChildBackground( TQWidget* childWidget ) Get the part of the tempPixmap that is under the current child-widget. */ - if ( TQT_BASE_OBJECT(childWidget->tqparent()) == TQT_BASE_OBJECT(this) ) { + if ( TQT_BASE_OBJECT(childWidget->parent()) == TQT_BASE_OBJECT(this) ) { area = childWidget->tqgeometry(); } else { area.setTopLeft( childWidget->mapTo( this, diff --git a/kexi/widget/utils/kexigradientwidget.h b/kexi/widget/utils/kexigradientwidget.h index 3a90add8..05d6f68f 100644 --- a/kexi/widget/utils/kexigradientwidget.h +++ b/kexi/widget/utils/kexigradientwidget.h @@ -69,7 +69,7 @@ class KEXIGUIUTILS_EXPORT KexiGradientWidget : public TQWidget { EllipticGradient = KImageEffect::EllipticGradient }; - KexiGradientWidget( TQWidget *tqparent = 0, const char *name = 0, WFlags f = 0 ); + KexiGradientWidget( TQWidget *parent = 0, const char *name = 0, WFlags f = 0 ); virtual ~KexiGradientWidget(); diff --git a/kexi/widget/utils/kexirecordmarker.cpp b/kexi/widget/utils/kexirecordmarker.cpp index 654f3be7..b22e0500 100644 --- a/kexi/widget/utils/kexirecordmarker.cpp +++ b/kexi/widget/utils/kexirecordmarker.cpp @@ -116,8 +116,8 @@ public: //---------------------------------------------------------------- -KexiRecordMarker::KexiRecordMarker(TQWidget *tqparent, const char* name) - : TQWidget(tqparent, name) +KexiRecordMarker::KexiRecordMarker(TQWidget *parent, const char* name) + : TQWidget(parent, name) , d( new Private() ) { initRecordMarkerImages(); diff --git a/kexi/widget/utils/kexirecordmarker.h b/kexi/widget/utils/kexirecordmarker.h index 1348ca1d..e309c5a1 100644 --- a/kexi/widget/utils/kexirecordmarker.h +++ b/kexi/widget/utils/kexirecordmarker.h @@ -34,7 +34,7 @@ class KEXIGUIUTILS_EXPORT KexiRecordMarker : public TQWidget TQ_OBJECT public: - KexiRecordMarker(TQWidget *tqparent, const char* name = 0); + KexiRecordMarker(TQWidget *parent, const char* name = 0); ~KexiRecordMarker(); int rows() const; diff --git a/kexi/widget/utils/kexirecordnavigator.cpp b/kexi/widget/utils/kexirecordnavigator.cpp index 6fe7fbdc..4c1dd02b 100644 --- a/kexi/widget/utils/kexirecordnavigator.cpp +++ b/kexi/widget/utils/kexirecordnavigator.cpp @@ -65,14 +65,14 @@ KexiRecordNavigatorHandler::~KexiRecordNavigatorHandler() //-------------------------------------------------- -KexiRecordNavigator::KexiRecordNavigator(TQWidget *tqparent, int leftMargin, const char *name) - : TQFrame(tqparent, name) +KexiRecordNavigator::KexiRecordNavigator(TQWidget *parent, int leftMargin, const char *name) + : TQFrame(parent, name) , m_view(0) , m_isInsertingEnabled(true) , d( new KexiRecordNavigatorPrivate() ) { - if (tqparent->inherits(TQSCROLLVIEW_OBJECT_NAME_STRING)) - setParentView( dynamic_cast<TQScrollView*>(tqparent) ); + if (parent->inherits(TQSCROLLVIEW_OBJECT_NAME_STRING)) + setParentView( dynamic_cast<TQScrollView*>(parent) ); setFrameStyle(TQFrame::NoFrame); d->lyr = new TQHBoxLayout(this,0,0,"nav_lyr"); diff --git a/kexi/widget/utils/kexirecordnavigator.h b/kexi/widget/utils/kexirecordnavigator.h index 29faf115..9eae328b 100644 --- a/kexi/widget/utils/kexirecordnavigator.h +++ b/kexi/widget/utils/kexirecordnavigator.h @@ -68,7 +68,7 @@ class KEXIGUIUTILS_EXPORT KexiRecordNavigator : public TQFrame TQ_OBJECT public: - KexiRecordNavigator(TQWidget *tqparent, int leftMargin = 0, const char *name=0); + KexiRecordNavigator(TQWidget *parent, int leftMargin = 0, const char *name=0); virtual ~KexiRecordNavigator(); void setParentView(TQScrollView *view); diff --git a/kexi/widget/utils/kexitooltip.cpp b/kexi/widget/utils/kexitooltip.cpp index d5df13aa..7d71752c 100644 --- a/kexi/widget/utils/kexitooltip.cpp +++ b/kexi/widget/utils/kexitooltip.cpp @@ -29,8 +29,8 @@ #include <tqtimer.h> -KexiToolTip::KexiToolTip(const TQVariant& value, TQWidget* tqparent) - : TQWidget(tqparent, "KexiToolTip", TQt::WStyle_Customize | TQt::WType_Popup | TQt::WStyle_NoBorder +KexiToolTip::KexiToolTip(const TQVariant& value, TQWidget* parent) + : TQWidget(parent, "KexiToolTip", TQt::WStyle_Customize | TQt::WType_Popup | TQt::WStyle_NoBorder | TQt::WX11BypassWM | TQt::WDestructiveClose) , m_value(value) { diff --git a/kexi/widget/utils/kexitooltip.h b/kexi/widget/utils/kexitooltip.h index 3ff93120..cfa1b483 100644 --- a/kexi/widget/utils/kexitooltip.h +++ b/kexi/widget/utils/kexitooltip.h @@ -29,7 +29,7 @@ class KEXIGUIUTILS_EXPORT KexiToolTip : public TQWidget Q_OBJECT TQ_OBJECT public: - KexiToolTip(const TQVariant& value, TQWidget* tqparent); + KexiToolTip(const TQVariant& value, TQWidget* parent); virtual ~KexiToolTip(); virtual TQSize tqsizeHint() const; diff --git a/kexi/widget/utils/klistviewitemtemplate.h b/kexi/widget/utils/klistviewitemtemplate.h index 3807d43c..45a5b889 100644 --- a/kexi/widget/utils/klistviewitemtemplate.h +++ b/kexi/widget/utils/klistviewitemtemplate.h @@ -27,22 +27,22 @@ template<class type> class KListViewItemTemplate : public KListViewItem { public: - KListViewItemTemplate(type _data, TQListView *tqparent) - : KListViewItem(tqparent), data(_data) {} - KListViewItemTemplate(type _data, TQListViewItem *tqparent) - : KListViewItem(tqparent), data(_data) {} - KListViewItemTemplate(type _data, TQListView *tqparent, TQListViewItem *after) - : KListViewItem(tqparent, after), data(_data) {} - KListViewItemTemplate(type _data, TQListViewItem *tqparent, TQListViewItem *after) - : KListViewItem(tqparent, after), data(_data) {} - KListViewItemTemplate(type _data, TQListView *tqparent, TQString label1, TQString label2=TQString(), TQString label3=TQString(), TQString label4=TQString(), TQString label5=TQString(), TQString label6=TQString(), TQString label7=TQString(), TQString label8=TQString()) - : KListViewItem(tqparent, label1, label2, label3, label4, label5, label6, label7, label8), data(_data) {} - KListViewItemTemplate(type _data, TQListViewItem *tqparent, TQString label1, TQString label2=TQString(), TQString label3=TQString(), TQString label4=TQString(), TQString label5=TQString(), TQString label6=TQString(), TQString label7=TQString(), TQString label8=TQString()) - : KListViewItem(tqparent, label1, label2, label3, label4, label5, label6, label7, label8), data(_data) {} - KListViewItemTemplate(type _data, TQListView *tqparent, TQListViewItem *after, TQString label1, TQString label2=TQString(), TQString label3=TQString(), TQString label4=TQString(), TQString label5=TQString(), TQString label6=TQString(), TQString label7=TQString(), TQString label8=TQString()) - : KListViewItem(tqparent, after, label1, label2, label3, label4, label5, label6, label7, label8), data(_data) {} - KListViewItemTemplate(type _data, TQListViewItem *tqparent, TQListViewItem *after, TQString label1, TQString label2=TQString(), TQString label3=TQString(), TQString label4=TQString(), TQString label5=TQString(), TQString label6=TQString(), TQString label7=TQString(), TQString label8=TQString()) - : KListViewItem(tqparent, after, label1, label2, label3, label4, label5, label6, label7, label8), data(_data) {} + KListViewItemTemplate(type _data, TQListView *parent) + : KListViewItem(parent), data(_data) {} + KListViewItemTemplate(type _data, TQListViewItem *parent) + : KListViewItem(parent), data(_data) {} + KListViewItemTemplate(type _data, TQListView *parent, TQListViewItem *after) + : KListViewItem(parent, after), data(_data) {} + KListViewItemTemplate(type _data, TQListViewItem *parent, TQListViewItem *after) + : KListViewItem(parent, after), data(_data) {} + KListViewItemTemplate(type _data, TQListView *parent, TQString label1, TQString label2=TQString(), TQString label3=TQString(), TQString label4=TQString(), TQString label5=TQString(), TQString label6=TQString(), TQString label7=TQString(), TQString label8=TQString()) + : KListViewItem(parent, label1, label2, label3, label4, label5, label6, label7, label8), data(_data) {} + KListViewItemTemplate(type _data, TQListViewItem *parent, TQString label1, TQString label2=TQString(), TQString label3=TQString(), TQString label4=TQString(), TQString label5=TQString(), TQString label6=TQString(), TQString label7=TQString(), TQString label8=TQString()) + : KListViewItem(parent, label1, label2, label3, label4, label5, label6, label7, label8), data(_data) {} + KListViewItemTemplate(type _data, TQListView *parent, TQListViewItem *after, TQString label1, TQString label2=TQString(), TQString label3=TQString(), TQString label4=TQString(), TQString label5=TQString(), TQString label6=TQString(), TQString label7=TQString(), TQString label8=TQString()) + : KListViewItem(parent, after, label1, label2, label3, label4, label5, label6, label7, label8), data(_data) {} + KListViewItemTemplate(type _data, TQListViewItem *parent, TQListViewItem *after, TQString label1, TQString label2=TQString(), TQString label3=TQString(), TQString label4=TQString(), TQString label5=TQString(), TQString label6=TQString(), TQString label7=TQString(), TQString label8=TQString()) + : KListViewItem(parent, after, label1, label2, label3, label4, label5, label6, label7, label8), data(_data) {} type data; }; |