summaryrefslogtreecommitdiffstats
path: root/karbon/tools/vtexttool.cc
diff options
context:
space:
mode:
Diffstat (limited to 'karbon/tools/vtexttool.cc')
-rw-r--r--karbon/tools/vtexttool.cc38
1 files changed, 19 insertions, 19 deletions
diff --git a/karbon/tools/vtexttool.cc b/karbon/tools/vtexttool.cc
index 9a7790ba..ad74048f 100644
--- a/karbon/tools/vtexttool.cc
+++ b/karbon/tools/vtexttool.cc
@@ -255,7 +255,7 @@ void
ShadowWidget::setShadowAngle( int angle )
{
m_angle->setValue( angle );
- m_preview->tqrepaint();
+ m_preview->repaint();
}
int
@@ -268,7 +268,7 @@ void
ShadowWidget::setShadowDistance( int distance )
{
m_distance->setValue( distance );
- m_preview->tqrepaint();
+ m_preview->repaint();
}
int
@@ -281,7 +281,7 @@ void
ShadowWidget::setTranslucent( bool translucent )
{
m_translucent->setChecked( translucent );
- m_preview->tqrepaint();
+ m_preview->repaint();
}
bool ShadowWidget::isTranslucent()
@@ -301,13 +301,13 @@ ShadowWidget::setShadowValues( int angle, int distance, bool translucent )
void
ShadowWidget::updatePreview( int )
{
- m_preview->tqrepaint();
+ m_preview->repaint();
}
void
ShadowWidget::updatePreview()
{
- m_preview->tqrepaint();
+ m_preview->repaint();
bool ok = m_useShadow->isChecked();
m_angle->setEnabled( ok );
m_distance->setEnabled( ok );
@@ -387,13 +387,13 @@ VTextOptionsWidget::VTextOptionsWidget( VTextTool* tool, TQWidget *parent )
m_convertToShapes->setEnabled( true );
- m_textAlignment->insertItem( i18n( "Horizontal tqalignment", "Left") );
- m_textAlignment->insertItem( i18n( "Horizontal tqalignment", "Center") );
- m_textAlignment->insertItem( i18n( "Horizontal tqalignment", "Right") );
+ m_textAlignment->insertItem( i18n( "Horizontal alignment", "Left") );
+ m_textAlignment->insertItem( i18n( "Horizontal alignment", "Center") );
+ m_textAlignment->insertItem( i18n( "Horizontal alignment", "Right") );
- m_textPosition->insertItem( i18n( "Vertical tqalignment", "Above") );
- m_textPosition->insertItem( i18n( "Vertical tqalignment", "On") );
- m_textPosition->insertItem( i18n( "Vertical tqalignment", "Under") );
+ m_textPosition->insertItem( i18n( "Vertical alignment", "Above") );
+ m_textPosition->insertItem( i18n( "Vertical alignment", "On") );
+ m_textPosition->insertItem( i18n( "Vertical alignment", "Under") );
m_textOffset->setRange( 0.0, 100.0, 1.0, true );
@@ -518,12 +518,12 @@ VText::Position VTextOptionsWidget::position()
}
void
-VTextOptionsWidget::setAlignment( VText::Alignment tqalignment )
+VTextOptionsWidget::setAlignment( VText::Alignment alignment )
{
- m_textAlignment->setCurrentItem( tqalignment );
+ m_textAlignment->setCurrentItem( alignment );
}
-VText::Alignment VTextOptionsWidget::tqalignment()
+VText::Alignment VTextOptionsWidget::alignment()
{
return ( VText::Alignment ) m_textAlignment->currentItem();
}
@@ -768,7 +768,7 @@ VTextTool::createText( VSubpath &path )
m_text = 0L;
delete m_editedText;
- m_editedText = new VText( m_optionsWidget->font(), path, m_optionsWidget->position(), m_optionsWidget->tqalignment(), m_optionsWidget->text() );
+ m_editedText = new VText( m_optionsWidget->font(), path, m_optionsWidget->position(), m_optionsWidget->alignment(), m_optionsWidget->text() );
if( ! m_editedText )
return false;
@@ -803,7 +803,7 @@ VTextTool::textChanged()
m_editedText->setText( m_optionsWidget->text() );
m_editedText->setFont( m_optionsWidget->font() );
m_editedText->setPosition( m_optionsWidget->position() );
- m_editedText->setAlignment( m_optionsWidget->tqalignment() );
+ m_editedText->setAlignment( m_optionsWidget->alignment() );
m_editedText->setOffset( 0.01 * m_optionsWidget->offset() );
#ifdef HAVE_KARBONTEXT
m_editedText->traceText();
@@ -829,7 +829,7 @@ VTextTool::accept()
m_editedText->font(),
m_editedText->basePath(),
m_editedText->position(),
- m_editedText->tqalignment(),
+ m_editedText->alignment(),
m_editedText->offset(),
m_editedText->text(),
m_optionsWidget->useShadow(),
@@ -932,7 +932,7 @@ VTextTool::visitVText( VText& text )
m_optionsWidget->setFont( text.font() );
m_optionsWidget->setText( text.text() );
m_optionsWidget->setPosition( text.position() );
- m_optionsWidget->setAlignment( text.tqalignment() );
+ m_optionsWidget->setAlignment( text.alignment() );
m_optionsWidget->setOffset( text.offset() * 100.0 );
m_optionsWidget->setUseShadow( text.useShadow() );
m_optionsWidget->setShadow( text.shadowAngle(), text.shadowDistance(), text.translucentShadow() );
@@ -962,7 +962,7 @@ VTextTool::VTextCmd::VTextCmd( VDocument* doc, const TQString& name, VText* text
m_textModifications->newPosition = newPosition;
m_textModifications->oldPosition = text->position();
m_textModifications->newAlignment = newAlignment;
- m_textModifications->oldAlignment = text->tqalignment();
+ m_textModifications->oldAlignment = text->alignment();
m_textModifications->newOffset = newOffset;
m_textModifications->oldOffset = text->offset();
m_textModifications->newText = newText;