diff options
Diffstat (limited to 'karbon/widgets/vruler.cpp')
-rw-r--r-- | karbon/widgets/vruler.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/karbon/widgets/vruler.cpp b/karbon/widgets/vruler.cpp index c0ff0a20..cd97b3da 100644 --- a/karbon/widgets/vruler.cpp +++ b/karbon/widgets/vruler.cpp @@ -40,7 +40,7 @@ const char *VRuler::m_nums[] = { "XX XXXXXX XXX XXX XXXXXX XXX XXXX XXXXX XXXXX XXXX XXX" }; -VRuler::VRuler(Qt::Orientation o, TQWidget *parent, const char *name) : super(parent, name, WRepaintNoErase | WResizeNoErase), m_pixmapNums(m_nums) +VRuler::VRuler(TQt::Orientation o, TQWidget *parent, const char *name) : super(parent, name, WRepaintNoErase | WResizeNoErase), m_pixmapNums(m_nums) { setBackgroundMode(NoBackground); setFrameStyle(Box | Sunken); @@ -53,7 +53,7 @@ VRuler::VRuler(Qt::Orientation o, TQWidget *parent, const char *name) : super(pa m_pixmapBuffer = 0; m_currentPosition = -1; - if (m_orientation == Qt::Horizontal) { + if (m_orientation == TQt::Horizontal) { setFixedHeight(RULER_SIZE); initMarker(MARKER_WIDTH, MARKER_HEIGHT); } else { @@ -89,7 +89,7 @@ void VRuler::recalculateSize() m_pixmapBuffer = 0; } - if (m_orientation == Qt::Horizontal) { + if (m_orientation == TQt::Horizontal) { w = width(); h = RULER_SIZE; } else { @@ -129,7 +129,7 @@ void VRuler::setZoom(double zoom) void VRuler::updatePointer(TQ_INT32 x, TQ_INT32 y) { if (m_pixmapBuffer) { - if (m_orientation == Qt::Horizontal) { + if (m_orientation == TQt::Horizontal) { if (m_currentPosition != -1) repaint(m_currentPosition, 1, MARKER_WIDTH, MARKER_HEIGHT); @@ -151,7 +151,7 @@ void VRuler::updatePointer(TQ_INT32 x, TQ_INT32 y) void VRuler::updateVisibleArea(TQ_INT32 xpos, TQ_INT32 ypos) { - if (m_orientation == Qt::Horizontal) + if (m_orientation == TQt::Horizontal) m_firstVisible = xpos; else m_firstVisible = ypos; @@ -221,7 +221,7 @@ void VRuler::drawRuler() bool s3 = KoUnit::fromUserValue(st3, m_unit) * m_zoom > 3.0; bool s4 = KoUnit::fromUserValue(st4, m_unit) * m_zoom > 3.0; - if (m_orientation == Qt::Horizontal) { + if (m_orientation == TQt::Horizontal) { // XXX: This was 7 * 4 -- why? what was the idea about having 30 point intervals? float cx = KoUnit::fromUserValue(100, m_unit) / m_zoom; TQ_INT32 step = tqRound(cx);//((TQ_INT32)(cx / (float)stt) + 1) * stt; @@ -290,7 +290,7 @@ void VRuler::resizeEvent(TQResizeEvent *) void VRuler::show() { - if (m_orientation == Qt::Horizontal) { + if (m_orientation == TQt::Horizontal) { setFixedHeight(RULER_SIZE); initMarker(MARKER_WIDTH, MARKER_HEIGHT); } else { @@ -303,7 +303,7 @@ void VRuler::show() void VRuler::hide() { - if (m_orientation == Qt::Horizontal) + if (m_orientation == TQt::Horizontal) setFixedHeight(1); else setFixedWidth(1); |