From 395a904bff7b4d6ead445c342f7ac0c5fbf29121 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 18 Jun 2011 17:00:31 +0000 Subject: TQt4 port kdeaddons This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeaddons@1237404 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- konq-plugins/microformat/konqmficon.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'konq-plugins/microformat/konqmficon.cpp') diff --git a/konq-plugins/microformat/konqmficon.cpp b/konq-plugins/microformat/konqmficon.cpp index 9dfa53c..1816b08 100644 --- a/konq-plugins/microformat/konqmficon.cpp +++ b/konq-plugins/microformat/konqmficon.cpp @@ -17,8 +17,8 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. As a special exception, permission is given to link this program - with any edition of Qt, and distribute the resulting executable, - without including the source code for Qt in the source distribution. + with any edition of TQt, and distribute the resulting executable, + without including the source code for TQt in the source distribution. */ #include "konqmficon.h" @@ -41,11 +41,11 @@ typedef KGenericFactory KonqMFIconFactory; K_EXPORT_COMPONENT_FACTORY(libmfkonqmficon, KonqMFIconFactory("mfkonqmficon")) -KonqMFIcon::KonqMFIcon(TQObject *parent, const char *name, const TQStringList &) -: KParts::Plugin(parent, name), PluginBase(), m_part(0), m_mfIcon(0), m_statusBarEx(0), m_menu(0) { +KonqMFIcon::KonqMFIcon(TQObject *tqparent, const char *name, const TQStringList &) +: KParts::Plugin(tqparent, name), PluginBase(), m_part(0), m_mfIcon(0), m_statusBarEx(0), m_menu(0) { KGlobal::locale()->insertCatalogue("mf_konqplugin"); - m_part = dynamic_cast(parent); + m_part = dynamic_cast(tqparent); if (!m_part) { kdDebug() << "couldn't get part" << endl; return; @@ -157,7 +157,7 @@ void KonqMFIcon::extractCard(DOM::Node node) { if (!name.isEmpty()) { value += "END:VCARD\n"; - _cards.append(qMakePair(name, value)); + _cards.append(tqMakePair(name, value)); } } @@ -202,7 +202,7 @@ void KonqMFIcon::extractEvent(DOM::Node node) { if (!name.isEmpty()) { value += "END:VEVENT\nEND:VCALENDAR\n"; - _events.append(qMakePair(name, value)); + _events.append(tqMakePair(name, value)); } } @@ -249,11 +249,11 @@ void KonqMFIcon::contextMenu() { m_menu->insertTitle(i18n("Microformats")); connect(m_menu, TQT_SIGNAL(activated(int)), this, TQT_SLOT(addMF(int))); int id = 0; - for (TQValueList >::ConstIterator it = _events.begin(); it != _events.end(); ++it) { + for (TQValueList >::ConstIterator it = _events.begin(); it != _events.end(); ++it) { m_menu->insertItem(SmallIcon("bookmark_add"), (*it).first, id); id++; } - for (TQValueList >::ConstIterator it = _cards.begin(); it != _cards.end(); ++it) { + for (TQValueList >::ConstIterator it = _cards.begin(); it != _cards.end(); ++it) { m_menu->insertItem(SmallIcon("bookmark_add"), (*it).first, id); id++; } @@ -275,7 +275,7 @@ void KonqMFIcon::addMFIcon() { m_mfIcon = new KURLLabel(m_statusBarEx->statusBar()); m_mfIcon->setFixedHeight(instance()->iconLoader()->currentSize(KIcon::Small)); - m_mfIcon->setSizePolicy(TQSizePolicy(TQSizePolicy::Fixed, TQSizePolicy::Fixed)); + m_mfIcon->tqsetSizePolicy(TQSizePolicy(TQSizePolicy::Fixed, TQSizePolicy::Fixed)); m_mfIcon->setUseCursor(false); //FIXME hackish m_mfIcon->setPixmap(TQPixmap(locate("data", "microformat/pics/microformat.png"))); -- cgit v1.2.1