summaryrefslogtreecommitdiffstats
path: root/kommander/widgets/richtexteditor.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-15 15:51:43 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-15 15:51:43 -0600
commit2b0e1de2ffcca7bb93f1fd8ddd32f74041d0d076 (patch)
treec57406ac640b2ce83ebc0ec0cbc96d0e3e40d9b5 /kommander/widgets/richtexteditor.cpp
parentff23fbd0f4265648d9a1d53f4230c3f7c78c4f77 (diff)
downloadtdewebdev-2b0e1de2ffcca7bb93f1fd8ddd32f74041d0d076.tar.gz
tdewebdev-2b0e1de2ffcca7bb93f1fd8ddd32f74041d0d076.zip
Rename a number of old tq methods that are no longer tq specific
Diffstat (limited to 'kommander/widgets/richtexteditor.cpp')
-rw-r--r--kommander/widgets/richtexteditor.cpp30
1 files changed, 15 insertions, 15 deletions
diff --git a/kommander/widgets/richtexteditor.cpp b/kommander/widgets/richtexteditor.cpp
index 5c6c530c..04014c17 100644
--- a/kommander/widgets/richtexteditor.cpp
+++ b/kommander/widgets/richtexteditor.cpp
@@ -17,12 +17,12 @@
#include <klocale.h>
/* QT INCLUDES */
-#include <tqlayout.h>
+#include <layout.h>
#include <tqevent.h>
-#include <tqtextedit.h>
+#include <textedit.h>
#include <tqframe.h>
#include <tqwidget.h>
-#include <tqlayout.h>
+#include <layout.h>
#include <tqtoolbutton.h>
#include <tqpixmap.h>
#include <tqhbuttongroup.h>
@@ -61,11 +61,11 @@ RichTextEditor::RichTextEditor(TQWidget *a_parent, const char *a_name)
m_textedit = new TQTextEdit(this, "editor");
m_textedit->setTextFormat(RichText);
- // tqlayout the widgets
- TQVBoxLayout *tqlayout = new TQVBoxLayout(this);
- tqlayout->addWidget(m_toolbar);
- tqlayout->addWidget(m_textedit);
- tqlayout->setSpacing(1);
+ // layout the widgets
+ TQVBoxLayout *layout = new TQVBoxLayout(this);
+ layout->addWidget(m_toolbar);
+ layout->addWidget(m_textedit);
+ layout->setSpacing(1);
// setup buttons
TQHBoxLayout *tbLayout = new TQHBoxLayout(m_toolbar);
@@ -182,11 +182,11 @@ void RichTextEditor::textAlign(int a_id)
{
TQToolButton *b = (TQToolButton *)m_alignGroup->find(a_id);
if(b == m_buttonTextLeft)
- m_textedit->tqsetAlignment(TQt::AlignLeft);
+ m_textedit->setAlignment(TQt::AlignLeft);
else if(b == m_buttonTextCenter)
- m_textedit->tqsetAlignment(TQt::AlignCenter);
+ m_textedit->setAlignment(TQt::AlignCenter);
else if(b == m_buttonTextRight)
- m_textedit->tqsetAlignment(TQt::AlignRight);
+ m_textedit->setAlignment(TQt::AlignRight);
}
void RichTextEditor::fontChanged(const TQFont &a_font)
@@ -196,13 +196,13 @@ void RichTextEditor::fontChanged(const TQFont &a_font)
m_buttonTextUnder->setOn(a_font.underline());
}
-void RichTextEditor::alignmentChanged(int a_tqalignment)
+void RichTextEditor::alignmentChanged(int a_alignment)
{
- if((a_tqalignment == AlignAuto) || (a_tqalignment & AlignLeft))
+ if((a_alignment == AlignAuto) || (a_alignment & AlignLeft))
m_buttonTextLeft->setOn(true);
- else if(a_tqalignment & AlignHCenter)
+ else if(a_alignment & AlignHCenter)
m_buttonTextCenter->setOn(true);
- else if(a_tqalignment & AlignRight)
+ else if(a_alignment & AlignRight)
m_buttonTextRight->setOn(true);
}