diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:33:34 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:33:34 +0000 |
commit | c663b6440964f6ac48027143ac9e63298991f9d0 (patch) | |
tree | 6d8b0c5a5f9db1ee16acf98b1397cea9126b281d /kioslave/thumbnail/cursorcreator.cpp | |
parent | a061f7191beebb0e4a3b0c0a7c534ec5f22f2dc7 (diff) | |
download | tdebase-c663b6440964f6ac48027143ac9e63298991f9d0.tar.gz tdebase-c663b6440964f6ac48027143ac9e63298991f9d0.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1157639 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kioslave/thumbnail/cursorcreator.cpp')
-rw-r--r-- | kioslave/thumbnail/cursorcreator.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/kioslave/thumbnail/cursorcreator.cpp b/kioslave/thumbnail/cursorcreator.cpp index 0b1470bd6..d77629acf 100644 --- a/kioslave/thumbnail/cursorcreator.cpp +++ b/kioslave/thumbnail/cursorcreator.cpp @@ -17,8 +17,8 @@ Boston, MA 02110-1301, USA. */ -#include <qimage.h> -#include <qfile.h> +#include <tqimage.h> +#include <tqfile.h> #include <kdemacros.h> @@ -35,16 +35,16 @@ extern "C" } } -bool CursorCreator::create( const QString &path, int width, int height, QImage &img ) +bool CursorCreator::create( const TQString &path, int width, int height, TQImage &img ) { XcursorImage *cursor = XcursorFilenameLoadImage( - QFile::encodeName( path ).data(), + TQFile::encodeName( path ).data(), width > height ? height : width ); if ( cursor ) { - img = QImage( reinterpret_cast<uchar *>( cursor->pixels ), + img = TQImage( reinterpret_cast<uchar *>( cursor->pixels ), cursor->width, cursor->height, 32, - NULL, 0, QImage::BigEndian ); + NULL, 0, TQImage::BigEndian ); img.setAlphaBuffer( true ); // Convert the image to non-premultiplied alpha |