diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:46:43 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:46:43 +0000 |
commit | ffe8a83e053396df448e9413828527613ca3bd46 (patch) | |
tree | a73d4169e02df4a50f9a12cb165fcd0ab5bac7c6 /kdefx/kpixmapsplitter.cpp | |
parent | 682bf3bfdcbcbb1fca85e8a36ed03e062e0555d5 (diff) | |
download | tdelibs-ffe8a83e053396df448e9413828527613ca3bd46.tar.gz tdelibs-ffe8a83e053396df448e9413828527613ca3bd46.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1157647 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kdefx/kpixmapsplitter.cpp')
-rw-r--r-- | kdefx/kpixmapsplitter.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/kdefx/kpixmapsplitter.cpp b/kdefx/kpixmapsplitter.cpp index 83fc3de5b..44b8f01fa 100644 --- a/kdefx/kpixmapsplitter.cpp +++ b/kdefx/kpixmapsplitter.cpp @@ -33,13 +33,13 @@ KPixmapSplitter::~KPixmapSplitter() { } -void KPixmapSplitter::setPixmap( const QPixmap& pixmap ) +void KPixmapSplitter::setPixmap( const TQPixmap& pixmap ) { m_pixmap = pixmap; m_dirty = true; } -void KPixmapSplitter::setItemSize( const QSize& size ) +void KPixmapSplitter::setItemSize( const TQSize& size ) { if ( size != m_itemSize ) { m_itemSize = size; @@ -64,10 +64,10 @@ void KPixmapSplitter::setHSpacing( int spacing ) } -QRect KPixmapSplitter::coordinates( int pos ) +TQRect KPixmapSplitter::coordinates( int pos ) { if ( pos < 0 || m_pixmap.isNull() ) - return QRect(); + return TQRect(); if ( m_dirty ) { m_numCols = m_pixmap.width() / ( m_itemSize.width() + m_hSpacing ); @@ -77,18 +77,18 @@ QRect KPixmapSplitter::coordinates( int pos ) } if ( m_numCols == 0 || m_numRows == 0 ) - return QRect(); + return TQRect(); int row = pos / m_numCols; int col = pos - (row * m_numCols); - return QRect( col * (m_itemSize.width() + m_hSpacing), + return TQRect( col * (m_itemSize.width() + m_hSpacing), row * (m_itemSize.height() + m_vSpacing), m_itemSize.width(), m_itemSize.height() ); } -QRect KPixmapSplitter::coordinates( const QChar& ch ) +TQRect KPixmapSplitter::coordinates( const TQChar& ch ) { return coordinates( (unsigned char) ch.latin1() ); } |