diff options
Diffstat (limited to 'kolourpaint/tools')
32 files changed, 139 insertions, 156 deletions
| diff --git a/kolourpaint/tools/kptoolaction.h b/kolourpaint/tools/kptoolaction.h index c1d77159..0f60861a 100644 --- a/kolourpaint/tools/kptoolaction.h +++ b/kolourpaint/tools/kptoolaction.h @@ -37,7 +37,7 @@  class kpToolAction : public TDEToggleAction,                       public kpSingleKeyTriggersActionInterface  { -Q_OBJECT +TQ_OBJECT  public: diff --git a/kolourpaint/tools/kptoolairspray.cpp b/kolourpaint/tools/kptoolairspray.cpp index dc2b4a23..5450a79e 100644 --- a/kolourpaint/tools/kptoolairspray.cpp +++ b/kolourpaint/tools/kptoolairspray.cpp @@ -65,7 +65,7 @@ kpToolAirSpray::kpToolAirSpray (kpMainWindow *mainWindow)        m_currentCommand (0)  {      m_timer = new TQTimer (this); -    connect (m_timer, TQT_SIGNAL (timeout ()), this, TQT_SLOT (actuallyDraw ())); +    connect (m_timer, TQ_SIGNAL (timeout ()), this, TQ_SLOT (actuallyDraw ()));  }  kpToolAirSpray::~kpToolAirSpray () @@ -95,8 +95,8 @@ void kpToolAirSpray::begin ()          if (m_toolWidgetSpraycanSize)          {              m_size = m_toolWidgetSpraycanSize->spraycanSize (); -            connect (m_toolWidgetSpraycanSize, TQT_SIGNAL (spraycanSizeChanged (int)), -                     this, TQT_SLOT (slotSpraycanSizeChanged (int))); +            connect (m_toolWidgetSpraycanSize, TQ_SIGNAL (spraycanSizeChanged (int)), +                     this, TQ_SLOT (slotSpraycanSizeChanged (int)));              m_toolWidgetSpraycanSize->show ();          } @@ -110,8 +110,8 @@ void kpToolAirSpray::end ()  {      if (m_toolWidgetSpraycanSize)      { -        disconnect (m_toolWidgetSpraycanSize, TQT_SIGNAL (spraycanSizeChanged (int)), -                    this, TQT_SLOT (slotSpraycanSizeChanged (int))); +        disconnect (m_toolWidgetSpraycanSize, TQ_SIGNAL (spraycanSizeChanged (int)), +                    this, TQ_SLOT (slotSpraycanSizeChanged (int)));          m_toolWidgetSpraycanSize = 0;      } diff --git a/kolourpaint/tools/kptoolairspray.h b/kolourpaint/tools/kptoolairspray.h index e74159ca..ebafd075 100644 --- a/kolourpaint/tools/kptoolairspray.h +++ b/kolourpaint/tools/kptoolairspray.h @@ -46,7 +46,7 @@ class kpViewManager;  class kpToolAirSpray : public kpTool  { -Q_OBJECT +TQ_OBJECT  public: diff --git a/kolourpaint/tools/kptoolbrush.h b/kolourpaint/tools/kptoolbrush.h index 425b558a..6c7e6f4f 100644 --- a/kolourpaint/tools/kptoolbrush.h +++ b/kolourpaint/tools/kptoolbrush.h @@ -33,7 +33,7 @@  class kpToolBrush : public kpToolPen  { -Q_OBJECT +TQ_OBJECT  public: diff --git a/kolourpaint/tools/kptoolcolorpicker.h b/kolourpaint/tools/kptoolcolorpicker.h index 47601860..b8e16a41 100644 --- a/kolourpaint/tools/kptoolcolorpicker.h +++ b/kolourpaint/tools/kptoolcolorpicker.h @@ -41,7 +41,7 @@ class kpColorToolBar;  class kpToolColorPicker : public kpTool  { -Q_OBJECT +TQ_OBJECT  public: diff --git a/kolourpaint/tools/kptoolcolorwasher.h b/kolourpaint/tools/kptoolcolorwasher.h index 41910638..9b183c69 100644 --- a/kolourpaint/tools/kptoolcolorwasher.h +++ b/kolourpaint/tools/kptoolcolorwasher.h @@ -33,7 +33,7 @@  class kpToolColorWasher : public kpToolPen  { -Q_OBJECT +TQ_OBJECT  public: diff --git a/kolourpaint/tools/kptoolcurve.h b/kolourpaint/tools/kptoolcurve.h index 7510c8fc..2e9a3355 100644 --- a/kolourpaint/tools/kptoolcurve.h +++ b/kolourpaint/tools/kptoolcurve.h @@ -35,7 +35,7 @@ class kpMainWindow;  class kpToolCurve : public kpToolPolygon  { -Q_OBJECT +TQ_OBJECT  public: diff --git a/kolourpaint/tools/kptoolellipse.h b/kolourpaint/tools/kptoolellipse.h index 2ac8db48..574c609c 100644 --- a/kolourpaint/tools/kptoolellipse.h +++ b/kolourpaint/tools/kptoolellipse.h @@ -35,7 +35,7 @@ class kpMainWindow;  class kpToolEllipse : public kpToolRectangle  { -Q_OBJECT +TQ_OBJECT  public: diff --git a/kolourpaint/tools/kptooleraser.h b/kolourpaint/tools/kptooleraser.h index f80335ca..f05a7097 100644 --- a/kolourpaint/tools/kptooleraser.h +++ b/kolourpaint/tools/kptooleraser.h @@ -33,7 +33,7 @@  class kpToolEraser : public kpToolPen  { -Q_OBJECT +TQ_OBJECT  public: diff --git a/kolourpaint/tools/kptoolflip.cpp b/kolourpaint/tools/kptoolflip.cpp index 49aed85f..c3d13f9b 100644 --- a/kolourpaint/tools/kptoolflip.cpp +++ b/kolourpaint/tools/kptoolflip.cpp @@ -171,10 +171,10 @@ kpToolFlipDialog::kpToolFlipDialog (bool actOnSelection, TQWidget *parent)          m_verticalFlipRadioButton->setChecked (s_lastIsVerticalFlip);          m_horizontalFlipRadioButton->setChecked (!s_lastIsVerticalFlip); -        connect (m_verticalFlipRadioButton, TQT_SIGNAL (toggled (bool)), -                 this, TQT_SLOT (slotIsVerticalFlipChanged ())); -        connect (m_horizontalFlipRadioButton, TQT_SIGNAL (toggled (bool)), -                 this, TQT_SLOT (slotIsVerticalFlipChanged ())); +        connect (m_verticalFlipRadioButton, TQ_SIGNAL (toggled (bool)), +                 this, TQ_SLOT (slotIsVerticalFlipChanged ())); +        connect (m_horizontalFlipRadioButton, TQ_SIGNAL (toggled (bool)), +                 this, TQ_SLOT (slotIsVerticalFlipChanged ()));      }  } diff --git a/kolourpaint/tools/kptoolflip.h b/kolourpaint/tools/kptoolflip.h index 1def23bd..b35cbc38 100644 --- a/kolourpaint/tools/kptoolflip.h +++ b/kolourpaint/tools/kptoolflip.h @@ -64,7 +64,7 @@ private:  class kpToolFlipDialog : public KDialogBase  { -Q_OBJECT +TQ_OBJECT  public: diff --git a/kolourpaint/tools/kptoolfloodfill.h b/kolourpaint/tools/kptoolfloodfill.h index 67ef8446..271060e7 100644 --- a/kolourpaint/tools/kptoolfloodfill.h +++ b/kolourpaint/tools/kptoolfloodfill.h @@ -47,7 +47,7 @@ class kpToolFloodFillCommand;  class kpToolFloodFill : public kpTool  { -Q_OBJECT +TQ_OBJECT  public: diff --git a/kolourpaint/tools/kptoolline.h b/kolourpaint/tools/kptoolline.h index 44b8f5da..66509504 100644 --- a/kolourpaint/tools/kptoolline.h +++ b/kolourpaint/tools/kptoolline.h @@ -35,7 +35,7 @@ class kpMainWindow;  class kpToolLine : public kpToolPolygon  { -Q_OBJECT +TQ_OBJECT  public: diff --git a/kolourpaint/tools/kptoolpen.cpp b/kolourpaint/tools/kptoolpen.cpp index 387f4bb7..fe8ab3c5 100644 --- a/kolourpaint/tools/kptoolpen.cpp +++ b/kolourpaint/tools/kptoolpen.cpp @@ -133,8 +133,8 @@ void kpToolPen::begin ()      if (m_mode & SquareBrushes)      {          m_toolWidgetEraserSize = tb->toolWidgetEraserSize (); -        connect (m_toolWidgetEraserSize, TQT_SIGNAL (eraserSizeChanged (int)), -                 this, TQT_SLOT (slotEraserSizeChanged (int))); +        connect (m_toolWidgetEraserSize, TQ_SIGNAL (eraserSizeChanged (int)), +                 this, TQ_SLOT (slotEraserSizeChanged (int)));          m_toolWidgetEraserSize->show ();          slotEraserSizeChanged (m_toolWidgetEraserSize->eraserSize ()); @@ -145,8 +145,8 @@ void kpToolPen::begin ()      if (m_mode & DiverseBrushes)      {          m_toolWidgetBrush = tb->toolWidgetBrush (); -        connect (m_toolWidgetBrush, TQT_SIGNAL (brushChanged (const TQPixmap &, bool)), -                 this, TQT_SLOT (slotBrushChanged (const TQPixmap &, bool))); +        connect (m_toolWidgetBrush, TQ_SIGNAL (brushChanged (const TQPixmap &, bool)), +                 this, TQ_SLOT (slotBrushChanged (const TQPixmap &, bool)));          m_toolWidgetBrush->show ();          slotBrushChanged (m_toolWidgetBrush->brush (), @@ -163,15 +163,15 @@ void kpToolPen::end ()  {      if (m_toolWidgetEraserSize)      { -        disconnect (m_toolWidgetEraserSize, TQT_SIGNAL (eraserSizeChanged (int)), -                    this, TQT_SLOT (slotEraserSizeChanged (int))); +        disconnect (m_toolWidgetEraserSize, TQ_SIGNAL (eraserSizeChanged (int)), +                    this, TQ_SLOT (slotEraserSizeChanged (int)));          m_toolWidgetEraserSize = 0;      }      if (m_toolWidgetBrush)      { -        disconnect (m_toolWidgetBrush, TQT_SIGNAL (brushChanged (const TQPixmap &, bool)), -                    this, TQT_SLOT (slotBrushChanged (const TQPixmap &, bool))); +        disconnect (m_toolWidgetBrush, TQ_SIGNAL (brushChanged (const TQPixmap &, bool)), +                    this, TQ_SLOT (slotBrushChanged (const TQPixmap &, bool)));          m_toolWidgetBrush = 0;      } diff --git a/kolourpaint/tools/kptoolpen.h b/kolourpaint/tools/kptoolpen.h index 9bbcbb37..c7a01e20 100644 --- a/kolourpaint/tools/kptoolpen.h +++ b/kolourpaint/tools/kptoolpen.h @@ -47,7 +47,7 @@ class kpViewManager;  class kpToolPen : public kpTool  { -Q_OBJECT +TQ_OBJECT  public: diff --git a/kolourpaint/tools/kptoolpolygon.cpp b/kolourpaint/tools/kptoolpolygon.cpp index 00a70b02..65f380c7 100644 --- a/kolourpaint/tools/kptoolpolygon.cpp +++ b/kolourpaint/tools/kptoolpolygon.cpp @@ -79,23 +79,23 @@ static const char *pointArrayToString (const TQPointArray &pointArray)  #endif -static TQPen makeMaskPen (const kpColor &color, int lineWidth, Qt::PenStyle lineStyle) +static TQPen makeMaskPen (const kpColor &color, int lineWidth, TQt::PenStyle lineStyle)  {      return TQPen (color.maskColor (),                   lineWidth == 1 ? 0/*closer to looking width 1*/ : lineWidth, lineStyle, -                 Qt::RoundCap, Qt::RoundJoin); +                 TQt::RoundCap, TQt::RoundJoin);  } -static TQPen makePen (const kpColor &color, int lineWidth, Qt::PenStyle lineStyle) +static TQPen makePen (const kpColor &color, int lineWidth, TQt::PenStyle lineStyle)  {      if (color.isOpaque ())      {          return TQPen (color.toTQColor (),                       lineWidth == 1 ? 0/*closer to looking width 1*/ : lineWidth, lineStyle, -                     Qt::RoundCap, Qt::RoundJoin); +                     TQt::RoundCap, TQt::RoundJoin);      }      else -        return Qt::NoPen; +        return TQt::NoPen;  }  static TQBrush makeMaskBrush (const kpColor &foregroundColor, @@ -105,7 +105,7 @@ static TQBrush makeMaskBrush (const kpColor &foregroundColor,      if (toolWidgetFillStyle)          return toolWidgetFillStyle->maskBrush (foregroundColor, backgroundColor);      else -        return Qt::NoBrush; +        return TQt::NoBrush;  }  static TQBrush makeBrush (const kpColor &foregroundColor, @@ -115,7 +115,7 @@ static TQBrush makeBrush (const kpColor &foregroundColor,      if (toolWidgetFillStyle)          return toolWidgetFillStyle->brush (foregroundColor, backgroundColor);      else -        return Qt::NoBrush; +        return TQt::NoBrush;  }  static bool only1PixelInPointArray (const TQPointArray &points) @@ -135,7 +135,7 @@ static bool only1PixelInPointArray (const TQPointArray &points)  static TQPixmap pixmap (const TQPixmap &oldPixmap,                         const TQPointArray &points, const TQRect &rect,                         const kpColor &foregroundColor, kpColor backgroundColor, -                       int lineWidth, Qt::PenStyle lineStyle, +                       int lineWidth, TQt::PenStyle lineStyle,                         kpToolWidgetFillStyle *toolWidgetFillStyle,                         enum kpToolPolygon::Mode mode, bool final = true)  { @@ -370,11 +370,11 @@ void kpToolPolygon::begin ()          if (m_toolWidgetFillStyle)          { -            connect (m_toolWidgetFillStyle, TQT_SIGNAL (fillStyleChanged (kpToolWidgetFillStyle::FillStyle)), -                     this, TQT_SLOT (slotFillStyleChanged (kpToolWidgetFillStyle::FillStyle))); +            connect (m_toolWidgetFillStyle, TQ_SIGNAL (fillStyleChanged (kpToolWidgetFillStyle::FillStyle)), +                     this, TQ_SLOT (slotFillStyleChanged (kpToolWidgetFillStyle::FillStyle)));          } -        connect (m_toolWidgetLineWidth, TQT_SIGNAL (lineWidthChanged (int)), -                 this, TQT_SLOT (slotLineWidthChanged (int))); +        connect (m_toolWidgetLineWidth, TQ_SIGNAL (lineWidthChanged (int)), +                 this, TQ_SLOT (slotLineWidthChanged (int)));          if (m_toolWidgetFillStyle)              m_toolWidgetFillStyle->show (); @@ -404,15 +404,15 @@ void kpToolPolygon::end ()      if (m_toolWidgetFillStyle)      { -        disconnect (m_toolWidgetFillStyle, TQT_SIGNAL (fillStyleChanged (kpToolWidgetFillStyle::FillStyle)), -                    this, TQT_SLOT (slotFillStyleChanged (kpToolWidgetFillStyle::FillStyle))); +        disconnect (m_toolWidgetFillStyle, TQ_SIGNAL (fillStyleChanged (kpToolWidgetFillStyle::FillStyle)), +                    this, TQ_SLOT (slotFillStyleChanged (kpToolWidgetFillStyle::FillStyle)));          m_toolWidgetFillStyle = 0;      }      if (m_toolWidgetLineWidth)      { -        disconnect (m_toolWidgetLineWidth, TQT_SIGNAL (lineWidthChanged (int)), -                    this, TQT_SLOT (slotLineWidthChanged (int))); +        disconnect (m_toolWidgetLineWidth, TQ_SIGNAL (lineWidthChanged (int)), +                    this, TQ_SLOT (slotLineWidthChanged (int)));          m_toolWidgetLineWidth = 0;      } @@ -652,7 +652,7 @@ void kpToolPolygon::updateShape ()      TQPixmap newPixmap = pixmap (oldPixmap,                                  m_points, boundingRect,                                  color (m_mouseButton), color (1 - m_mouseButton), -                                m_lineWidth, Qt::SolidLine, +                                m_lineWidth, TQt::SolidLine,                                  m_toolWidgetFillStyle,                                  m_mode, false/*not final*/); @@ -790,7 +790,7 @@ void kpToolPolygon::endShape (const TQPoint &, const TQRect &)              (text (),               m_points, boundingRect,               color (m_mouseButton), color (1 - m_mouseButton), -             m_lineWidth, Qt::SolidLine, +             m_lineWidth, TQt::SolidLine,               m_toolWidgetFillStyle,               document ()->getPixmapAt (boundingRect),               m_mode, @@ -844,7 +844,7 @@ kpToolPolygonCommand::kpToolPolygonCommand (const TQString &name,                                              const TQPointArray &points,                                              const TQRect &normalizedRect,                                              const kpColor &foregroundColor, const kpColor &backgroundColor, -                                            int lineWidth, Qt::PenStyle lineStyle, +                                            int lineWidth, TQt::PenStyle lineStyle,                                              kpToolWidgetFillStyle *toolWidgetFillStyle,                                              const TQPixmap &originalArea,                                              enum kpToolPolygon::Mode mode, diff --git a/kolourpaint/tools/kptoolpolygon.h b/kolourpaint/tools/kptoolpolygon.h index 788b2a31..e6178025 100644 --- a/kolourpaint/tools/kptoolpolygon.h +++ b/kolourpaint/tools/kptoolpolygon.h @@ -59,7 +59,7 @@ class kpViewManager;  class kpToolPolygon : public kpTool  { -Q_OBJECT +TQ_OBJECT  public: @@ -130,7 +130,7 @@ public:                            const TQPointArray &points,                            const TQRect &normalizedRect,                            const kpColor &foregroundColor, const kpColor &backgroundColor, -                          int lineWidth, Qt::PenStyle lineStyle, +                          int lineWidth, TQt::PenStyle lineStyle,                            kpToolWidgetFillStyle *toolWidgetFillStyle,                            const TQPixmap &originalArea,                            kpToolPolygon::Mode mode, @@ -148,7 +148,7 @@ private:      kpColor m_foregroundColor, m_backgroundColor;      int m_lineWidth; -    Qt::PenStyle m_lineStyle; +    TQt::PenStyle m_lineStyle;      kpToolWidgetFillStyle *m_toolWidgetFillStyle;      TQPixmap m_originalArea; diff --git a/kolourpaint/tools/kptoolpolyline.h b/kolourpaint/tools/kptoolpolyline.h index 3c49f8fa..e3d719f1 100644 --- a/kolourpaint/tools/kptoolpolyline.h +++ b/kolourpaint/tools/kptoolpolyline.h @@ -35,7 +35,7 @@ class kpMainWindow;  class kpToolPolyline : public kpToolPolygon  { -Q_OBJECT +TQ_OBJECT  public: diff --git a/kolourpaint/tools/kptoolpreviewdialog.cpp b/kolourpaint/tools/kptoolpreviewdialog.cpp index 65afb587..d28ab542 100644 --- a/kolourpaint/tools/kptoolpreviewdialog.cpp +++ b/kolourpaint/tools/kptoolpreviewdialog.cpp @@ -162,13 +162,13 @@ void kpToolPreviewDialog::createPreviewGroupBox ()      m_previewPixmapLabel = new kpResizeSignallingLabel (m_previewGroupBox);      m_previewPixmapLabel->setMinimumSize (150, 110); -    connect (m_previewPixmapLabel, TQT_SIGNAL (resized ()), -             this, TQT_SLOT (updatePreview ())); +    connect (m_previewPixmapLabel, TQ_SIGNAL (resized ()), +             this, TQ_SLOT (updatePreview ()));      TQPushButton *updatePushButton = new TQPushButton (i18n ("&Update"),                                                       m_previewGroupBox); -    connect (updatePushButton, TQT_SIGNAL (clicked ()), -             this, TQT_SLOT (slotUpdateWithWaitCursor ())); +    connect (updatePushButton, TQ_SIGNAL (clicked ()), +             this, TQ_SLOT (slotUpdateWithWaitCursor ()));      TQVBoxLayout *previewLayout = new TQVBoxLayout (m_previewGroupBox, diff --git a/kolourpaint/tools/kptoolpreviewdialog.h b/kolourpaint/tools/kptoolpreviewdialog.h index 42b21701..f5a6b7c9 100644 --- a/kolourpaint/tools/kptoolpreviewdialog.h +++ b/kolourpaint/tools/kptoolpreviewdialog.h @@ -45,7 +45,7 @@ class kpResizeSignallingLabel;  class kpToolPreviewDialog : public KDialogBase  { -Q_OBJECT +TQ_OBJECT  public: diff --git a/kolourpaint/tools/kptoolrectangle.cpp b/kolourpaint/tools/kptoolrectangle.cpp index 9e5883ea..efc9cd16 100644 --- a/kolourpaint/tools/kptoolrectangle.cpp +++ b/kolourpaint/tools/kptoolrectangle.cpp @@ -238,7 +238,7 @@ void kpToolRectangle::updatePen (int mouseButton)          if (color (mouseButton).isOpaque ())              m_pen [mouseButton] = TQPen (color (mouseButton).toTQColor ());          else -            m_pen [mouseButton] = TQPen(Qt::NoPen); +            m_pen [mouseButton] = TQPen(TQt::NoPen);          m_maskPen [mouseButton] = TQPen (maskPenColor);      }      else @@ -250,7 +250,7 @@ void kpToolRectangle::updatePen (int mouseButton)                                          TQt::SolidLine);          }          else -            m_pen [mouseButton] = TQPen(Qt::NoPen); +            m_pen [mouseButton] = TQPen(TQt::NoPen);          m_maskPen [mouseButton] = TQPen (maskPenColor,                                          m_toolWidgetLineWidth->lineWidth (),                                          TQt::SolidLine); @@ -276,8 +276,8 @@ void kpToolRectangle::updateBrush (int mouseButton)      }      else      { -        m_brush [mouseButton] = TQBrush(Qt::NoBrush); -        m_maskBrush [mouseButton] = TQBrush(Qt::NoBrush); +        m_brush [mouseButton] = TQBrush(TQt::NoBrush); +        m_maskBrush [mouseButton] = TQBrush(TQt::NoBrush);      }  } @@ -323,16 +323,16 @@ void kpToolRectangle::begin ()      if (tb)      {          m_toolWidgetLineWidth = tb->toolWidgetLineWidth (); -        connect (m_toolWidgetLineWidth, TQT_SIGNAL (lineWidthChanged (int)), -                 this, TQT_SLOT (slotLineWidthChanged ())); +        connect (m_toolWidgetLineWidth, TQ_SIGNAL (lineWidthChanged (int)), +                 this, TQ_SLOT (slotLineWidthChanged ()));          m_toolWidgetLineWidth->show ();          updatePens ();          m_toolWidgetFillStyle = tb->toolWidgetFillStyle (); -        connect (m_toolWidgetFillStyle, TQT_SIGNAL (fillStyleChanged (kpToolWidgetFillStyle::FillStyle)), -                 this, TQT_SLOT (slotFillStyleChanged ())); +        connect (m_toolWidgetFillStyle, TQ_SIGNAL (fillStyleChanged (kpToolWidgetFillStyle::FillStyle)), +                 this, TQ_SLOT (slotFillStyleChanged ()));          m_toolWidgetFillStyle->show ();          updateBrushes (); @@ -356,15 +356,15 @@ void kpToolRectangle::end ()      if (m_toolWidgetLineWidth)      { -        disconnect (m_toolWidgetLineWidth, TQT_SIGNAL (lineWidthChanged (int)), -                    this, TQT_SLOT (slotLineWidthChanged ())); +        disconnect (m_toolWidgetLineWidth, TQ_SIGNAL (lineWidthChanged (int)), +                    this, TQ_SLOT (slotLineWidthChanged ()));          m_toolWidgetLineWidth = 0;      }      if (m_toolWidgetFillStyle)      { -        disconnect (m_toolWidgetFillStyle, TQT_SIGNAL (fillStyleChanged (kpToolWidgetFillStyle::FillStyle)), -                   this, TQT_SLOT (slotFillStyleChanged ())); +        disconnect (m_toolWidgetFillStyle, TQ_SIGNAL (fillStyleChanged (kpToolWidgetFillStyle::FillStyle)), +                   this, TQ_SLOT (slotFillStyleChanged ()));          m_toolWidgetFillStyle = 0;      } diff --git a/kolourpaint/tools/kptoolrectangle.h b/kolourpaint/tools/kptoolrectangle.h index c1f6562b..ede24449 100644 --- a/kolourpaint/tools/kptoolrectangle.h +++ b/kolourpaint/tools/kptoolrectangle.h @@ -49,7 +49,7 @@ class kpViewManager;  class kpToolRectangle : public kpTool  { -Q_OBJECT +TQ_OBJECT  public: diff --git a/kolourpaint/tools/kptoolresizescale.cpp b/kolourpaint/tools/kptoolresizescale.cpp index 3ced0735..f9a4c461 100644 --- a/kolourpaint/tools/kptoolresizescale.cpp +++ b/kolourpaint/tools/kptoolresizescale.cpp @@ -497,7 +497,7 @@ void kpToolResizeScaleCommand::unexecute ()  // private static  kpToolResizeScaleCommand::Type kpToolResizeScaleDialog::s_lastType = -    kpToolResizeScaleCommand::Resize; +    kpToolResizeScaleCommand::SmoothScale;  // private static  double kpToolResizeScaleDialog::s_lastPercentWidth = 100, @@ -591,8 +591,8 @@ void kpToolResizeScaleDialog::createActOnBox (TQWidget *baseWidget)      m_actOnBox->setStretchFactor (m_actOnCombo, 1); -    connect (m_actOnCombo, TQT_SIGNAL (activated (int)), -             this, TQT_SLOT (slotActOnChanged ())); +    connect (m_actOnCombo, TQ_SIGNAL (activated (int)), +             this, TQ_SLOT (slotActOnChanged ()));  } @@ -634,7 +634,7 @@ static void toolButtonSetLook (TQToolButton *button,      button->setUsesTextLabel (true);      button->setTextLabel (name, false/*no tooltip*/);      button->setAccel (TQAccel::shortcutKey (name)); -    button->setFocusPolicy (TQ_StrongFocus); +    button->setFocusPolicy (TQWidget::StrongFocus);      button->setToggleButton (true);  } @@ -662,40 +662,28 @@ void kpToolResizeScaleDialog::createOperationGroupBox (TQWidget *baseWidget)                "</ul>"                "</qt>")); -    // TODO: ALT+R doesn't select the button. -    m_resizeButton = new TQToolButton (m_operationGroupBox); -    toolButtonSetLook (m_resizeButton, -                       TQString::fromLatin1 ("resize"), -                       i18n ("&Resize")); - -    m_scaleButton = new TQToolButton (m_operationGroupBox); -    toolButtonSetLook (m_scaleButton, -                       TQString::fromLatin1 ("scale"), -                       i18n ("&Scale")); -      m_smoothScaleButton = new TQToolButton (m_operationGroupBox);      toolButtonSetLook (m_smoothScaleButton,                         TQString::fromLatin1 ("smooth_scale"),                         i18n ("S&mooth Scale")); +    m_scaleButton = new TQToolButton (m_operationGroupBox); +    toolButtonSetLook (m_scaleButton, +                       TQString::fromLatin1 ("scale"), +                       i18n ("&Scale")); -    //m_resizeLabel = new TQLabel (i18n ("&Resize"), m_operationGroupBox); -    //m_scaleLabel = new TQLabel (i18n ("&Scale"), m_operationGroupBox); -    //m_smoothScaleLabel = new TQLabel (i18n ("S&mooth scale"), m_operationGroupBox); - - -    //m_resizeLabel->setAlignment (m_resizeLabel->alignment () | TQt::ShowPrefix); -    //m_scaleLabel->setAlignment (m_scaleLabel->alignment () | TQt::ShowPrefix); -    //m_smoothScaleLabel->setAlignment (m_smoothScaleLabel->alignment () | TQt::ShowPrefix); - +    m_resizeButton = new TQToolButton (m_operationGroupBox); +    toolButtonSetLook (m_resizeButton, +                       TQString::fromLatin1 ("resize"), +                       i18n ("&Resize"));      TQButtonGroup *resizeScaleButtonGroup = new TQButtonGroup (baseWidget);      resizeScaleButtonGroup->setExclusive (true);      resizeScaleButtonGroup->hide (); -    resizeScaleButtonGroup->insert (m_resizeButton); -    resizeScaleButtonGroup->insert (m_scaleButton);      resizeScaleButtonGroup->insert (m_smoothScaleButton); +    resizeScaleButtonGroup->insert (m_scaleButton); +    resizeScaleButtonGroup->insert (m_resizeButton);      TQGridLayout *operationLayout = new TQGridLayout (m_operationGroupBox, @@ -703,22 +691,17 @@ void kpToolResizeScaleDialog::createOperationGroupBox (TQWidget *baseWidget)                                                      marginHint () * 2/*don't overlap groupbox title*/,                                                      spacingHint ()); -    operationLayout->addWidget (m_resizeButton, 0, 0, TQt::AlignCenter); -    //operationLayout->addWidget (m_resizeLabel, 1, 0, TQt::AlignCenter); - +    operationLayout->addWidget (m_smoothScaleButton, 0, 0, TQt::AlignCenter);      operationLayout->addWidget (m_scaleButton, 0, 1, TQt::AlignCenter); -    //operationLayout->addWidget (m_scaleLabel, 1, 1, TQt::AlignCenter); - -    operationLayout->addWidget (m_smoothScaleButton, 0, 2, TQt::AlignCenter); -    //operationLayout->addWidget (m_smoothScaleLabel, 1, 2, TQt::AlignCenter); +    operationLayout->addWidget (m_resizeButton, 0, 2, TQt::AlignCenter); -    connect (m_resizeButton, TQT_SIGNAL (toggled (bool)), -             this, TQT_SLOT (slotTypeChanged ())); -    connect (m_scaleButton, TQT_SIGNAL (toggled (bool)), -             this, TQT_SLOT (slotTypeChanged ())); -    connect (m_smoothScaleButton, TQT_SIGNAL (toggled (bool)), -             this, TQT_SLOT (slotTypeChanged ())); +    connect (m_resizeButton, TQ_SIGNAL (toggled (bool)), +             this, TQ_SLOT (slotTypeChanged ())); +    connect (m_scaleButton, TQ_SIGNAL (toggled (bool)), +             this, TQ_SLOT (slotTypeChanged ())); +    connect (m_smoothScaleButton, TQ_SIGNAL (toggled (bool)), +             this, TQ_SLOT (slotTypeChanged ()));  }  // private @@ -800,18 +783,18 @@ void kpToolResizeScaleDialog::createDimensionsGroupBox (TQWidget *baseWidget)      dimensionsLayout->setRowSpacing (4/*row*/, dimensionsLayout->rowSpacing (4) * 2); -    connect (m_newWidthInput, TQT_SIGNAL (valueChanged (int)), -             this, TQT_SLOT (slotWidthChanged (int))); -    connect (m_newHeightInput, TQT_SIGNAL (valueChanged (int)), -             this, TQT_SLOT (slotHeightChanged (int))); +    connect (m_newWidthInput, TQ_SIGNAL (valueChanged (int)), +             this, TQ_SLOT (slotWidthChanged (int))); +    connect (m_newHeightInput, TQ_SIGNAL (valueChanged (int)), +             this, TQ_SLOT (slotHeightChanged (int))); -    connect (m_percentWidthInput, TQT_SIGNAL (valueChanged (double)), -             this, TQT_SLOT (slotPercentWidthChanged (double))); -    connect (m_percentHeightInput, TQT_SIGNAL (valueChanged (double)), -             this, TQT_SLOT (slotPercentHeightChanged (double))); +    connect (m_percentWidthInput, TQ_SIGNAL (valueChanged (double)), +             this, TQ_SLOT (slotPercentWidthChanged (double))); +    connect (m_percentHeightInput, TQ_SIGNAL (valueChanged (double)), +             this, TQ_SLOT (slotPercentHeightChanged (double))); -    connect (m_keepAspectRatioCheckBox, TQT_SIGNAL (toggled (bool)), -             this, TQT_SLOT (setKeepAspectRatio (bool))); +    connect (m_keepAspectRatioCheckBox, TQ_SIGNAL (toggled (bool)), +             this, TQ_SLOT (setKeepAspectRatio (bool)));  } diff --git a/kolourpaint/tools/kptoolresizescale.h b/kolourpaint/tools/kptoolresizescale.h index 9f4d96bd..daa63ec8 100644 --- a/kolourpaint/tools/kptoolresizescale.h +++ b/kolourpaint/tools/kptoolresizescale.h @@ -106,7 +106,7 @@ protected:  class kpToolResizeScaleDialog : public KDialogBase  { -Q_OBJECT +TQ_OBJECT  public: diff --git a/kolourpaint/tools/kptoolrotate.cpp b/kolourpaint/tools/kptoolrotate.cpp index 28e05d3e..c70836a5 100644 --- a/kolourpaint/tools/kptoolrotate.cpp +++ b/kolourpaint/tools/kptoolrotate.cpp @@ -300,10 +300,10 @@ void kpToolRotateDialog::createDirectionGroupBox ()      directionLayout->addWidget (m_clockwiseRadioButton, 1, 1, TQt::AlignCenter); -    connect (m_antiClockwiseRadioButton, TQT_SIGNAL (toggled (bool)), -             this, TQT_SLOT (slotUpdate ())); -    connect (m_clockwiseRadioButton, TQT_SIGNAL (toggled (bool)), -             this, TQT_SLOT (slotUpdate ())); +    connect (m_antiClockwiseRadioButton, TQ_SIGNAL (toggled (bool)), +             this, TQ_SLOT (slotUpdate ())); +    connect (m_clockwiseRadioButton, TQ_SIGNAL (toggled (bool)), +             this, TQ_SLOT (slotUpdate ()));  }  // private @@ -351,20 +351,20 @@ void kpToolRotateDialog::createAngleGroupBox ()      angleLayout->setColStretch (1, 2);  // Stretch Custom Angle Input -    connect (m_angle90RadioButton, TQT_SIGNAL (toggled (bool)), -             this, TQT_SLOT (slotUpdate ())); -    connect (m_angle180RadioButton, TQT_SIGNAL (toggled (bool)), -             this, TQT_SLOT (slotUpdate ())); -    connect (m_angle270RadioButton, TQT_SIGNAL (toggled (bool)), -             this, TQT_SLOT (slotUpdate ())); +    connect (m_angle90RadioButton, TQ_SIGNAL (toggled (bool)), +             this, TQ_SLOT (slotUpdate ())); +    connect (m_angle180RadioButton, TQ_SIGNAL (toggled (bool)), +             this, TQ_SLOT (slotUpdate ())); +    connect (m_angle270RadioButton, TQ_SIGNAL (toggled (bool)), +             this, TQ_SLOT (slotUpdate ())); -    connect (m_angleCustomRadioButton, TQT_SIGNAL (toggled (bool)), -             this, TQT_SLOT (slotAngleCustomRadioButtonToggled (bool))); -    connect (m_angleCustomRadioButton, TQT_SIGNAL (toggled (bool)), -             this, TQT_SLOT (slotUpdate ())); +    connect (m_angleCustomRadioButton, TQ_SIGNAL (toggled (bool)), +             this, TQ_SLOT (slotAngleCustomRadioButtonToggled (bool))); +    connect (m_angleCustomRadioButton, TQ_SIGNAL (toggled (bool)), +             this, TQ_SLOT (slotUpdate ())); -    connect (m_angleCustomInput, TQT_SIGNAL (valueChanged (int)), -             this, TQT_SLOT (slotUpdate ())); +    connect (m_angleCustomInput, TQ_SIGNAL (valueChanged (int)), +             this, TQ_SLOT (slotUpdate ()));  } diff --git a/kolourpaint/tools/kptoolrotate.h b/kolourpaint/tools/kptoolrotate.h index be1b51c6..33ec1389 100644 --- a/kolourpaint/tools/kptoolrotate.h +++ b/kolourpaint/tools/kptoolrotate.h @@ -80,7 +80,7 @@ private:  class kpToolRotateDialog : public kpToolPreviewDialog  { -Q_OBJECT +TQ_OBJECT  public: diff --git a/kolourpaint/tools/kptoolroundedrectangle.h b/kolourpaint/tools/kptoolroundedrectangle.h index 2f451521..89d3616d 100644 --- a/kolourpaint/tools/kptoolroundedrectangle.h +++ b/kolourpaint/tools/kptoolroundedrectangle.h @@ -35,7 +35,7 @@ class kpMainWindow;  class kpToolRoundedRectangle : public kpToolRectangle  { -Q_OBJECT +TQ_OBJECT  public: diff --git a/kolourpaint/tools/kptoolselection.cpp b/kolourpaint/tools/kptoolselection.cpp index 8fbdee55..c6ee4bba 100644 --- a/kolourpaint/tools/kptoolselection.cpp +++ b/kolourpaint/tools/kptoolselection.cpp @@ -68,10 +68,10 @@ kpToolSelection::kpToolSelection (Mode mode,        m_createNOPTimer (new TQTimer (this)),        m_RMBMoveUpdateGUITimer (new TQTimer (this))  { -    connect (m_createNOPTimer, TQT_SIGNAL (timeout ()), -             this, TQT_SLOT (delayedDraw ())); -    connect (m_RMBMoveUpdateGUITimer, TQT_SIGNAL (timeout ()), -             this, TQT_SLOT (slotRMBMoveUpdateGUI ())); +    connect (m_createNOPTimer, TQ_SIGNAL (timeout ()), +             this, TQ_SLOT (delayedDraw ())); +    connect (m_RMBMoveUpdateGUITimer, TQ_SIGNAL (timeout ()), +             this, TQ_SLOT (slotRMBMoveUpdateGUI ()));  }  kpToolSelection::~kpToolSelection () @@ -180,8 +180,8 @@ void kpToolSelection::begin ()          if (m_toolWidgetOpaqueOrTransparent)          { -            connect (m_toolWidgetOpaqueOrTransparent, TQT_SIGNAL (isOpaqueChanged (bool)), -                     this, TQT_SLOT (slotIsOpaqueChanged ())); +            connect (m_toolWidgetOpaqueOrTransparent, TQ_SIGNAL (isOpaqueChanged (bool)), +                     this, TQ_SLOT (slotIsOpaqueChanged ()));              m_toolWidgetOpaqueOrTransparent->show ();          }      } @@ -225,8 +225,8 @@ void kpToolSelection::end ()      if (m_toolWidgetOpaqueOrTransparent)      { -        disconnect (m_toolWidgetOpaqueOrTransparent, TQT_SIGNAL (isOpaqueChanged (bool)), -                    this, TQT_SLOT (slotIsOpaqueChanged ())); +        disconnect (m_toolWidgetOpaqueOrTransparent, TQ_SIGNAL (isOpaqueChanged (bool)), +                    this, TQ_SLOT (slotIsOpaqueChanged ()));          m_toolWidgetOpaqueOrTransparent = 0;      } @@ -2037,8 +2037,8 @@ kpToolSelectionResizeScaleCommand::kpToolSelectionResizeScaleCommand (      m_newWidth = selection ()->width ();      m_newHeight = selection ()->height (); -    connect (m_smoothScaleTimer, TQT_SIGNAL (timeout ()), -             this, TQT_SLOT (resizeScaleAndMove ())); +    connect (m_smoothScaleTimer, TQ_SIGNAL (timeout ()), +             this, TQ_SLOT (resizeScaleAndMove ()));  }  kpToolSelectionResizeScaleCommand::~kpToolSelectionResizeScaleCommand () diff --git a/kolourpaint/tools/kptoolselection.h b/kolourpaint/tools/kptoolselection.h index ceef111d..81a3093f 100644 --- a/kolourpaint/tools/kptoolselection.h +++ b/kolourpaint/tools/kptoolselection.h @@ -58,7 +58,7 @@ class kpToolWidgetOpaqueOrTransparent;  class kpToolSelection : public kpTool  { -Q_OBJECT +TQ_OBJECT  public: @@ -242,7 +242,7 @@ private:  class kpToolSelectionResizeScaleCommand : public TQObject,                                            public kpNamedCommand  { -Q_OBJECT +TQ_OBJECT  public: diff --git a/kolourpaint/tools/kptoolskew.cpp b/kolourpaint/tools/kptoolskew.cpp index 230db783..5cdeeb9e 100644 --- a/kolourpaint/tools/kptoolskew.cpp +++ b/kolourpaint/tools/kptoolskew.cpp @@ -296,10 +296,10 @@ void kpToolSkewDialog::createAngleGroupBox ()      angleLayout->addWidget (verticalSkewDegreesLabel, 1, 3); -    connect (m_horizontalSkewInput, TQT_SIGNAL (valueChanged (int)), -             this, TQT_SLOT (slotUpdate ())); -    connect (m_verticalSkewInput, TQT_SIGNAL (valueChanged (int)), -             this, TQT_SLOT (slotUpdate ())); +    connect (m_horizontalSkewInput, TQ_SIGNAL (valueChanged (int)), +             this, TQ_SLOT (slotUpdate ())); +    connect (m_verticalSkewInput, TQ_SIGNAL (valueChanged (int)), +             this, TQ_SLOT (slotUpdate ()));  } diff --git a/kolourpaint/tools/kptoolskew.h b/kolourpaint/tools/kptoolskew.h index f1a34025..1f060209 100644 --- a/kolourpaint/tools/kptoolskew.h +++ b/kolourpaint/tools/kptoolskew.h @@ -75,7 +75,7 @@ private:  class kpToolSkewDialog : public kpToolPreviewDialog  { -Q_OBJECT +TQ_OBJECT  public: diff --git a/kolourpaint/tools/kptooltext.h b/kolourpaint/tools/kptooltext.h index ec2e117a..e1f31009 100644 --- a/kolourpaint/tools/kptooltext.h +++ b/kolourpaint/tools/kptooltext.h @@ -43,7 +43,7 @@ class kpViewManager;  class kpToolText : public kpToolSelection  { -Q_OBJECT +TQ_OBJECT  public: | 
