diff options
Diffstat (limited to 'kexi/widget/utils')
-rw-r--r-- | kexi/widget/utils/kexicontextmenuutils.cpp | 6 | ||||
-rw-r--r-- | kexi/widget/utils/kexidatetimeformatter.cpp | 8 | ||||
-rw-r--r-- | kexi/widget/utils/kexiflowlayout.cpp | 10 | ||||
-rw-r--r-- | kexi/widget/utils/kexiflowlayout.h | 2 | ||||
-rw-r--r-- | kexi/widget/utils/kexigradientwidget.cpp | 8 | ||||
-rw-r--r-- | kexi/widget/utils/kexigradientwidget.h | 4 | ||||
-rw-r--r-- | kexi/widget/utils/kexirecordnavigator.h | 2 |
7 files changed, 20 insertions, 20 deletions
diff --git a/kexi/widget/utils/kexicontextmenuutils.cpp b/kexi/widget/utils/kexicontextmenuutils.cpp index f34864a9..aeeec86d 100644 --- a/kexi/widget/utils/kexicontextmenuutils.cpp +++ b/kexi/widget/utils/kexicontextmenuutils.cpp @@ -187,7 +187,7 @@ void KexiImageContextMenu::saveAs() if (f.exists() && KMessageBox::Yes != KMessageBox::warningYesNo(this, "<qt>"+i18n("File \"%1\" already exists." "<p>Do you want to replace it with a new one?") - .tqarg(TQDir::convertSeparators(fileName))+"</qt>",0, + .arg(TQDir::convertSeparators(fileName))+"</qt>",0, KGuiItem(i18n("&Replace")), KGuiItem(i18n("&Don't Replace")))) { return; @@ -268,8 +268,8 @@ bool KexiContextMenuUtils::updateTitle(TQPopupMenu *menu, const TQString& object /*! @todo look at makeFirstCharacterUpperCaseInCaptions setting [bool] (see doc/dev/settings.txt) */ TQString realTitle( i18n("Object name : Object type", "%1 : %2") - .tqarg( objectName[0].upper() + objectName.mid(1) ) - .tqarg( objectTypeName )); + .arg( objectName[0].upper() + objectName.mid(1) ) + .arg( objectTypeName )); if (iconName.isEmpty()) title->setTitle(realTitle); diff --git a/kexi/widget/utils/kexidatetimeformatter.cpp b/kexi/widget/utils/kexidatetimeformatter.cpp index b11961d2..298eda48 100644 --- a/kexi/widget/utils/kexidatetimeformatter.cpp +++ b/kexi/widget/utils/kexidatetimeformatter.cpp @@ -78,7 +78,7 @@ KexiDateFormatter::KexiDateFormatter() m_order = TQDateEdit::YDM; //! @todo use TQRegExp (to replace %Y by %1, etc.) instead of hardcoded "%1%299%399" //! because df may contain also other characters - m_inputMask = TQString("%1%299%399").tqarg(yearMask).tqarg(m_separator).tqarg(m_separator); + m_inputMask = TQString("%1%299%399").arg(yearMask).arg(m_separator).arg(m_separator); m_qtFormat = yearDateFormat+m_separator+dayDateFormat+m_separator+monthDateFormat; m_yearpos = 0; m_daypos = yearMask.length()+separatorLen; @@ -86,7 +86,7 @@ KexiDateFormatter::KexiDateFormatter() } else if (daypos<monthpos && monthpos<yearpos) { m_order = TQDateEdit::DMY; - m_inputMask = TQString("99%199%2%3").tqarg(m_separator).tqarg(m_separator).tqarg(yearMask); + m_inputMask = TQString("99%199%2%3").arg(m_separator).arg(m_separator).arg(yearMask); m_qtFormat = dayDateFormat+m_separator+monthDateFormat+m_separator+yearDateFormat; m_daypos = 0; m_monthpos = 2+separatorLen; @@ -94,7 +94,7 @@ KexiDateFormatter::KexiDateFormatter() } else if (monthpos<daypos && daypos<yearpos) { m_order = TQDateEdit::MDY; - m_inputMask = TQString("99%199%2%3").tqarg(m_separator).tqarg(m_separator).tqarg(yearMask); + m_inputMask = TQString("99%199%2%3").arg(m_separator).arg(m_separator).arg(yearMask); m_qtFormat = monthDateFormat+m_separator+dayDateFormat+m_separator+yearDateFormat; m_monthpos = 0; m_daypos = 2+separatorLen; @@ -104,7 +104,7 @@ KexiDateFormatter::KexiDateFormatter() ok = false; } if (!ok || m_order == TQDateEdit::YMD) {//default: YMD - m_inputMask = TQString("%1%299%399").tqarg(yearMask).tqarg(m_separator).tqarg(m_separator); + m_inputMask = TQString("%1%299%399").arg(yearMask).arg(m_separator).arg(m_separator); m_qtFormat = yearDateFormat+m_separator+monthDateFormat+m_separator+dayDateFormat; m_yearpos = 0; m_monthpos = yearMask.length()+separatorLen; diff --git a/kexi/widget/utils/kexiflowlayout.cpp b/kexi/widget/utils/kexiflowlayout.cpp index 50959770..f6868a5e 100644 --- a/kexi/widget/utils/kexiflowlayout.cpp +++ b/kexi/widget/utils/kexiflowlayout.cpp @@ -134,9 +134,9 @@ KexiFlowLayout::widgetList() const } void -KexiFlowLayout::tqinvalidate() +KexiFlowLayout::invalidate() { - TQLayout::tqinvalidate(); + TQLayout::invalidate(); m_cached_sizeHint = TQSize(); m_cached_minSize = TQSize(); m_cached_width = 0; @@ -468,7 +468,7 @@ int KexiFlowLayout::count() const { \reimp */ TQLayoutItem* KexiFlowLayout::itemAt(int index) const { - return index >= 0 && index < m_list.count() ? (const_cast<TQPtrList<TQLayoutItem>&>(m_list).tqat(index)) : 0; + return index >= 0 && index < m_list.count() ? (const_cast<TQPtrList<TQLayoutItem>&>(m_list).at(index)) : 0; } /*! @@ -477,8 +477,8 @@ TQLayoutItem* KexiFlowLayout::itemAt(int index) const { TQLayoutItem* KexiFlowLayout::takeAt(int index) { if (index < 0 || index >= m_list.count()) return 0; - TQLayoutItem *item = m_list.tqat(index); - m_list.remove(m_list.tqat(index)); + TQLayoutItem *item = m_list.at(index); + m_list.remove(m_list.at(index)); delete item; invalidate(); diff --git a/kexi/widget/utils/kexiflowlayout.h b/kexi/widget/utils/kexiflowlayout.h index c4550fca..aec6c6c3 100644 --- a/kexi/widget/utils/kexiflowlayout.h +++ b/kexi/widget/utils/kexiflowlayout.h @@ -49,7 +49,7 @@ class KEXIGUIUTILS_EXPORT KexiFlowLayout : public TQLayout virtual void addItem(TQLayoutItem *item); virtual void addSpacing(int size); virtual TQLayoutIterator iterator(); - virtual void tqinvalidate(); + virtual void invalidate(); virtual bool hasHeightForWidth() const; virtual int heightForWidth(int width) const; diff --git a/kexi/widget/utils/kexigradientwidget.cpp b/kexi/widget/utils/kexigradientwidget.cpp index 18d34447..d93b13ff 100644 --- a/kexi/widget/utils/kexigradientwidget.cpp +++ b/kexi/widget/utils/kexigradientwidget.cpp @@ -155,7 +155,7 @@ void KexiGradientWidget::rebuildCache( void ) { } /** - All tqchildren need to have our background set. + All children need to have our background set. */ KPixmap partPixmap; TQRect area; @@ -180,7 +180,7 @@ void KexiGradientWidget::rebuildCache( void ) { under the current child-widget. */ if ( TQT_BASE_OBJECT(childWidget->parent()) == TQT_BASE_OBJECT(this) ) { - area = childWidget->tqgeometry(); + area = childWidget->geometry(); } else { area.setTopLeft( childWidget->mapTo( this, childWidget->clipRegion().boundingRect().topLeft() ) ); @@ -311,7 +311,7 @@ void KexiGradientWidget::updateChildBackground( TQWidget* childWidget ) /** Exclude widgtes that don't have a parent. - This happens when tqchildren are removed + This happens when children are removed which are in the knownWidgets-list. */ if ( childWidget->parent() == 0L ) @@ -330,7 +330,7 @@ void KexiGradientWidget::updateChildBackground( TQWidget* childWidget ) under the current child-widget. */ if ( TQT_BASE_OBJECT(childWidget->parent()) == TQT_BASE_OBJECT(this) ) { - area = childWidget->tqgeometry(); + area = childWidget->geometry(); } else { area.setTopLeft( childWidget->mapTo( this, childWidget->clipRegion().boundingRect().topLeft() ) ); diff --git a/kexi/widget/utils/kexigradientwidget.h b/kexi/widget/utils/kexigradientwidget.h index 3f9b894d..d11c4f04 100644 --- a/kexi/widget/utils/kexigradientwidget.h +++ b/kexi/widget/utils/kexigradientwidget.h @@ -184,11 +184,11 @@ class KEXIGUIUTILS_EXPORT KexiGradientWidget : public TQWidget { private: /*! - Builds a list of tqchildren of \a p. + Builds a list of children of \a p. Only widgets that work correctly with KexiGradientWidget will be in this list. The results will be stored in \a list. - The method recursively calls itself until all tqchildren of \a p + The method recursively calls itself until all children of \a p have been found and stored in the list. */ static void buildChildrenList( WidgetList& list, TQWidget* p ); diff --git a/kexi/widget/utils/kexirecordnavigator.h b/kexi/widget/utils/kexirecordnavigator.h index 9eae328b..6c666e78 100644 --- a/kexi/widget/utils/kexirecordnavigator.h +++ b/kexi/widget/utils/kexirecordnavigator.h @@ -87,7 +87,7 @@ class KEXIGUIUTILS_EXPORT KexiRecordNavigator : public TQFrame /*! \return record count displayed for this navigator. */ uint recordCount() const; - /*! Sets horizontal bar's \a hbar (at the bottom) tqgeometry so this record navigator + /*! Sets horizontal bar's \a hbar (at the bottom) geometry so this record navigator is properly positioned together with horizontal scroll bar. This method is used in TQScrollView::setHBarGeometry() implementations: see KexiTableView::setHBarGeometry() and KexiFormScrollView::setHBarGeometry() |