diff options
Diffstat (limited to 'krename/kmylistbox.cpp')
-rw-r--r-- | krename/kmylistbox.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/krename/kmylistbox.cpp b/krename/kmylistbox.cpp index 716cb30..998b0c4 100644 --- a/krename/kmylistbox.cpp +++ b/krename/kmylistbox.cpp @@ -20,7 +20,7 @@ #include <tqdir.h> #include <tqdragobject.h> #include <tqpainter.h> -#include <tqpalette.h> +#include <palette.h> #include <tqregexp.h> // KDE includes @@ -161,7 +161,7 @@ void KMyListBox::addDirName( const KURL & dirname, const TQString & filter, bool } else { // escape hiden directories TQString name = dirname.fileName(); - if( !hidden && name.right( 1 ) != TQString::tqfromLatin1(".") ) + if( !hidden && name.right( 1 ) != TQString::fromLatin1(".") ) if( !isInList( dirname ) ) addDirName( dirname ); @@ -715,9 +715,9 @@ void KMyListBox::positionLabel() } else { - int x = (width() - label->tqminimumSizeHint().width()) / 2; - int y = (height() - label->tqminimumSizeHint().height()) / 2; - label->setGeometry( x, y, label->tqminimumSizeHint().width(), label->tqminimumSizeHint().height() ); + int x = (width() - label->minimumSizeHint().width()) / 2; + int y = (height() - label->minimumSizeHint().height()) / 2; + label->setGeometry( x, y, label->minimumSizeHint().width(), label->minimumSizeHint().height() ); label->show(); } } @@ -750,7 +750,7 @@ void KMyListBoxItem::setPixmap( const TQPixmap & pix ) { KMyListBox* box = static_cast<KMyListBox*>(this->listBox()); pm.resize( box->getPreviewSize(), box->getPreviewSize() ); - pm.fill( box->tqcolorGroup().base() ); + pm.fill( box->colorGroup().base() ); TQPainter painter( &pm ); painter.drawPixmap( (pm.width()-pix.width())/2, (pm.height()-pix.height())/2, pix ); m_has_preview = true; @@ -788,7 +788,7 @@ void KMyListBoxItem::paint( TQPainter *painter ) painter->drawPixmap( 3, yPos, pm); else { - KPixmap pix = KPixmapEffect::selectedPixmap( pm, listBox()->tqcolorGroup().highlight() ); + KPixmap pix = KPixmapEffect::selectedPixmap( pm, listBox()->colorGroup().highlight() ); painter->drawPixmap( 3, yPos, pix ); } |