summaryrefslogtreecommitdiffstats
path: root/kopete/libkopete/ui/kopetewidgets.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-22 00:30:31 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-22 00:30:31 +0000
commit69cac65817d949cda2672ec4f0aa73d5e66a0ba1 (patch)
tree073fde0496ea90eb5bf5cffe66a8da43a9f55fbc /kopete/libkopete/ui/kopetewidgets.cpp
parent3467e6464beac3a162839bf7078e22e3a74d73e7 (diff)
downloadtdenetwork-69cac65817d949cda2672ec4f0aa73d5e66a0ba1.tar.gz
tdenetwork-69cac65817d949cda2672ec4f0aa73d5e66a0ba1.zip
TQt4 port kdenetwork
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1237912 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kopete/libkopete/ui/kopetewidgets.cpp')
-rw-r--r--kopete/libkopete/ui/kopetewidgets.cpp58
1 files changed, 29 insertions, 29 deletions
diff --git a/kopete/libkopete/ui/kopetewidgets.cpp b/kopete/libkopete/ui/kopetewidgets.cpp
index 916b0faf..e424dc45 100644
--- a/kopete/libkopete/ui/kopetewidgets.cpp
+++ b/kopete/libkopete/ui/kopetewidgets.cpp
@@ -13,7 +13,7 @@
#include <kstandarddirs.h>
#endif
-class KopeteWidgets : public QWidgetPlugin
+class KopeteWidgets : public TQWidgetPlugin
{
public:
KopeteWidgets();
@@ -28,7 +28,7 @@ public:
return result;
}
- virtual TQWidget *create(const TQString &key, TQWidget *parent = 0, const char *name = 0);
+ virtual TQWidget *create(const TQString &key, TQWidget *tqparent = 0, const char *name = 0);
virtual TQIconSet iconSet(const TQString &key) const
{
@@ -36,7 +36,7 @@ public:
TQPixmap pix(m_widgets[key].iconSet);
#else
TQPixmap pix(locate( "data",
- TQString::fromLatin1("kopetewidgets/pics/") + m_widgets[key].iconSet));
+ TQString::tqfromLatin1("kopetewidgets/pics/") + m_widgets[key].iconSet));
#endif
return TQIconSet(pix);
}
@@ -71,41 +71,41 @@ KopeteWidgets::KopeteWidgets()
{
WidgetInfo widget;
- widget.group = TQString::fromLatin1("Input (Kopete)");
+ widget.group = TQString::tqfromLatin1("Input (Kopete)");
#ifdef EMBED_IMAGES
widget.iconSet = TQPixmap(kopete__ui__addressbooklinkwidget_xpm);
#else
- widget.iconSet = TQString::fromLatin1("kopete__ui__addressbooklinkwidget.png");
+ widget.iconSet = TQString::tqfromLatin1("kopete__ui__addressbooklinkwidget.png");
#endif
- widget.includeFile = TQString::fromLatin1("addressbooklinkwidget.h");
- widget.toolTip = TQString::fromLatin1("Address Book Link Widget (Kopete)");
- widget.whatsThis = TQString::fromLatin1("KABC::Addressee display/selector");
+ widget.includeFile = TQString::tqfromLatin1("addressbooklinkwidget.h");
+ widget.toolTip = TQString::tqfromLatin1("Address Book Link Widget (Kopete)");
+ widget.whatsThis = TQString::tqfromLatin1("KABC::Addressee display/selector");
widget.isContainer = false;
- m_widgets.insert(TQString::fromLatin1("Kopete::UI::AddressBookLinkWidget"), widget);
+ m_widgets.insert(TQString::tqfromLatin1("Kopete::UI::AddressBookLinkWidget"), widget);
- widget.group = TQString::fromLatin1("Views (Kopete)");
+ widget.group = TQString::tqfromLatin1("Views (Kopete)");
#ifdef EMBED_IMAGES
widget.iconSet = TQPixmap(kopete__ui__listview__listview_xpm);
#else
- widget.iconSet = TQString::fromLatin1("kopete__ui__listview__listview.png");
+ widget.iconSet = TQString::tqfromLatin1("kopete__ui__listview__listview.png");
#endif
- widget.includeFile = TQString::fromLatin1("kopetelistview.h");
- widget.toolTip = TQString::fromLatin1("List View (Kopete)");
- widget.whatsThis = TQString::fromLatin1("A component capable list view widget.");
+ widget.includeFile = TQString::tqfromLatin1("kopetelistview.h");
+ widget.toolTip = TQString::tqfromLatin1("List View (Kopete)");
+ widget.whatsThis = TQString::tqfromLatin1("A component capable list view widget.");
widget.isContainer = false;
- m_widgets.insert(TQString::fromLatin1("Kopete::UI::ListView::ListView"), widget);
+ m_widgets.insert(TQString::tqfromLatin1("Kopete::UI::ListView::ListView"), widget);
- widget.group = TQString::fromLatin1("Input (Kopete)");
+ widget.group = TQString::tqfromLatin1("Input (Kopete)");
#ifdef EMBED_IMAGES
widget.iconSet = TQPixmap(kopete__ui__listview__searchline_xpm);
#else
- widget.iconSet = TQString::fromLatin1("kopete__ui__listview__searchline.png");
+ widget.iconSet = TQString::tqfromLatin1("kopete__ui__listview__searchline.png");
#endif
- widget.includeFile = TQString::fromLatin1("kopetelistviewsearchline.h");
- widget.toolTip = TQString::fromLatin1("List View Search Line (Kopete)");
- widget.whatsThis = TQString::fromLatin1("Search line able to use Kopete custom list View.");
+ widget.includeFile = TQString::tqfromLatin1("kopetelistviewsearchline.h");
+ widget.toolTip = TQString::tqfromLatin1("List View Search Line (Kopete)");
+ widget.whatsThis = TQString::tqfromLatin1("Search line able to use Kopete custom list View.");
widget.isContainer = false;
- m_widgets.insert(TQString::fromLatin1("Kopete::UI::ListView::SearchLine"), widget);
+ m_widgets.insert(TQString::tqfromLatin1("Kopete::UI::ListView::SearchLine"), widget);
new KInstance("kopetewidgets");
}
@@ -113,19 +113,19 @@ KopeteWidgets::~KopeteWidgets()
{
}
-TQWidget *KopeteWidgets::create(const TQString &key, TQWidget *parent, const char *name)
+TQWidget *KopeteWidgets::create(const TQString &key, TQWidget *tqparent, const char *name)
{
- if (key == TQString::fromLatin1("Kopete::UI::AddressBookLinkWidget"))
- return new Kopete::UI::AddressBookLinkWidget(parent, name);
+ if (key == TQString::tqfromLatin1("Kopete::UI::AddressBookLinkWidget"))
+ return new Kopete::UI::AddressBookLinkWidget(tqparent, name);
- if (key == TQString::fromLatin1("Kopete::UI::ListView::ListView"))
- return new Kopete::UI::ListView::ListView(parent, name);
+ if (key == TQString::tqfromLatin1("Kopete::UI::ListView::ListView"))
+ return new Kopete::UI::ListView::ListView(tqparent, name);
- if (key == TQString::fromLatin1("Kopete::UI::ListView::SearchLine"))
- return new Kopete::UI::ListView::SearchLine(parent, 0, name);
+ if (key == TQString::tqfromLatin1("Kopete::UI::ListView::SearchLine"))
+ return new Kopete::UI::ListView::SearchLine(tqparent, 0, name);
return 0;
}
-KDE_Q_EXPORT_PLUGIN(KopeteWidgets)
+KDE_TQ_EXPORT_PLUGIN(KopeteWidgets)