diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-11-05 11:54:26 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-11-16 23:37:57 +0900 |
commit | ef06f14f2475bd08d3ea2ceec54a7b2238f3554e (patch) | |
tree | 03df826633e4ba084d133ca977c4fc37c74f21ac /karbon/widgets | |
parent | 895081803a715ee89f4a90cfbf63d558ef2b2ebc (diff) | |
download | koffice-ef06f14f2475bd08d3ea2ceec54a7b2238f3554e.tar.gz koffice-ef06f14f2475bd08d3ea2ceec54a7b2238f3554e.zip |
Replace Qt with TQt
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'karbon/widgets')
-rw-r--r-- | karbon/widgets/vcolorslider.cpp | 2 | ||||
-rw-r--r-- | karbon/widgets/vgradientwidget.cpp | 10 | ||||
-rw-r--r-- | karbon/widgets/vreference.cpp | 2 | ||||
-rw-r--r-- | karbon/widgets/vruler.cpp | 16 | ||||
-rw-r--r-- | karbon/widgets/vruler.h | 4 |
5 files changed, 17 insertions, 17 deletions
diff --git a/karbon/widgets/vcolorslider.cpp b/karbon/widgets/vcolorslider.cpp index 15961cca..53f90786 100644 --- a/karbon/widgets/vcolorslider.cpp +++ b/karbon/widgets/vcolorslider.cpp @@ -56,7 +56,7 @@ void VColorSlider::init() TQHBoxLayout *layout = new TQHBoxLayout( this, 3 ); m_label = new TQLabel( this ); - m_gradientSelect = new KGradientSelector( Qt::Horizontal, this ); + m_gradientSelect = new KGradientSelector( TQt::Horizontal, this ); m_spinBox = new KIntSpinBox( this ); layout->addWidget( m_label ); diff --git a/karbon/widgets/vgradientwidget.cpp b/karbon/widgets/vgradientwidget.cpp index 64cbf373..f76f1fed 100644 --- a/karbon/widgets/vgradientwidget.cpp +++ b/karbon/widgets/vgradientwidget.cpp @@ -195,7 +195,7 @@ void VGradientWidget::mousePressEvent( TQMouseEvent* e ) { // found mid point at position currentPoint = 2 * i + 2; - if( e->button() == Qt::LeftButton ) + if( e->button() == TQt::LeftButton ) setCursor( VCursor::horzMove() ); return; } @@ -204,7 +204,7 @@ void VGradientWidget::mousePressEvent( TQMouseEvent* e ) { // found ramp point at position currentPoint = 2 * i + 1; - if( e->button() == Qt::LeftButton ) + if( e->button() == TQt::LeftButton ) setCursor( VCursor::horzMove() ); return; } @@ -215,7 +215,7 @@ void VGradientWidget::mousePressEvent( TQMouseEvent* e ) void VGradientWidget::mouseReleaseEvent( TQMouseEvent* e ) { - if( e->button() == Qt::RightButton && currentPoint ) + if( e->button() == TQt::RightButton && currentPoint ) { if( m_pntArea.contains( e->x(), e->y() ) && ( currentPoint % 2 == 1 ) ) { @@ -238,7 +238,7 @@ void VGradientWidget::mouseDoubleClickEvent( TQMouseEvent* e ) if( ! m_pntArea.contains( e->x(), e->y() ) ) return; - if( e->button() != Qt::LeftButton ) + if( e->button() != TQt::LeftButton ) return; if( currentPoint % 2 == 1 ) @@ -269,7 +269,7 @@ void VGradientWidget::mouseDoubleClickEvent( TQMouseEvent* e ) void VGradientWidget::mouseMoveEvent( TQMouseEvent* e ) { - if( e->state() & Qt::RightButton ) + if( e->state() & TQt::RightButton ) return; TQPtrList<VColorStop>& colorStops = m_gradient->m_colorStops; diff --git a/karbon/widgets/vreference.cpp b/karbon/widgets/vreference.cpp index c4e96ddf..596c822e 100644 --- a/karbon/widgets/vreference.cpp +++ b/karbon/widgets/vreference.cpp @@ -29,7 +29,7 @@ VReference::VReference( TQWidget *parent, const char *name ) : TQFrame ( parent, name ) { TQVBoxLayout* layout = new TQVBoxLayout( this ); - mButtonGroup = new TQButtonGroup (3,Qt::Vertical, this ); + mButtonGroup = new TQButtonGroup (3,TQt::Vertical, this ); TQRadioButton* radio = new TQRadioButton ( mButtonGroup ); mButtonGroup->insert( radio, TopLeft ); radio = new TQRadioButton ( mButtonGroup ); 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); diff --git a/karbon/widgets/vruler.h b/karbon/widgets/vruler.h index 2690a4b2..5fadc54a 100644 --- a/karbon/widgets/vruler.h +++ b/karbon/widgets/vruler.h @@ -36,7 +36,7 @@ class VRuler : public TQFrame { typedef TQFrame super; public: - VRuler(Qt::Orientation, TQWidget *parent = 0, const char *name = 0); + VRuler(TQt::Orientation, TQWidget *parent = 0, const char *name = 0); virtual ~VRuler(); public: @@ -62,7 +62,7 @@ protected: private: KoUnit::Unit m_unit; - Qt::Orientation m_orientation; + TQt::Orientation m_orientation; TQ_INT32 m_firstVisible; TQ_INT32 m_currentPosition; TQPixmap *m_pixmapBuffer; |