summaryrefslogtreecommitdiffstats
path: root/kwin-styles/smooth-blend/client/buttons.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:27:15 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:27:15 +0000
commitb5d38fd2e94066885d4620b0c35c48a2faa5aa44 (patch)
tree7e7e611e0e3ef23dc2efd327a7455bcf4d7c9b7f /kwin-styles/smooth-blend/client/buttons.h
parent019ebb9a949a97c898e5d563f0699a3ff49e6588 (diff)
downloadtdeartwork-b5d38fd2e94066885d4620b0c35c48a2faa5aa44.tar.gz
tdeartwork-b5d38fd2e94066885d4620b0c35c48a2faa5aa44.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeartwork@1157637 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kwin-styles/smooth-blend/client/buttons.h')
-rw-r--r--kwin-styles/smooth-blend/client/buttons.h36
1 files changed, 18 insertions, 18 deletions
diff --git a/kwin-styles/smooth-blend/client/buttons.h b/kwin-styles/smooth-blend/client/buttons.h
index a62268b7..ac0eaa8e 100644
--- a/kwin-styles/smooth-blend/client/buttons.h
+++ b/kwin-styles/smooth-blend/client/buttons.h
@@ -24,10 +24,10 @@
** WARNING! All changes made in this file will be lost!
****************************************************************************/
-#include <qimage.h>
-#include <qdict.h>
-#include <qmime.h>
-#include <qdragobject.h>
+#include <tqimage.h>
+#include <tqdict.h>
+#include <tqmime.h>
+#include <tqdragobject.h>
// circle.png
static const unsigned char image_0_data[] = {
@@ -1726,20 +1726,20 @@ static struct EmbedImage {
{ 0, 0, 0, 0, 0, 0, 0, 0, 0 }
};
-static QImage uic_findImage( const QString& name )
+static TQImage uic_findImage( const TQString& name )
{
for ( int i=0; embed_image_vec[i].data; i++ ) {
- if ( QString::fromUtf8(embed_image_vec[i].name) == name ) {
- QByteArray baunzip;
+ if ( TQString::fromUtf8(embed_image_vec[i].name) == name ) {
+ TQByteArray baunzip;
baunzip = qUncompress( embed_image_vec[i].data,
embed_image_vec[i].compressed );
- QImage img((uchar*)baunzip.data(),
+ TQImage img((uchar*)baunzip.data(),
embed_image_vec[i].width,
embed_image_vec[i].height,
embed_image_vec[i].depth,
(QRgb*)embed_image_vec[i].colorTable,
embed_image_vec[i].numColors,
- QImage::BigEndian
+ TQImage::BigEndian
);
img = img.copy();
if ( embed_image_vec[i].alpha )
@@ -1747,7 +1747,7 @@ static QImage uic_findImage( const QString& name )
return img;
}
}
- return QImage();
+ return TQImage();
}
class MimeSourceFactory_smoothblend : public QMimeSourceFactory
@@ -1755,30 +1755,30 @@ class MimeSourceFactory_smoothblend : public QMimeSourceFactory
public:
MimeSourceFactory_smoothblend() {}
~MimeSourceFactory_smoothblend() {}
- const QMimeSource* data( const QString& abs_name ) const {
- const QMimeSource* d = QMimeSourceFactory::data( abs_name );
+ const TQMimeSource* data( const TQString& abs_name ) const {
+ const TQMimeSource* d = TQMimeSourceFactory::data( abs_name );
if ( d || abs_name.isNull() ) return d;
- QImage img = uic_findImage( abs_name );
+ TQImage img = uic_findImage( abs_name );
if ( !img.isNull() )
- ((QMimeSourceFactory*)this)->setImage( abs_name, img );
- return QMimeSourceFactory::data( abs_name );
+ ((TQMimeSourceFactory*)this)->setImage( abs_name, img );
+ return TQMimeSourceFactory::data( abs_name );
};
};
-static QMimeSourceFactory* bfactory = 0;
+static TQMimeSourceFactory* bfactory = 0;
void qInitImages_smoothblend()
{
if ( !bfactory ) {
bfactory = new MimeSourceFactory_smoothblend;
- QMimeSourceFactory::defaultFactory()->addFactory( bfactory );
+ TQMimeSourceFactory::defaultFactory()->addFactory( bfactory );
}
}
void qCleanupImages_smoothblend()
{
if ( bfactory ) {
- QMimeSourceFactory::defaultFactory()->removeFactory( bfactory );
+ TQMimeSourceFactory::defaultFactory()->removeFactory( bfactory );
delete bfactory;
bfactory = 0;
}