summaryrefslogtreecommitdiffstats
path: root/src/gui
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 06:08:18 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 06:08:18 +0000
commit0254ebaa5e056092461fd585b6851d15faa43035 (patch)
tree2bf41a1c189b92dc1b9ab89e3ce392f8132214c4 /src/gui
parentfa071926f015f39711632b3fb9fe16004d93d0ec (diff)
downloadtellico-0254ebaa5e056092461fd585b6851d15faa43035.tar.gz
tellico-0254ebaa5e056092461fd585b6851d15faa43035.zip
rename the following methods:
tqfind find tqreplace replace tqcontains contains git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/tellico@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/fieldwidget.cpp2
-rw-r--r--src/gui/imagewidget.cpp2
-rw-r--r--src/gui/kwidgetlister.cpp2
-rw-r--r--src/gui/linefieldwidget.cpp2
-rw-r--r--src/gui/listview.cpp8
-rw-r--r--src/gui/numberfieldwidget.cpp2
-rw-r--r--src/gui/parafieldwidget.cpp4
-rw-r--r--src/gui/ratingwidget.cpp2
8 files changed, 12 insertions, 12 deletions
diff --git a/src/gui/fieldwidget.cpp b/src/gui/fieldwidget.cpp
index dac9da8..500c6c8 100644
--- a/src/gui/fieldwidget.cpp
+++ b/src/gui/fieldwidget.cpp
@@ -93,7 +93,7 @@ FieldWidget::FieldWidget(Data::FieldPtr field_, TQWidget* parent_, const char* n
: TQWidget(parent_, name_), m_field(field_) {
TQHBoxLayout* l = new TQHBoxLayout(this, 2, 2); // tqparent, margin, spacing
l->addSpacing(4); // add some more space in the columns between widgets
- if(TQCString(tqstyle().name()).lower().tqfind("keramik", 0, false) > -1) {
+ if(TQCString(tqstyle().name()).lower().find("keramik", 0, false) > -1) {
l->setMargin(1);
}
diff --git a/src/gui/imagewidget.cpp b/src/gui/imagewidget.cpp
index 3fe7353..69e0560 100644
--- a/src/gui/imagewidget.cpp
+++ b/src/gui/imagewidget.cpp
@@ -179,7 +179,7 @@ void ImageWidget::mousePressEvent(TQMouseEvent* event_) {
if(event_->button() == Qt::LeftButton) {
// Store the position of the mouse press.
// check if position is inside the label
- if(m_label->tqgeometry().tqcontains(event_->pos())) {
+ if(m_label->tqgeometry().contains(event_->pos())) {
m_dragStart = event_->pos();
} else {
m_dragStart = TQPoint();
diff --git a/src/gui/kwidgetlister.cpp b/src/gui/kwidgetlister.cpp
index ea51900..49045a1 100644
--- a/src/gui/kwidgetlister.cpp
+++ b/src/gui/kwidgetlister.cpp
@@ -125,7 +125,7 @@ void KWidgetLister::addWidgetAtEnd(TQWidget *w)
{
if (!w) w = this->createWidget(this);
- mLayout->insertWidget( mLayout->tqfindWidget( mButtonBox ), w );
+ mLayout->insertWidget( mLayout->findWidget( mButtonBox ), w );
mWidgetList.append( w );
w->show();
enableControls();
diff --git a/src/gui/linefieldwidget.cpp b/src/gui/linefieldwidget.cpp
index ccf00d1..cce1ade 100644
--- a/src/gui/linefieldwidget.cpp
+++ b/src/gui/linefieldwidget.cpp
@@ -47,7 +47,7 @@ LineFieldWidget::LineFieldWidget(Data::FieldPtr field_, TQWidget* parent_, const
TQString LineFieldWidget::text() const {
TQString text = m_lineEdit->text();
if(field()->flags() & Data::Field::AllowMultiple) {
- text.tqreplace(s_semiColon, TQString::tqfromLatin1("; "));
+ text.replace(s_semiColon, TQString::tqfromLatin1("; "));
}
return text.stripWhiteSpace();
}
diff --git a/src/gui/listview.cpp b/src/gui/listview.cpp
index 5ea04cd..0d03228 100644
--- a/src/gui/listview.cpp
+++ b/src/gui/listview.cpp
@@ -121,7 +121,7 @@ void ListView::setColumnText(int column, const TQString& label) {
void ListView::setComparison(int column, ListViewComparison* comp) {
if(comp) {
- m_comparisons.tqreplace(columnText(column), comp);
+ m_comparisons.replace(columnText(column), comp);
}
}
@@ -135,7 +135,7 @@ void ListView::clearComparisons() {
int ListView::compare(int col, const GUI::ListViewItem* item1, GUI::ListViewItem* item2, bool asc) {
if(col >= 0 && col < static_cast<int>(m_comparisons.count())) {
- ListViewComparison* com = m_comparisons.tqfind(columnText(col));
+ ListViewComparison* com = m_comparisons.find(columnText(col));
if(com) {
return com->compare(col, item1, item2, asc);
}
@@ -200,7 +200,7 @@ void ListView::slotSelectionChanged() {
for(GUI::ListViewItemListIt it(m_selectedItems); it.current(); ++it) {
Data::EntryVec more = it.current()->entries();
for(Data::EntryVecIt entry = more.begin(); entry != more.end(); ++entry) {
- if(!entries.tqcontains(entry)) {
+ if(!entries.contains(entry)) {
entries.append(entry);
}
}
@@ -336,7 +336,7 @@ Tellico::Data::EntryVec ListViewItem::entries() const {
for(TQListViewItem* child = firstChild(); child; child = child->nextSibling()) {
Data::EntryVec more = static_cast<GUI::ListViewItem*>(child)->entries();
for(Data::EntryVecIt entry = more.begin(); entry != more.end(); ++entry) {
- if(!entries.tqcontains(entry)) {
+ if(!entries.contains(entry)) {
entries.append(entry);
}
}
diff --git a/src/gui/numberfieldwidget.cpp b/src/gui/numberfieldwidget.cpp
index e2e038a..f2cdaa8 100644
--- a/src/gui/numberfieldwidget.cpp
+++ b/src/gui/numberfieldwidget.cpp
@@ -67,7 +67,7 @@ TQString NumberFieldWidget::text() const {
TQString text = m_lineEdit->text();
if(field()->flags() & Data::Field::AllowMultiple) {
- text.tqreplace(s_semiColon, TQString::tqfromLatin1("; "));
+ text.replace(s_semiColon, TQString::tqfromLatin1("; "));
}
return text.simplifyWhiteSpace();
}
diff --git a/src/gui/parafieldwidget.cpp b/src/gui/parafieldwidget.cpp
index 84af710..9aee35e 100644
--- a/src/gui/parafieldwidget.cpp
+++ b/src/gui/parafieldwidget.cpp
@@ -34,7 +34,7 @@ ParaFieldWidget::ParaFieldWidget(Data::FieldPtr field_, TQWidget* parent_, const
TQString ParaFieldWidget::text() const {
TQString text = m_textEdit->text();
- text.tqreplace('\n', TQString::tqfromLatin1("<br/>"));
+ text.replace('\n', TQString::tqfromLatin1("<br/>"));
return text;
}
@@ -44,7 +44,7 @@ void ParaFieldWidget::setText(const TQString& text_) {
TQRegExp rx(TQString::tqfromLatin1("<br/?>"), false /*case-sensitive*/);
TQString s = text_;
- s.tqreplace(rx, TQChar('\n'));
+ s.replace(rx, TQChar('\n'));
m_textEdit->setText(s);
m_textEdit->blockSignals(false);
diff --git a/src/gui/ratingwidget.cpp b/src/gui/ratingwidget.cpp
index 52b7367..ec5d717 100644
--- a/src/gui/ratingwidget.cpp
+++ b/src/gui/ratingwidget.cpp
@@ -118,7 +118,7 @@ void RatingWidget::mousePressEvent(TQMouseEvent* event_) {
int idx;
TQWidget* child = tqchildAt(event_->pos());
if(child) {
- idx = m_widgets.tqfindRef(static_cast<TQLabel*>(child));
+ idx = m_widgets.findRef(static_cast<TQLabel*>(child));
// if the widget is clicked beyond the maximum value, clear it
// remember total and min are values, but index is zero-based!
if(idx > m_total-1) {