diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-12-28 21:15:50 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-01-01 18:03:34 +0900 |
commit | 209ac1e561619ff446be4b3411ed74e59fff168e (patch) | |
tree | 83b384cf0c4dfb918b3a4c39b4333f33e0f2f387 /src/modules/editor | |
parent | 44846083311d49d75e8376326d29f7f34e1dae52 (diff) | |
download | kvirc-209ac1e561619ff446be4b3411ed74e59fff168e.tar.gz kvirc-209ac1e561619ff446be4b3411ed74e59fff168e.zip |
Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'src/modules/editor')
-rw-r--r-- | src/modules/editor/scripteditor.cpp | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/src/modules/editor/scripteditor.cpp b/src/modules/editor/scripteditor.cpp index 258db5fb..6ae4740d 100644 --- a/src/modules/editor/scripteditor.cpp +++ b/src/modules/editor/scripteditor.cpp @@ -181,11 +181,11 @@ KviScriptEditorWidgetColorOptions::KviScriptEditorWidgetColorOptions(TQWidget * TQPushButton * b = new TQPushButton(__tr2qs_ctx("&OK","editor"),this); b->setDefault(true); - connect(b,TQT_SIGNAL(clicked()),this,TQT_SLOT(okClicked())); + connect(b,TQ_SIGNAL(clicked()),this,TQ_SLOT(okClicked())); g->addWidget(b,2,1); b = new TQPushButton(__tr2qs_ctx("Cancel","editor"),this); - connect(b,TQT_SIGNAL(clicked()),this,TQT_SLOT(reject())); + connect(b,TQ_SIGNAL(clicked()),this,TQ_SLOT(reject())); g->addWidget(b,2,2); @@ -225,7 +225,7 @@ KviScriptEditorWidget::KviScriptEditorWidget(TQWidget * pParent) updateOptions(); m_szFind=""; completelistbox=new KviCompletionBox(this); - connect (completelistbox,TQT_SIGNAL(selected(const TQString &)),this,TQT_SLOT(slotComplete(const TQString &))); + connect (completelistbox,TQ_SIGNAL(selected(const TQString &)),this,TQ_SLOT(slotComplete(const TQString &))); } KviScriptEditorWidget::~KviScriptEditorWidget() @@ -236,8 +236,8 @@ KviScriptEditorWidget::~KviScriptEditorWidget() TQPopupMenu * KviScriptEditorWidget::createPopupMenu( const TQPoint& pos ) { TQPopupMenu *pop=KviTalTextEdit::createPopupMenu(pos); - pop->insertItem(__tr2qs("Context sensitive help"),this,TQT_SLOT(slotHelp()),TQt::CTRL+TQt::Key_H); - pop->insertItem(__tr2qs("&Replace"),this,TQT_SLOT(slotReplace()),TQt::CTRL+TQt::Key_R); + pop->insertItem(__tr2qs("Context sensitive help"),this,TQ_SLOT(slotHelp()),TQt::CTRL+TQt::Key_H); + pop->insertItem(__tr2qs("&Replace"),this,TQ_SLOT(slotReplace()),TQt::CTRL+TQt::Key_R); return pop; } @@ -250,9 +250,9 @@ void KviScriptEditorWidget::slotFind() void KviScriptEditorWidget::slotReplace() { KviScriptEditorReplaceDialog *dialog=new KviScriptEditorReplaceDialog(this,tr("Find & Replace")); - connect (dialog,TQT_SIGNAL(replaceAll(const TQString &,const TQString &)),m_pParent,TQT_SLOT(slotReplaceAll(const TQString &,const TQString &))); - connect (dialog,TQT_SIGNAL(initFind()),m_pParent,TQT_SLOT(slotInitFind())); - connect (dialog,TQT_SIGNAL(nextFind(const TQString &)),m_pParent,TQT_SLOT(slotNextFind(const TQString &))); + connect (dialog,TQ_SIGNAL(replaceAll(const TQString &,const TQString &)),m_pParent,TQ_SLOT(slotReplaceAll(const TQString &,const TQString &))); + connect (dialog,TQ_SIGNAL(initFind()),m_pParent,TQ_SLOT(slotInitFind())); + connect (dialog,TQ_SIGNAL(nextFind(const TQString &)),m_pParent,TQ_SLOT(slotNextFind(const TQString &))); if(dialog->exec()){}; } @@ -840,10 +840,10 @@ KviScriptEditorImplementation::KviScriptEditorImplementation(TQWidget * par) g->addWidget(b,1,0); KviTalPopupMenu * pop = new KviTalPopupMenu(b); - pop->insertItem(__tr2qs_ctx("&Open...","editor"),this,TQT_SLOT(loadFromFile())); - pop->insertItem(__tr2qs_ctx("&Save As...","editor"),this,TQT_SLOT(saveToFile())); + pop->insertItem(__tr2qs_ctx("&Open...","editor"),this,TQ_SLOT(loadFromFile())); + pop->insertItem(__tr2qs_ctx("&Save As...","editor"),this,TQ_SLOT(saveToFile())); pop->insertSeparator(); - pop->insertItem(__tr2qs_ctx("&Configure Editor...","editor"),this,TQT_SLOT(configureColors())); + pop->insertItem(__tr2qs_ctx("&Configure Editor...","editor"),this,TQ_SLOT(configureColors())); b->setPopup(pop); b->setPopupDelay(1); @@ -859,11 +859,11 @@ KviScriptEditorImplementation::KviScriptEditorImplementation(TQWidget * par) m_pRowColLabel->setMinimumWidth(80); g->addWidget(m_pRowColLabel,1,3); - connect(m_pFindLineedit,TQT_SIGNAL(returnPressed()),m_pEditor,TQT_SLOT(slotFind())); - connect(m_pFindLineedit,TQT_SIGNAL(returnPressed()),this,TQT_SLOT(slotFind())); - connect(m_pEditor,TQT_SIGNAL(keyPressed()),this,TQT_SLOT(updateRowColLabel())); - connect(m_pEditor,TQT_SIGNAL(textChanged()),this,TQT_SLOT(updateRowColLabel())); - connect(m_pEditor,TQT_SIGNAL(selectionChanged()),this,TQT_SLOT(updateRowColLabel())); + connect(m_pFindLineedit,TQ_SIGNAL(returnPressed()),m_pEditor,TQ_SLOT(slotFind())); + connect(m_pFindLineedit,TQ_SIGNAL(returnPressed()),this,TQ_SLOT(slotFind())); + connect(m_pEditor,TQ_SIGNAL(keyPressed()),this,TQ_SLOT(updateRowColLabel())); + connect(m_pEditor,TQ_SIGNAL(textChanged()),this,TQ_SLOT(updateRowColLabel())); + connect(m_pEditor,TQ_SIGNAL(selectionChanged()),this,TQ_SLOT(updateRowColLabel())); m_lastCursorPos = TQPoint(-1,-1); } @@ -1143,10 +1143,10 @@ KviScriptEditorReplaceDialog::KviScriptEditorReplaceDialog( TQWidget* parent, co clearWState( WState_Polished ); setTabOrder(m_pFindlineedit,m_pReplacelineedit); // signals and slots connections - connect( replacebutton, TQT_SIGNAL( clicked() ), this, TQT_SLOT( slotReplace() ) ); - connect( findNext, TQT_SIGNAL( clicked() ),this,TQT_SLOT( slotNextFind())); - connect( cancelbutton, TQT_SIGNAL( clicked() ), this, TQT_SLOT( reject() ) ); - connect( m_pFindlineedit, TQT_SIGNAL( textChanged(const TQString &)), this, TQT_SLOT( textChanged(const TQString &))); + connect( replacebutton, TQ_SIGNAL( clicked() ), this, TQ_SLOT( slotReplace() ) ); + connect( findNext, TQ_SIGNAL( clicked() ),this,TQ_SLOT( slotNextFind())); + connect( cancelbutton, TQ_SIGNAL( clicked() ), this, TQ_SLOT( reject() ) ); + connect( m_pFindlineedit, TQ_SIGNAL( textChanged(const TQString &)), this, TQ_SLOT( textChanged(const TQString &))); } |