summaryrefslogtreecommitdiffstats
path: root/kanagram/src/kanagram.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-01-04 02:22:38 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-01-04 02:22:38 +0000
commit98a12d05a48814bec3870b9a6d5865475cfa1c95 (patch)
treea711801e47696fb0cf162abd7330e0b5b480ba39 /kanagram/src/kanagram.cpp
parent421a1845137c7c396b5d03bce53237fcb149d602 (diff)
downloadtdeedu-98a12d05a48814bec3870b9a6d5865475cfa1c95.tar.gz
tdeedu-98a12d05a48814bec3870b9a6d5865475cfa1c95.zip
Automated conversion for enhanced compatibility with TQt for Qt4 3.4.0 TP1
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeedu@1211429 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kanagram/src/kanagram.cpp')
-rw-r--r--kanagram/src/kanagram.cpp50
1 files changed, 25 insertions, 25 deletions
diff --git a/kanagram/src/kanagram.cpp b/kanagram/src/kanagram.cpp
index 42cb90f9..3a03b6e8 100644
--- a/kanagram/src/kanagram.cpp
+++ b/kanagram/src/kanagram.cpp
@@ -225,7 +225,7 @@ void Kanagram::paintEvent(TQPaintEvent *)
p.setPen(TQPen(black, 3));
//Draw the border of the input box
- TQRect borderRect = m_inputBox->geometry();
+ TQRect borderRect = m_inputBox->tqgeometry();
borderRect.setLeft(borderRect.left() - 2);
borderRect.setTop(borderRect.top() - 2);
borderRect.setWidth(borderRect.width() + 2 * 1);
@@ -377,7 +377,7 @@ TQRect Kanagram::innerRect(const TQRect &rect, const int xMargin, const int yMar
void Kanagram::mousePressEvent(TQMouseEvent *e)
{
- if (m_nextRect.contains(e->pos()))
+ if (m_nextRect.tqcontains(e->pos()))
{
hideHint();
m_game->nextAnagram();
@@ -386,51 +386,51 @@ void Kanagram::mousePressEvent(TQMouseEvent *e)
update();
}
- if(m_configRect.contains(e->pos()))
+ if(m_configRect.tqcontains(e->pos()))
{
showSettings();
}
- if(m_quitRect.contains(e->pos()))
+ if(m_quitRect.tqcontains(e->pos()))
{
kapp->quit();
}
- if(m_revealRect.contains(e->pos()))
+ if(m_revealRect.tqcontains(e->pos()))
{
m_game->restoreWord();
update();
}
- if(m_logoRect.contains(e->pos()))
+ if(m_logoRect.tqcontains(e->pos()))
{
m_helpMenu->aboutApplication();
}
if(!m_showHint && m_overHelp)
{
- if(m_handbookRect.contains(e->pos()))
+ if(m_handbookRect.tqcontains(e->pos()))
{
m_helpMenu->appHelpActivated();
}
- if(m_aboutKDERect.contains(e->pos()))
+ if(m_aboutKDERect.tqcontains(e->pos()))
{
m_helpMenu->aboutKDE();
}
- if(m_aboutAppRect.contains(e->pos()))
+ if(m_aboutAppRect.tqcontains(e->pos()))
{
m_helpMenu->aboutApplication();
}
}
- if(m_hintBoxRect.contains(e->pos()))
+ if(m_hintBoxRect.tqcontains(e->pos()))
{
hideHint();
}
- if(m_switcherRect.contains(e->pos()) || m_arrowRect.contains(e->pos()))
+ if(m_switcherRect.tqcontains(e->pos()) || m_arrowRect.tqcontains(e->pos()))
{
if(!(e->button() == RightButton))
m_game->nextVocab();
@@ -444,7 +444,7 @@ void Kanagram::mousePressEvent(TQMouseEvent *e)
update();
}
- if(m_hintRect.contains(e->pos()))
+ if(m_hintRect.tqcontains(e->pos()))
{
if(m_showHint == true) m_showHint = false;
else
@@ -459,7 +459,7 @@ void Kanagram::mousePressEvent(TQMouseEvent *e)
update();
}
- if(m_upRect.contains(e->pos()) && m_inputBox->text() != "")
+ if(m_upRect.tqcontains(e->pos()) && m_inputBox->text() != "")
{
if(m_inputBox->text().lower().stripWhiteSpace() == m_game->getWord())
{
@@ -492,7 +492,7 @@ void Kanagram::updateButtonHighlighting(const TQPoint &p)
bool haveToUpdate;
haveToUpdate = false;
- if (m_nextRect.contains(p))
+ if (m_nextRect.tqcontains(p))
{
if (!m_overNext)
{
@@ -506,7 +506,7 @@ void Kanagram::updateButtonHighlighting(const TQPoint &p)
haveToUpdate = true;
}
- if(m_configRect.contains(p))
+ if(m_configRect.tqcontains(p))
{
if(!m_overConfig)
{
@@ -520,7 +520,7 @@ void Kanagram::updateButtonHighlighting(const TQPoint &p)
haveToUpdate = true;
}
- if(m_helpRect.contains(p))
+ if(m_helpRect.tqcontains(p))
{
if(!m_overHelp)
{
@@ -534,7 +534,7 @@ void Kanagram::updateButtonHighlighting(const TQPoint &p)
haveToUpdate = true;
}
- if(m_quitRect.contains(p))
+ if(m_quitRect.tqcontains(p))
{
if(!m_overQuit)
{
@@ -548,7 +548,7 @@ void Kanagram::updateButtonHighlighting(const TQPoint &p)
haveToUpdate = true;
}
- if(m_hintRect.contains(p))
+ if(m_hintRect.tqcontains(p))
{
if(!m_overHint)
{
@@ -562,7 +562,7 @@ void Kanagram::updateButtonHighlighting(const TQPoint &p)
haveToUpdate = true;
}
- if(m_hintBoxRect.contains(p))
+ if(m_hintBoxRect.tqcontains(p))
{
if(!m_overHintBox)
{
@@ -576,7 +576,7 @@ void Kanagram::updateButtonHighlighting(const TQPoint &p)
haveToUpdate = true;
}
- if(m_revealRect.contains(p))
+ if(m_revealRect.tqcontains(p))
{
if(!m_overReveal)
{
@@ -590,7 +590,7 @@ void Kanagram::updateButtonHighlighting(const TQPoint &p)
haveToUpdate = true;
}
- if(m_upRect.contains(p))
+ if(m_upRect.tqcontains(p))
{
if(!m_overUp)
{
@@ -604,7 +604,7 @@ void Kanagram::updateButtonHighlighting(const TQPoint &p)
haveToUpdate = true;
}
- if(m_switcherRect.contains(p) || m_arrowRect.contains(p))
+ if(m_switcherRect.tqcontains(p) || m_arrowRect.tqcontains(p))
{
if(!m_overSwitcher)
{
@@ -618,7 +618,7 @@ void Kanagram::updateButtonHighlighting(const TQPoint &p)
haveToUpdate = true;
}
- if(m_aboutAppRect.contains(p))
+ if(m_aboutAppRect.tqcontains(p))
{
if(!m_overAboutApp)
{
@@ -634,7 +634,7 @@ void Kanagram::updateButtonHighlighting(const TQPoint &p)
if(!m_showHint)
{
- if(m_handbookRect.contains(p))
+ if(m_handbookRect.tqcontains(p))
{
if(!m_overHandbook)
{
@@ -648,7 +648,7 @@ void Kanagram::updateButtonHighlighting(const TQPoint &p)
haveToUpdate = true;
}
- if(m_aboutKDERect.contains(p))
+ if(m_aboutKDERect.tqcontains(p))
{
if(!m_overAboutKDE)
{