diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:22:56 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:22:56 +0000 |
commit | 7346aee26bf190a7e70333c40fab4caca847cd27 (patch) | |
tree | 4b019b434f88dcc3eeaafe1d3f26240b4c4718e8 /konq-plugins/sidebar/metabar/src/protocolplugin.cpp | |
parent | 23a3d3aa5b44cbdf305495919866d9dbf4f6da54 (diff) | |
download | tdeaddons-7346aee26bf190a7e70333c40fab4caca847cd27.tar.gz tdeaddons-7346aee26bf190a7e70333c40fab4caca847cd27.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeaddons@1157634 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'konq-plugins/sidebar/metabar/src/protocolplugin.cpp')
-rw-r--r-- | konq-plugins/sidebar/metabar/src/protocolplugin.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/konq-plugins/sidebar/metabar/src/protocolplugin.cpp b/konq-plugins/sidebar/metabar/src/protocolplugin.cpp index ad8f2e5..99f5b31 100644 --- a/konq-plugins/sidebar/metabar/src/protocolplugin.cpp +++ b/konq-plugins/sidebar/metabar/src/protocolplugin.cpp @@ -20,7 +20,7 @@ #include "protocolplugin.h" -#include <qbuffer.h> +#include <tqbuffer.h> #include <kimageio.h> #include <kmdcodec.h> @@ -32,7 +32,7 @@ ProtocolPlugin* ProtocolPlugin::activePlugin = 0; -ProtocolPlugin::ProtocolPlugin(KHTMLPart *html, MetabarFunctions *functions, const char* name) : QObject(html, name), m_html(html), m_functions(functions) +ProtocolPlugin::ProtocolPlugin(KHTMLPart *html, MetabarFunctions *functions, const char* name) : TQObject(html, name), m_html(html), m_functions(functions) { } @@ -59,7 +59,7 @@ void ProtocolPlugin::setFileItems(const KFileItemList &items) DOM::HTMLElement size = doc.getElementById("size"); if(!icon.isNull()){ - QPixmap pix; + TQPixmap pix; if(m_items.count() == 1){ pix = m_items.getFirst()->pixmap(KIcon::SizeLarge); } @@ -67,11 +67,11 @@ void ProtocolPlugin::setFileItems(const KFileItemList &items) pix = DesktopIcon("kmultiple", KIcon::SizeLarge); } - QByteArray data; - QBuffer buffer(data); + TQByteArray data; + TQBuffer buffer(data); buffer.open(IO_WriteOnly); pix.save(&buffer, "PNG"); - QString icondata = QString::fromLatin1("data:image/png;base64,%1").arg(KCodecs::base64Encode(data)); + TQString icondata = TQString::fromLatin1("data:image/png;base64,%1").arg(KCodecs::base64Encode(data)); icon.setSrc(icondata); } |