diff options
Diffstat (limited to 'lib/koproperty/editors')
-rw-r--r-- | lib/koproperty/editors/combobox.cpp | 6 | ||||
-rw-r--r-- | lib/koproperty/editors/pixmapedit.cpp | 2 | ||||
-rw-r--r-- | lib/koproperty/editors/spinbox.cpp | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/lib/koproperty/editors/combobox.cpp b/lib/koproperty/editors/combobox.cpp index f1206f2d..661aa1e0 100644 --- a/lib/koproperty/editors/combobox.cpp +++ b/lib/koproperty/editors/combobox.cpp @@ -71,7 +71,7 @@ ComboBox::value() const if (idx<0 || idx>=(int)property()->listData()->keys.count()) return TQVariant(); return TQVariant( property()->listData()->keys[idx] ); -// if(property()->listData() && property()->listData()->tqcontains(m_edit->currentText())) +// if(property()->listData() && property()->listData()->contains(m_edit->currentText())) // return (*(property()->valueList()))[m_edit->currentText()]; // return TQVariant(); } @@ -85,7 +85,7 @@ ComboBox::setValue(const TQVariant &value, bool emitChange) } if (!m_setValueEnabled) return; - int idx = property()->listData()->keys.tqfindIndex( value ); + int idx = property()->listData()->keys.findIndex( value ); if (idx>=0 && idx<m_edit->count()) { m_edit->setCurrentItem(idx); } @@ -120,7 +120,7 @@ ComboBox::drawViewer(TQPainter *p, const TQColorGroup &cg, const TQRect &r, cons { TQString txt; if (property()->listData()) { - const int idx = property()->listData()->keys.tqfindIndex( value ); + const int idx = property()->listData()->keys.findIndex( value ); if (idx>=0) txt = property()->listData()->names[ idx ]; } diff --git a/lib/koproperty/editors/pixmapedit.cpp b/lib/koproperty/editors/pixmapedit.cpp index 95cdbb9d..edc19c80 100644 --- a/lib/koproperty/editors/pixmapedit.cpp +++ b/lib/koproperty/editors/pixmapedit.cpp @@ -104,7 +104,7 @@ PixmapEdit::setValue(const TQVariant &value, bool emitChange) } else { TQImage img(m_pixmap.convertToImage()); - if (!TQRect(TQPoint(0,0), m_edit->size()*3).tqcontains(m_pixmap.rect())) { + if (!TQRect(TQPoint(0,0), m_edit->size()*3).contains(m_pixmap.rect())) { img = img.smoothScale(m_edit->size()*3, TQ_ScaleMin); m_previewPixmap.convertFromImage(img);//preview pixmap is a bit larger } diff --git a/lib/koproperty/editors/spinbox.cpp b/lib/koproperty/editors/spinbox.cpp index c72a060d..8ae4e30a 100644 --- a/lib/koproperty/editors/spinbox.cpp +++ b/lib/koproperty/editors/spinbox.cpp @@ -291,7 +291,7 @@ DoubleEdit::drawViewer(TQPainter *p, const TQColorGroup &cg, const TQRect &r, co } } if (valueText.isEmpty()) - valueText = TQString(value.toString()).tqreplace('.', KGlobal::locale()->decimalSymbol()); + valueText = TQString(value.toString()).replace('.', KGlobal::locale()->decimalSymbol()); Widget::drawViewer(p, cg, r, valueText); // p->eraseRect(r); |