summaryrefslogtreecommitdiffstats
path: root/atlantik/libatlantikui/portfolioestate.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'atlantik/libatlantikui/portfolioestate.cpp')
-rw-r--r--atlantik/libatlantikui/portfolioestate.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/atlantik/libatlantikui/portfolioestate.cpp b/atlantik/libatlantikui/portfolioestate.cpp
index 625fb055..3bfed677 100644
--- a/atlantik/libatlantikui/portfolioestate.cpp
+++ b/atlantik/libatlantikui/portfolioestate.cpp
@@ -14,20 +14,20 @@
// the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
// Boston, MA 02110-1301, USA.
-#include <qcolor.h>
-#include <qpainter.h>
-#include <qrect.h>
+#include <tqcolor.h>
+#include <tqpainter.h>
+#include <tqrect.h>
#include "portfolioestate.moc"
#include "estate.h"
-PortfolioEstate::PortfolioEstate(Estate *estate, Player *player, bool alwaysOwned, QWidget *parent, const char *name) : QWidget(parent, name)
+PortfolioEstate::PortfolioEstate(Estate *estate, Player *player, bool alwaysOwned, TQWidget *parent, const char *name) : TQWidget(parent, name)
{
m_estate = estate;
m_player = player;
m_alwaysOwned = alwaysOwned;
- QSize s(PE_WIDTH, PE_HEIGHT);
+ TQSize s(PE_WIDTH, PE_HEIGHT);
setFixedSize(s);
b_recreate = true;
@@ -39,16 +39,16 @@ void PortfolioEstate::estateChanged()
update();
}
-QPixmap PortfolioEstate::drawPixmap(Estate *estate, Player *player, bool alwaysOwned)
+TQPixmap PortfolioEstate::drawPixmap(Estate *estate, Player *player, bool alwaysOwned)
{
- QColor lightGray(204, 204, 204), darkGray(153, 153, 153);
- QPixmap qpixmap(PE_WIDTH, PE_HEIGHT);
- QPainter painter;
+ TQColor lightGray(204, 204, 204), darkGray(153, 153, 153);
+ TQPixmap qpixmap(PE_WIDTH, PE_HEIGHT);
+ TQPainter painter;
painter.begin(&qpixmap);
painter.setPen(lightGray);
painter.setBrush(white);
- painter.drawRect(QRect(0, 0, PE_WIDTH, PE_HEIGHT));
+ painter.drawRect(TQRect(0, 0, PE_WIDTH, PE_HEIGHT));
if (alwaysOwned || (estate && estate->isOwned() && player == estate->owner()))
{
painter.setPen(darkGray);
@@ -77,7 +77,7 @@ QPixmap PortfolioEstate::drawPixmap(Estate *estate, Player *player, bool alwaysO
return qpixmap;
}
-void PortfolioEstate::paintEvent(QPaintEvent *)
+void PortfolioEstate::paintEvent(TQPaintEvent *)
{
if (b_recreate)
{
@@ -87,7 +87,7 @@ void PortfolioEstate::paintEvent(QPaintEvent *)
bitBlt(this, 0, 0, &m_pixmap);
}
-void PortfolioEstate::mousePressEvent(QMouseEvent *e)
+void PortfolioEstate::mousePressEvent(TQMouseEvent *e)
{
if (e->button()==LeftButton)
emit estateClicked(m_estate);