From 11f31c37e5fa4889d9989f10272f44845449cb7b Mon Sep 17 00:00:00 2001 From: tpearson Date: Mon, 6 Sep 2010 20:59:29 +0000 Subject: Initial TQt conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/rosegarden@1172292 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- src/gui/rulers/PropertyViewRuler.cpp | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) (limited to 'src/gui/rulers/PropertyViewRuler.cpp') diff --git a/src/gui/rulers/PropertyViewRuler.cpp b/src/gui/rulers/PropertyViewRuler.cpp index cf5d89d..0365ae8 100644 --- a/src/gui/rulers/PropertyViewRuler.cpp +++ b/src/gui/rulers/PropertyViewRuler.cpp @@ -34,14 +34,14 @@ #include "DefaultVelocityColour.h" #include "gui/general/GUIPalette.h" #include "gui/general/HZoomable.h" -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include namespace Rosegarden @@ -52,9 +52,9 @@ PropertyViewRuler::PropertyViewRuler(RulerScale *rulerScale, const PropertyName &property, double xorigin, int height, - QWidget *parent, + TQWidget *parent, const char *name) : - QWidget(parent, name), + TQWidget(parent, name), m_propertyName(property), m_xorigin(xorigin), m_height(height), @@ -65,12 +65,12 @@ PropertyViewRuler::PropertyViewRuler(RulerScale *rulerScale, m_fontMetrics(m_boldFont) { m_boldFont.setBold(true); - m_fontMetrics = QFontMetrics(m_boldFont); + m_fontMetrics = TQFontMetrics(m_boldFont); setBackgroundColor(GUIPalette::getColour(GUIPalette::SegmentCanvas)); - QString tip = i18n("%1 controller").arg(strtoqstr(property)); - QToolTip::add + TQString tip = i18n("%1 controller").arg(strtoqstr(property)); + TQToolTip::add (this, tip); } @@ -109,7 +109,7 @@ PropertyViewRuler::sizeHint() const m_rulerScale->getBarWidth(m_rulerScale->getLastVisibleBar()) + m_xorigin; - QSize res(std::max(int(width), m_width), m_height); + TQSize res(std::max(int(width), m_width), m_height); return res; } @@ -118,21 +118,21 @@ QSize PropertyViewRuler::minimumSizeHint() const { double firstBarWidth = m_rulerScale->getBarWidth(0) + m_xorigin; - QSize res = QSize(int(firstBarWidth), m_height); + TQSize res = TQSize(int(firstBarWidth), m_height); return res; } void -PropertyViewRuler::paintEvent(QPaintEvent* e) +PropertyViewRuler::paintEvent(TQPaintEvent* e) { - QPainter paint(this); + TQPainter paint(this); if (getHScaleFactor() != 1.0) paint.scale(getHScaleFactor(), 1.0); paint.setPen(GUIPalette::getColour(GUIPalette::MatrixElementBorder)); - QRect clipRect = e->rect().normalize(); + TQRect clipRect = e->rect().normalize(); timeT from = m_rulerScale->getTimeForX (clipRect.x() - m_currentXOffset - m_xorigin); -- cgit v1.2.1