summaryrefslogtreecommitdiffstats
path: root/amor/amor.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-22 21:31:21 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-22 21:31:21 +0000
commita1bd60b34891ccc77056c190d7871bc4b14fe654 (patch)
tree713f2f72c8f08a18df12f5bbeef7f9b61b19d4f1 /amor/amor.cpp
parent8d92c3c2a4131996726cc7b625d3cd3caec296de (diff)
downloadtdetoys-a1bd60b34891ccc77056c190d7871bc4b14fe654.tar.gz
tdetoys-a1bd60b34891ccc77056c190d7871bc4b14fe654.zip
TQt4 port kdetoys
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdetoys@1238103 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'amor/amor.cpp')
-rw-r--r--amor/amor.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/amor/amor.cpp b/amor/amor.cpp
index bd0171b..fafee0c 100644
--- a/amor/amor.cpp
+++ b/amor/amor.cpp
@@ -152,7 +152,7 @@ Amor::Amor() : DCOPObject( "AmorIface" ), TQObject()
TQT_SLOT(slotMouseClicked(const TQPoint &)));
connect(mAmor, TQT_SIGNAL(dragged(const TQPoint &, bool)),
TQT_SLOT(slotWidgetDragged(const TQPoint &, bool)));
- mAmor->resize(mTheme.maximumSize());
+ mAmor->resize(mTheme.tqmaximumSize());
mTimer = new TQTimer(this);
connect(mTimer, TQT_SIGNAL(timeout()), TQT_SLOT(slotTimeout()));
@@ -288,7 +288,7 @@ void Amor::reset()
mPosition = mCurrAnim->hotspot().x();
mState = Normal;
- mAmor->resize(mTheme.maximumSize());
+ mAmor->resize(mTheme.tqmaximumSize());
mCurrAnim->reset();
mTimer->start(0, true);
@@ -562,14 +562,14 @@ void Amor::restack()
#endif
Window sibling = mTargetWin;
- Window dw, parent = None, *wins;
+ Window dw, tqparent = None, *wins;
do {
unsigned int nwins = 0;
- // We must use the target window's parent as our sibling.
- // Is there a faster way to get parent window than XQueryTree?
- if (XQueryTree(qt_xdisplay(), sibling, &dw, &parent, &wins, &nwins))
+ // We must use the target window's tqparent as our sibling.
+ // Is there a faster way to get tqparent window than XQueryTree?
+ if (XQueryTree(qt_xdisplay(), sibling, &dw, &tqparent, &wins, &nwins))
{
if (nwins)
{
@@ -577,9 +577,9 @@ void Amor::restack()
}
}
- if (parent != None && parent != dw )
- sibling = parent;
- } while ( parent != None && parent != dw );
+ if (tqparent != None && tqparent != dw )
+ sibling = tqparent;
+ } while ( tqparent != None && tqparent != dw );
// Set animation's stacking order to be above the window manager's
// decoration of target window.
@@ -748,7 +748,7 @@ void Amor::slotOffsetChanged(int off)
//
void Amor::slotAbout()
{
- TQString about = i18n("Amor Version %1\n\n").arg(AMOR_VERSION) +
+ TQString about = i18n("Amor Version %1\n\n").tqarg(AMOR_VERSION) +
i18n("Amusing Misuse Of Resources\n\n") +
i18n("Copyright (c) 1999 Martin R. Jones <mjones@kde.org>\n\n") +
i18n("Original Author: Martin R. Jones <mjones@kde.org>\n") +