summaryrefslogtreecommitdiffstats
path: root/kivio/plugins/kiviotexttool/tool_text.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-15 15:32:11 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-15 15:32:11 -0600
commit94844816550ad672ccfcdc25659c625546239998 (patch)
treee35fc60fd736c645d59f6408af032774ad8023d3 /kivio/plugins/kiviotexttool/tool_text.cpp
parent2a811c38c74c03648ecf857e566c44483cbad706 (diff)
downloadkoffice-94844816550ad672ccfcdc25659c625546239998.tar.gz
koffice-94844816550ad672ccfcdc25659c625546239998.zip
Rename a number of old tq methods that are no longer tq specific
Diffstat (limited to 'kivio/plugins/kiviotexttool/tool_text.cpp')
-rw-r--r--kivio/plugins/kiviotexttool/tool_text.cpp40
1 files changed, 20 insertions, 20 deletions
diff --git a/kivio/plugins/kiviotexttool/tool_text.cpp b/kivio/plugins/kiviotexttool/tool_text.cpp
index 7d449ae0..5b1ee4fc 100644
--- a/kivio/plugins/kiviotexttool/tool_text.cpp
+++ b/kivio/plugins/kiviotexttool/tool_text.cpp
@@ -185,7 +185,7 @@ void TextTool::mousePress( TQMouseEvent *e )
bool TextTool::startRubberBanding( TQMouseEvent *e )
{
view()->canvasWidget()->startRectDraw( e->pos(), KivioCanvas::Rubber );
- view()->canvasWidget()->tqrepaint();
+ view()->canvasWidget()->repaint();
m_startPoint = e->pos();
return true;
@@ -222,7 +222,7 @@ void TextTool::mouseRelease( TQMouseEvent *e )
m_mode = stmNone;
- view()->canvasWidget()->tqrepaint();
+ view()->canvasWidget()->repaint();
}
void TextTool::endRubberBanding(TQMouseEvent */*e*/)
@@ -282,12 +282,12 @@ void TextTool::applyToolAction(TQPtrList<KivioStencil>* stencils)
TQString text = editor.text();
TQFont font = editor.font();
TQColor textColor = editor.fontColor();
- int htqalignment = editor.horizontalAlignment();
- int vtqalignment = editor.verticalAlignment();
+ int halignment = editor.horizontalAlignment();
+ int valignment = editor.verticalAlignment();
bool changeFont = (stencil->textFont() != font);
bool changeTextColor = (stencil->textColor() != textColor);
- bool changeHAlignment = (stencil->hTextAlign() != htqalignment);
- bool changeVAlignment = (stencil->vTextAlign() != vtqalignment);
+ bool changeHAlignment = (stencil->hTextAlign() != halignment);
+ bool changeVAlignment = (stencil->vTextAlign() != valignment);
while( stencil )
@@ -317,18 +317,18 @@ void TextTool::applyToolAction(TQPtrList<KivioStencil>* stencils)
changed = true;
}
- if(changeHAlignment && (stencil->hTextAlign() != htqalignment)) {
+ if(changeHAlignment && (stencil->hTextAlign() != halignment)) {
KivioChangeStencilHAlignmentCommand* cmd = new KivioChangeStencilHAlignmentCommand(
- i18n("Change StencilQt::Horizontal Alignment"), view()->activePage(), stencil, stencil->hTextAlign(), htqalignment);
- stencil->setHTextAlign(htqalignment);
+ i18n("Change StencilQt::Horizontal Alignment"), view()->activePage(), stencil, stencil->hTextAlign(), halignment);
+ stencil->setHTextAlign(halignment);
macroCmd->addCommand(cmd);
changed = true;
}
- if(changeVAlignment && (stencil->vTextAlign() != vtqalignment)) {
+ if(changeVAlignment && (stencil->vTextAlign() != valignment)) {
KivioChangeStencilVAlignmentCommand* cmd = new KivioChangeStencilVAlignmentCommand(
- i18n("Change StencilQt::Vertical Alignment"), view()->activePage(), stencil, stencil->vTextAlign(), vtqalignment);
- stencil->setVTextAlign(vtqalignment);
+ i18n("Change StencilQt::Vertical Alignment"), view()->activePage(), stencil, stencil->vTextAlign(), valignment);
+ stencil->setVTextAlign(valignment);
macroCmd->addCommand(cmd);
changed = true;
}
@@ -400,24 +400,24 @@ void TextTool::applyToolAction(KivioStencil* stencil, const KoPoint& pos)
changed = true;
}
- int htqalignment = editor.horizontalAlignment();
+ int halignment = editor.horizontalAlignment();
- if(stencil->hTextAlign(name) != htqalignment) {
+ if(stencil->hTextAlign(name) != halignment) {
KivioChangeStencilHAlignmentCommand* cmd = new KivioChangeStencilHAlignmentCommand(
i18n("Change StencilQt::Horizontal Alignment"), view()->activePage(), stencil,
- stencil->hTextAlign(name), htqalignment, name);
- stencil->setHTextAlign(name, htqalignment);
+ stencil->hTextAlign(name), halignment, name);
+ stencil->setHTextAlign(name, halignment);
macroCmd->addCommand(cmd);
changed = true;
}
- int vtqalignment = editor.verticalAlignment();
+ int valignment = editor.verticalAlignment();
- if(stencil->vTextAlign(name) != vtqalignment) {
+ if(stencil->vTextAlign(name) != valignment) {
KivioChangeStencilVAlignmentCommand* cmd = new KivioChangeStencilVAlignmentCommand(
i18n("Change StencilQt::Vertical Alignment"), view()->activePage(), stencil,
- stencil->vTextAlign(name), vtqalignment, name);
- stencil->setVTextAlign(name, vtqalignment);
+ stencil->vTextAlign(name), valignment, name);
+ stencil->setVTextAlign(name, valignment);
macroCmd->addCommand(cmd);
changed = true;
}