diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-01-04 10:30:32 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-01-04 12:36:03 +0900 |
commit | c0332621bc998c9786f4841e86a62b7711fe4abf (patch) | |
tree | 38b3ab6688de7a9396a1c5993a8ec265f5f33b64 /kivio/plugins/kiviotexttool | |
parent | 6c81ff8d61ec679e735d3fbd875583b12f0ef0a5 (diff) | |
download | koffice-c0332621bc998c9786f4841e86a62b7711fe4abf.tar.gz koffice-c0332621bc998c9786f4841e86a62b7711fe4abf.zip |
Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'kivio/plugins/kiviotexttool')
-rw-r--r-- | kivio/plugins/kiviotexttool/stenciltexteditor.cpp | 22 | ||||
-rw-r--r-- | kivio/plugins/kiviotexttool/tool_text.cpp | 4 |
2 files changed, 13 insertions, 13 deletions
diff --git a/kivio/plugins/kiviotexttool/stenciltexteditor.cpp b/kivio/plugins/kiviotexttool/stenciltexteditor.cpp index 575f5df5..9242180f 100644 --- a/kivio/plugins/kiviotexttool/stenciltexteditor.cpp +++ b/kivio/plugins/kiviotexttool/stenciltexteditor.cpp @@ -53,8 +53,8 @@ StencilTextEditor::StencilTextEditor(const TQString& caption, TQWidget *parent, menu->insertItem(SmallIconSet("text_center", 16), i18n("Align Center"), TQt::AlignHCenter); menu->insertItem(SmallIconSet("format-text-direction-rtl", 16), i18n("Align Right"), TQt::AlignRight); m_mainWidget->m_hAlignButton->setPopup(menu); - connect(menu, TQT_SIGNAL(activated(int)), this, TQT_SLOT(setHorizontalAlign(int))); - connect(m_mainWidget->m_hAlignButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(showHAlignPopup())); + connect(menu, TQ_SIGNAL(activated(int)), this, TQ_SLOT(setHorizontalAlign(int))); + connect(m_mainWidget->m_hAlignButton, TQ_SIGNAL(clicked()), this, TQ_SLOT(showHAlignPopup())); menu = new TQPopupMenu(m_mainWidget->m_vAlignButton, "hAlignMenu"); menu->setCheckable(true); @@ -62,15 +62,15 @@ StencilTextEditor::StencilTextEditor(const TQString& caption, TQWidget *parent, menu->insertItem(SmallIconSet("align_vcenter", 16), i18n("Align Vertical Center"), TQt::AlignVCenter); menu->insertItem(SmallIconSet("align_bottom", 16), i18n("Align Bottom"), TQt::AlignBottom); m_mainWidget->m_vAlignButton->setPopup(menu); - connect(menu, TQT_SIGNAL(activated(int)), this, TQT_SLOT(setVerticalAlign(int))); - connect(m_mainWidget->m_vAlignButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(showVAlignPopup())); - - connect(m_mainWidget->m_fontCombo, TQT_SIGNAL(activated(int)), this, TQT_SLOT(updateFormating())); - connect(m_mainWidget->m_fontSizeCombo, TQT_SIGNAL(activated(int)), this, TQT_SLOT(updateFormating())); - connect(m_mainWidget->m_boldButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(updateFormating())); - connect(m_mainWidget->m_italicsButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(updateFormating())); - connect(m_mainWidget->m_underLineButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(updateFormating())); - connect(m_mainWidget->m_textColorButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(updateFormating())); + connect(menu, TQ_SIGNAL(activated(int)), this, TQ_SLOT(setVerticalAlign(int))); + connect(m_mainWidget->m_vAlignButton, TQ_SIGNAL(clicked()), this, TQ_SLOT(showVAlignPopup())); + + connect(m_mainWidget->m_fontCombo, TQ_SIGNAL(activated(int)), this, TQ_SLOT(updateFormating())); + connect(m_mainWidget->m_fontSizeCombo, TQ_SIGNAL(activated(int)), this, TQ_SLOT(updateFormating())); + connect(m_mainWidget->m_boldButton, TQ_SIGNAL(clicked()), this, TQ_SLOT(updateFormating())); + connect(m_mainWidget->m_italicsButton, TQ_SIGNAL(clicked()), this, TQ_SLOT(updateFormating())); + connect(m_mainWidget->m_underLineButton, TQ_SIGNAL(clicked()), this, TQ_SLOT(updateFormating())); + connect(m_mainWidget->m_textColorButton, TQ_SIGNAL(clicked()), this, TQ_SLOT(updateFormating())); m_mainWidget->m_textArea->setFocus(); } diff --git a/kivio/plugins/kiviotexttool/tool_text.cpp b/kivio/plugins/kiviotexttool/tool_text.cpp index 8803b19d..9c1d9486 100644 --- a/kivio/plugins/kiviotexttool/tool_text.cpp +++ b/kivio/plugins/kiviotexttool/tool_text.cpp @@ -49,8 +49,8 @@ TextTool::TextTool( KivioView* parent ) : Kivio::MouseTool(parent, "Text Mouse Tool") { m_textAction = new Kivio::MouseToolAction( i18n("Text Tool"), "text", Key_F2, actionCollection(), "text" ); - connect(m_textAction, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(setActivated(bool))); - connect(m_textAction, TQT_SIGNAL(doubleClicked()), this, TQT_SLOT(makePermanent())); + connect(m_textAction, TQ_SIGNAL(toggled(bool)), this, TQ_SLOT(setActivated(bool))); + connect(m_textAction, TQ_SIGNAL(doubleClicked()), this, TQ_SLOT(makePermanent())); m_permanent = false; m_mode = stmNone; |