summaryrefslogtreecommitdiffstats
path: root/src/canvasitemparts.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/canvasitemparts.cpp')
-rw-r--r--src/canvasitemparts.cpp40
1 files changed, 20 insertions, 20 deletions
diff --git a/src/canvasitemparts.cpp b/src/canvasitemparts.cpp
index dc98647..6d20edc 100644
--- a/src/canvasitemparts.cpp
+++ b/src/canvasitemparts.cpp
@@ -17,16 +17,16 @@
//BEGIN Class GuiPart
-GuiPart::GuiPart( CNItem *tqparent, const TQRect & r, TQCanvas * canvas )
- : TQObject(tqparent),
+GuiPart::GuiPart( CNItem *parent, const TQRect & r, TQCanvas * canvas )
+ : TQObject(parent),
TQCanvasRectangle( r, canvas ),
m_angleDegrees(0),
- p_parent(tqparent),
+ p_parent(parent),
b_pointsAdded(false),
m_originalRect(r)
{
- connect( tqparent, TQT_SIGNAL(movedBy(double, double )), this, TQT_SLOT(slotMoveBy(double, double )) );
- setZ( tqparent->z() + 0.5 );
+ connect( parent, TQT_SIGNAL(movedBy(double, double )), this, TQT_SLOT(slotMoveBy(double, double )) );
+ setZ( parent->z() + 0.5 );
}
@@ -139,8 +139,8 @@ TQRect GuiPart::drawRect()
//BEGIN Class Text
-Text::Text( const TQString &text, CNItem *tqparent, const TQRect & r, TQCanvas * canvas, int flags )
- : GuiPart( tqparent, r, canvas )
+Text::Text( const TQString &text, CNItem *parent, const TQRect & r, TQCanvas * canvas, int flags )
+ : GuiPart( parent, r, canvas )
{
m_flags = flags;
setText(text);
@@ -189,8 +189,8 @@ TQRect Text::recommendedRect() const
//BEGIN Class Widget
-Widget::Widget( const TQString & id, CNItem * tqparent, const TQRect & r, TQCanvas * canvas )
- : GuiPart( tqparent, r, canvas )
+Widget::Widget( const TQString & id, CNItem * parent, const TQRect & r, TQCanvas * canvas )
+ : GuiPart( parent, r, canvas )
{
m_id = id;
show();
@@ -235,8 +235,8 @@ void Widget::drawShape( TQPainter &p )
//BEGIN Class ToolButton
-ToolButton::ToolButton( TQWidget *tqparent )
- : TQToolButton(tqparent)
+ToolButton::ToolButton( TQWidget *parent )
+ : TQToolButton(parent)
{
m_angleDegrees = 0;
if ( TQFontInfo(m_font).pixelSize() > 11 ) // It has to be > 11, not > 12, as (I think) pixelSize() rounds off the actual size
@@ -276,8 +276,8 @@ void ToolButton::drawButtonLabel( TQPainter * p )
//BEGIN Class Button
-Button::Button( const TQString & id, CNItem * tqparent, bool isToggle, const TQRect & r, TQCanvas * canvas )
- : Widget( id, tqparent, r, canvas )
+Button::Button( const TQString & id, CNItem * parent, bool isToggle, const TQRect & r, TQCanvas * canvas )
+ : Widget( id, parent, r, canvas )
{
b_isToggle = isToggle;
m_button = new ToolButton(0l);
@@ -319,7 +319,7 @@ void Button::posChanged()
void Button::slotStateChanged()
{
- tqparent()->buttonStateChanged( id(), m_button->isDown() || m_button->isOn() );
+ parent()->buttonStateChanged( id(), m_button->isDown() || m_button->isOn() );
}
TQWidget* Button::widget() const
{
@@ -425,8 +425,8 @@ void Button::leaveEvent()
//BEGIN Class SliderWidget
-SliderWidget::SliderWidget( TQWidget *tqparent )
- : TQSlider(tqparent)
+SliderWidget::SliderWidget( TQWidget *parent )
+ : TQSlider(parent)
{
setWFlags(WNoAutoErase|WRepaintNoErase);
}
@@ -434,8 +434,8 @@ SliderWidget::SliderWidget( TQWidget *tqparent )
//BEGIN Class Slider
-Slider::Slider( const TQString & id, CNItem * tqparent, const TQRect & r, TQCanvas * canvas )
- : Widget( id, tqparent, r, canvas )
+Slider::Slider( const TQString & id, CNItem * parent, const TQRect & r, TQCanvas * canvas )
+ : Widget( id, parent, r, canvas )
{
m_orientation = Qt::Vertical;
m_slider = new SliderWidget(0l);
@@ -527,8 +527,8 @@ void Slider::leaveEvent()
void Slider::slotValueChanged( int value )
{
- tqparent()->itemDocument()->setModified(true);
- tqparent()->sliderValueChanged(id(),value);
+ parent()->itemDocument()->setModified(true);
+ parent()->sliderValueChanged(id(),value);
}
void Slider::setOrientation( Qt::Orientation o )