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.cpp60
1 files changed, 30 insertions, 30 deletions
diff --git a/atlantik/libatlantikui/estateview.cpp b/atlantik/libatlantikui/estateview.cpp
index b8c3f38c..4755ccd3 100644
--- a/atlantik/libatlantikui/estateview.cpp
+++ b/atlantik/libatlantikui/estateview.cpp
@@ -14,11 +14,11 @@
// the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
// Boston, MA 02110-1301, USA.
-#include <qtooltip.h>
-#include <qpainter.h>
-#include <qtimer.h>
-#include <qwmatrix.h>
-#include <qcursor.h>
+#include <tqtooltip.h>
+#include <tqpainter.h>
+#include <tqtimer.h>
+#include <tqwmatrix.h>
+#include <tqcursor.h>
#include <kdebug.h>
#include <kdeversion.h>
@@ -36,7 +36,7 @@
#include "estateview.moc"
#include "config.h"
-EstateView::EstateView(Estate *estate, EstateOrientation orientation, const QString &_icon, bool indicateUnowned, bool highliteUnowned, bool darkenMortgaged, bool quartzEffects, QWidget *parent, const char *name) : QWidget(parent, name, WResizeNoErase)
+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)
{
m_estate = estate;
m_orientation = orientation;
@@ -57,7 +57,7 @@ EstateView::EstateView(Estate *estate, EstateOrientation orientation, const QStr
pe = 0;
updatePE();
- icon = new QPixmap(locate("data", "atlantik/pics/" + _icon));
+ icon = new TQPixmap(locate("data", "atlantik/pics/" + _icon));
icon = rotatePixmap(icon);
updateToolTip();
@@ -65,11 +65,11 @@ EstateView::EstateView(Estate *estate, EstateOrientation orientation, const QStr
void EstateView::updateToolTip()
{
- QToolTip::remove(this);
+ TQToolTip::remove(this);
if ( m_estate )
{
- QString toolTip = m_estate->name();
+ TQString toolTip = m_estate->name();
if ( m_estate->isOwned() )
{
toolTip.append( "\n" + i18n("Owner: %1").arg( m_estate->owner()->name() ) );
@@ -87,7 +87,7 @@ void EstateView::updateToolTip()
else if ( m_estate->money() )
toolTip.append( "\n" + i18n("Money: %1").arg( m_estate->money() ) );
- QToolTip::add( this, toolTip );
+ TQToolTip::add( this, toolTip );
}
}
@@ -123,12 +123,12 @@ void EstateView::setViewProperties(bool indicateUnowned, bool highliteUnowned, b
update();
}
-QPixmap *EstateView::rotatePixmap(QPixmap *p)
+TQPixmap *EstateView::rotatePixmap(TQPixmap *p)
{
if (p==0 || p->isNull())
return 0;
- QWMatrix m;
+ TQWMatrix m;
switch(m_orientation)
{
@@ -152,7 +152,7 @@ KPixmap *EstateView::rotatePixmap(KPixmap *p)
if (p==0 || p->isNull())
return 0;
- QWMatrix m;
+ TQWMatrix m;
switch(m_orientation)
{
@@ -217,7 +217,7 @@ void EstateView::repositionPortfolioEstate()
}
}
-void EstateView::paintEvent(QPaintEvent *)
+void EstateView::paintEvent(TQPaintEvent *)
{
m_titleHeight = height()/4;
m_titleWidth = width()/4;
@@ -250,11 +250,11 @@ void EstateView::paintEvent(QPaintEvent *)
if (b_recreate)
{
delete qpixmap;
- qpixmap = new QPixmap(width(), height());
+ qpixmap = new TQPixmap(width(), height());
- QColor greenHouse(0, 255, 0);
- QColor redHotel(255, 51, 51);
- QPainter painter;
+ TQColor greenHouse(0, 255, 0);
+ TQColor redHotel(255, 51, 51);
+ TQPainter painter;
painter.begin(qpixmap, this);
painter.setPen(Qt::black);
@@ -280,7 +280,7 @@ void EstateView::paintEvent(QPaintEvent *)
else
quartzBuffer->resize(m_titleWidth-2, 25);
- QPainter quartzPainter;
+ TQPainter quartzPainter;
quartzPainter.begin(quartzBuffer, this);
painter.setBrush(m_estate->color());
@@ -401,15 +401,15 @@ void EstateView::paintEvent(QPaintEvent *)
delete quartzBuffer;
}
- QFont font = QFont( KGlobalSettings::generalFont().family(), KGlobalSettings::generalFont().pointSize(), QFont::Normal );
+ TQFont font = TQFont( KGlobalSettings::generalFont().family(), KGlobalSettings::generalFont().pointSize(), TQFont::Normal );
painter.setFont(font);
- QString estateName = m_estate->name();
+ TQString estateName = m_estate->name();
#if defined(KDE_MAKE_VERSION)
#if KDE_VERSION >= KDE_MAKE_VERSION(3,2,0)
if ( m_estate->color().isValid() && ( m_orientation == West || m_orientation == East ) )
- estateName = KStringHandler::rPixelSqueeze( m_estate->name(), QFontMetrics( font ), 3*width()/4 );
+ estateName = KStringHandler::rPixelSqueeze( m_estate->name(), TQFontMetrics( font ), 3*width()/4 );
else
- estateName = KStringHandler::rPixelSqueeze( m_estate->name(), QFontMetrics( font ), width() );
+ estateName = KStringHandler::rPixelSqueeze( m_estate->name(), TQFontMetrics( font ), width() );
#endif
#endif
if (m_estate->color().isValid() && m_orientation == West)
@@ -422,15 +422,15 @@ void EstateView::paintEvent(QPaintEvent *)
bitBlt(this, 0, 0, qpixmap);
}
-void EstateView::resizeEvent(QResizeEvent *)
+void EstateView::resizeEvent(TQResizeEvent *)
{
m_recreateQuartz = true;
b_recreate = true;
- QTimer::singleShot(0, this, SLOT(slotResizeAftermath()));
+ TQTimer::singleShot(0, this, TQT_SLOT(slotResizeAftermath()));
}
-void EstateView::mousePressEvent(QMouseEvent *e)
+void EstateView::mousePressEvent(TQMouseEvent *e)
{
if (e->button()==RightButton && m_estate->isOwned())
{
@@ -482,9 +482,9 @@ void EstateView::mousePressEvent(QMouseEvent *e)
KPopupMenu *pm = dynamic_cast<KPopupMenu *>(rmbMenu);
if (pm) {
- connect(pm, SIGNAL(activated(int)), this, SLOT(slotMenuAction(int)));
+ connect(pm, TQT_SIGNAL(activated(int)), this, TQT_SLOT(slotMenuAction(int)));
}
- QPoint g = QCursor::pos();
+ TQPoint g = TQCursor::pos();
rmbMenu->exec(g);
delete rmbMenu;
}
@@ -521,9 +521,9 @@ void EstateView::slotMenuAction(int item)
// Kudos to Gallium <gallium@kde.org> for writing the Quartz KWin style and
// letting me use the ultra slick algorithm!
-void EstateView::drawQuartzBlocks(KPixmap *pi, KPixmap &p, const QColor &c1, const QColor &c2)
+void EstateView::drawQuartzBlocks(KPixmap *pi, KPixmap &p, const TQColor &c1, const TQColor &c2)
{
- QPainter px;
+ TQPainter px;
if (pi==0 || pi->isNull())
return;