summaryrefslogtreecommitdiffstats
path: root/atlantik/libatlantikui/estateview.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'atlantik/libatlantikui/estateview.cpp')
-rw-r--r--atlantik/libatlantikui/estateview.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/atlantik/libatlantikui/estateview.cpp b/atlantik/libatlantikui/estateview.cpp
index 4755ccd3..19eec4d5 100644
--- a/atlantik/libatlantikui/estateview.cpp
+++ b/atlantik/libatlantikui/estateview.cpp
@@ -36,7 +36,7 @@
#include "estateview.moc"
#include "config.h"
-EstateView::EstateView(Estate *estate, EstateOrientation orientation, const TQString &_icon, bool indicateUnowned, bool highliteUnowned, bool darkenMortgaged, bool quartzEffects, TQWidget *parent, const char *name) : TQWidget(parent, name, WResizeNoErase)
+EstateView::EstateView(Estate *estate, EstateOrientation orientation, const TQString &_icon, bool indicateUnowned, bool highliteUnowned, bool darkenMortgaged, bool quartzEffects, TQWidget *tqparent, const char *name) : TQWidget(tqparent, name, WResizeNoErase)
{
m_estate = estate;
m_orientation = orientation;
@@ -72,20 +72,20 @@ void EstateView::updateToolTip()
TQString toolTip = m_estate->name();
if ( m_estate->isOwned() )
{
- toolTip.append( "\n" + i18n("Owner: %1").arg( m_estate->owner()->name() ) );
+ toolTip.append( "\n" + i18n("Owner: %1").tqarg( m_estate->owner()->name() ) );
if ( m_estate->isMortgaged() )
- toolTip.append( "\n" + i18n("Unmortgage Price: %1").arg( m_estate->unmortgagePrice() ) );
+ toolTip.append( "\n" + i18n("Unmortgage Price: %1").tqarg( m_estate->unmortgagePrice() ) );
else
- toolTip.append( "\n" + i18n("Mortgage Value: %1").arg( m_estate->mortgagePrice() ) );
+ toolTip.append( "\n" + i18n("Mortgage Value: %1").tqarg( m_estate->mortgagePrice() ) );
if ( m_estate->canSellHouses() )
- toolTip.append( "\n" + i18n("House Value: %1").arg( m_estate->houseSellPrice() ) );
+ toolTip.append( "\n" + i18n("House Value: %1").tqarg( m_estate->houseSellPrice() ) );
if ( m_estate->canBuyHouses() )
- toolTip.append( "\n" + i18n("House Price: %1").arg( m_estate->housePrice() ) );
+ toolTip.append( "\n" + i18n("House Price: %1").tqarg( m_estate->housePrice() ) );
}
else if ( m_estate->canBeOwned() )
- toolTip.append( "\n" + i18n("Price: %1").arg( m_estate->price() ) );
+ toolTip.append( "\n" + i18n("Price: %1").tqarg( m_estate->price() ) );
else if ( m_estate->money() )
- toolTip.append( "\n" + i18n("Money: %1").arg( m_estate->money() ) );
+ toolTip.append( "\n" + i18n("Money: %1").tqarg( m_estate->money() ) );
TQToolTip::add( this, toolTip );
}
@@ -255,9 +255,9 @@ void EstateView::paintEvent(TQPaintEvent *)
TQColor greenHouse(0, 255, 0);
TQColor redHotel(255, 51, 51);
TQPainter painter;
- painter.begin(qpixmap, this);
+ painter.tqbegin(TQT_TQPAINTDEVICE(qpixmap), this);
- painter.setPen(Qt::black);
+ painter.setPen(TQt::black);
if (m_darkenMortgaged==true && m_estate->isMortgaged())
painter.setBrush(m_estate->bgColor().light(10));
@@ -281,7 +281,7 @@ void EstateView::paintEvent(TQPaintEvent *)
quartzBuffer->resize(m_titleWidth-2, 25);
TQPainter quartzPainter;
- quartzPainter.begin(quartzBuffer, this);
+ quartzPainter.tqbegin(TQT_TQPAINTDEVICE(quartzBuffer), this);
painter.setBrush(m_estate->color());
switch(m_orientation)
@@ -432,7 +432,7 @@ void EstateView::resizeEvent(TQResizeEvent *)
void EstateView::mousePressEvent(TQMouseEvent *e)
{
- if (e->button()==RightButton && m_estate->isOwned())
+ if (e->button()==Qt::RightButton && m_estate->isOwned())
{
KPopupMenu *rmbMenu = new KPopupMenu(this);
rmbMenu->insertTitle(m_estate->name());
@@ -477,7 +477,7 @@ void EstateView::mousePressEvent(TQMouseEvent *e)
{
// Request trade
if (Player *player = m_estate->owner())
- rmbMenu->insertItem(i18n("Request Trade with %1").arg(player->name()), 3);
+ rmbMenu->insertItem(i18n("Request Trade with %1").tqarg(player->name()), 3);
}
KPopupMenu *pm = dynamic_cast<KPopupMenu *>(rmbMenu);
@@ -488,7 +488,7 @@ void EstateView::mousePressEvent(TQMouseEvent *e)
rmbMenu->exec(g);
delete rmbMenu;
}
- else if (e->button()==LeftButton)
+ else if (e->button()==Qt::LeftButton)
emit LMBClicked(m_estate);
}