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 /kivio/kiviopart/stencilbarbutton.cpp | |
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 'kivio/kiviopart/stencilbarbutton.cpp')
-rw-r--r-- | kivio/kiviopart/stencilbarbutton.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/kivio/kiviopart/stencilbarbutton.cpp b/kivio/kiviopart/stencilbarbutton.cpp index bb9b5627..0c41bbc9 100644 --- a/kivio/kiviopart/stencilbarbutton.cpp +++ b/kivio/kiviopart/stencilbarbutton.cpp @@ -38,7 +38,7 @@ DragBarButton::DragBarButton( const TQString& text, TQWidget* parent, const char m_bDragged = false; m_bMouseOn = false; m_bClose = false; - m_orientation = Qt::Vertical; + m_orientation = TQt::Vertical; const char* stencil_xpm[] = { "12 12 17 1", @@ -111,7 +111,7 @@ void DragBarButton::drawButton( TQPainter* paint ) { TQSize pixSize; - if(m_orientation == Qt::Vertical) { + if(m_orientation == TQt::Vertical) { pixSize = TQSize(width(), height()); } else { pixSize = TQSize(height(), width()); @@ -165,7 +165,7 @@ void DragBarButton::drawButton( TQPainter* paint ) pixPainter.drawPixmap(pixSize.width() - 20 + z, (pixSize.height() - m_pClosePix->height()) / 2 + z, *m_pClosePix); } - if(m_orientation == Qt::Vertical) { + if(m_orientation == TQt::Vertical) { paint->drawPixmap(0, 0, pix); } else { paint->rotate(-90); @@ -209,7 +209,7 @@ TQSize DragBarButton::sizeHint() const TQSize size; - if(m_orientation == Qt::Vertical) { + if(m_orientation == TQt::Vertical) { size = TQSize(w, h).expandedTo(TQApplication::globalStrut()); } else { size = TQSize(h, w).expandedTo(TQApplication::globalStrut()); @@ -223,7 +223,7 @@ void DragBarButton::mousePressEvent( TQMouseEvent* ev ) m_bClose = false; TQRect closeRect; - if(m_orientation == Qt::Vertical) { + if(m_orientation == TQt::Vertical) { closeRect.setRect(width() - 20, 0, m_pClosePix->width(), height()); } else { closeRect.setRect(0, 20 - m_pClosePix->width(), width(), m_pClosePix->width()); @@ -246,7 +246,7 @@ void DragBarButton::mouseReleaseEvent( TQMouseEvent* ev ) repaint(); TQRect closeRect; - if(m_orientation == Qt::Vertical) { + if(m_orientation == TQt::Vertical) { closeRect.setRect(width() - 20, 0, m_pClosePix->width(), height()); } else { closeRect.setRect(0, 20 - m_pClosePix->width(), width(), m_pClosePix->width()); @@ -295,11 +295,11 @@ void DragBarButton::leaveEvent( TQEvent* ev ) repaint(); } -void DragBarButton::setOrientation(Qt::Orientation orientation) +void DragBarButton::setOrientation(TQt::Orientation orientation) { m_orientation = orientation; - if(m_orientation == Qt::Vertical) { + if(m_orientation == TQt::Vertical) { setSizePolicy(TQSizePolicy::Minimum, TQSizePolicy::Fixed); } else { setSizePolicy(TQSizePolicy::Fixed, TQSizePolicy::Minimum); |