summaryrefslogtreecommitdiffstats
path: root/kopete/kopete/chatwindow/emoticonselector.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/kopete/chatwindow/emoticonselector.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/kopete/chatwindow/emoticonselector.cpp')
-rw-r--r--kopete/kopete/chatwindow/emoticonselector.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/kopete/kopete/chatwindow/emoticonselector.cpp b/kopete/kopete/chatwindow/emoticonselector.cpp
index 719068d0..015f2f5c 100644
--- a/kopete/kopete/chatwindow/emoticonselector.cpp
+++ b/kopete/kopete/chatwindow/emoticonselector.cpp
@@ -32,12 +32,12 @@
#include <kdebug.h>
-EmoticonLabel::EmoticonLabel(const TQString &emoticonText, const TQString &pixmapPath, TQWidget *parent, const char *name)
- : TQLabel(parent,name)
+EmoticonLabel::EmoticonLabel(const TQString &emoticonText, const TQString &pixmapPath, TQWidget *tqparent, const char *name)
+ : TQLabel(tqparent,name)
{
mText = emoticonText;
setMovie( TQMovie(pixmapPath) );
- setAlignment(Qt::AlignCenter);
+ tqsetAlignment(TQt::AlignCenter);
TQToolTip::add(this,emoticonText);
// Somehow TQLabel doesn't tell a reasonable size when you use setMovie
// although it does it correctly for setPixmap. Therefore here is a little workaround
@@ -57,8 +57,8 @@ void EmoticonLabel::mouseReleaseEvent(TQMouseEvent*)
emit clicked(mText);
}
-EmoticonSelector::EmoticonSelector(TQWidget *parent, const char *name)
- : TQWidget(parent, name)
+EmoticonSelector::EmoticonSelector(TQWidget *tqparent, const char *name)
+ : TQWidget(tqparent, name)
{
// kdDebug(14000) << k_funcinfo << "called." << endl;
lay = 0L;
@@ -100,18 +100,18 @@ void EmoticonSelector::prepareList(void)
else
col++;
}
- resize(minimumSizeHint());
+ resize(tqminimumSizeHint());
}
void EmoticonSelector::emoticonClicked(const TQString &str)
{
// kdDebug(14000) << "selected emoticon '" << str << "'" << endl;
- // KDE4/Qt TODO: use qobject_cast instead.
+ // KDE4/TQt TODO: use qobject_cast instead.
emit ItemSelected ( str );
- if ( isVisible() && parentWidget() &&
- parentWidget()->inherits(TQPOPUPMENU_OBJECT_NAME_STRING) )
+ if ( isVisible() && tqparentWidget() &&
+ tqparentWidget()->inherits(TQPOPUPMENU_OBJECT_NAME_STRING) )
{
- parentWidget()->close();
+ tqparentWidget()->close();
}
}