summaryrefslogtreecommitdiffstats
path: root/krename/kmylistbox.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-15 15:32:32 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-15 15:32:32 -0600
commit8e0ad9b24c415aeed5e82093211b95879512692a (patch)
tree06c49b11cb92ab944146ca73fd145717b5533aca /krename/kmylistbox.cpp
parent4375f6cb209fb4a95d47fe04e6bf4b12584387e4 (diff)
downloadkrename-8e0ad9b24c415aeed5e82093211b95879512692a.tar.gz
krename-8e0ad9b24c415aeed5e82093211b95879512692a.zip
Rename a number of old tq methods that are no longer tq specific
Diffstat (limited to 'krename/kmylistbox.cpp')
-rw-r--r--krename/kmylistbox.cpp14
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 );
}