Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
master
Michele Calgaro 10 months ago
parent fbbe9cf4e4
commit 59999a5ad2
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -99,8 +99,8 @@ AboutDialog::AboutDialog(TQWidget *parent, WFlags flags) :
m_scrollSpeed = 100; m_scrollSpeed = 100;
m_timer = new TQTimer(this); m_timer = new TQTimer(this);
connect(m_timer, SIGNAL(timeout()), this, SLOT(scroll())); connect(m_timer, TQ_SIGNAL(timeout()), this, TQ_SLOT(scroll()));
connect(okButton, SIGNAL(clicked()), this, SLOT(accept())); connect(okButton, TQ_SIGNAL(clicked()), this, TQ_SLOT(accept()));
} }
/* /*

@ -92,14 +92,14 @@ IndentHandler::IndentHandler(int indenterID, MainWindow *mainWindow, TQWidget *p
if (m_mainWindow) if (m_mainWindow)
{ {
connect((TQObject*)m_mainWindow->actionLoadIndenterConfigFile, SIGNAL(activated()), connect((TQObject*)m_mainWindow->actionLoadIndenterConfigFile, TQ_SIGNAL(activated()),
this, SLOT(openConfigFileDialog())); this, TQ_SLOT(openConfigFileDialog()));
connect((TQObject*)m_mainWindow->actionSaveIndenterConfigFile, SIGNAL(activated()), connect((TQObject*)m_mainWindow->actionSaveIndenterConfigFile, TQ_SIGNAL(activated()),
this, SLOT(saveasIndentCfgFileDialog())); this, TQ_SLOT(saveasIndentCfgFileDialog()));
connect((TQObject*)m_mainWindow->actionCreateShellScript, SIGNAL(activated()), connect((TQObject*)m_mainWindow->actionCreateShellScript, TQ_SIGNAL(activated()),
this, SLOT(createIndenterCallShellScript())); this, TQ_SLOT(createIndenterCallShellScript()));
connect((TQObject*)m_mainWindow->actionResetIndenterParameters, SIGNAL(activated()), connect((TQObject*)m_mainWindow->actionResetIndenterParameters, TQ_SIGNAL(activated()),
this, SLOT(resetIndenterParameter())); this, TQ_SLOT(resetIndenterParameter()));
} }
// create vertical layout box, into which the toolbox will be added // create vertical layout box, into which the toolbox will be added
@ -115,13 +115,13 @@ IndentHandler::IndentHandler(int indenterID, MainWindow *mainWindow, TQWidget *p
// Create the indenter selection combo box. // Create the indenter selection combo box.
m_indenterSelectionCombobox = new TQComboBox(this); m_indenterSelectionCombobox = new TQComboBox(this);
m_indenterSelectionCombobox->setSizePolicy(TQSizePolicy::MinimumExpanding, TQSizePolicy::Minimum); m_indenterSelectionCombobox->setSizePolicy(TQSizePolicy::MinimumExpanding, TQSizePolicy::Minimum);
connect(m_indenterSelectionCombobox, SIGNAL(activated(int)), this, SLOT(setIndenter(int))); connect(m_indenterSelectionCombobox, TQ_SIGNAL(activated(int)), this, TQ_SLOT(setIndenter(int)));
hboxLayout->addWidget(m_indenterSelectionCombobox); hboxLayout->addWidget(m_indenterSelectionCombobox);
// Create the indenter parameter help button. // Create the indenter parameter help button.
m_indenterParameterHelpButton = new TQToolButton(this); m_indenterParameterHelpButton = new TQToolButton(this);
m_indenterParameterHelpButton->setIconSet(TQPixmap(TQString(APP_ICONS_PATH)+ "help.png")); m_indenterParameterHelpButton->setIconSet(TQPixmap(TQString(APP_ICONS_PATH)+ "help.png"));
connect(m_indenterParameterHelpButton, SIGNAL(clicked()), this, SLOT(showIndenterManual())); connect(m_indenterParameterHelpButton, TQ_SIGNAL(clicked()), this, TQ_SLOT(showIndenterManual()));
hboxLayout->addWidget(m_indenterParameterHelpButton); hboxLayout->addWidget(m_indenterParameterHelpButton);
// create a toolbox and set its resize behavior // create a toolbox and set its resize behavior
@ -331,7 +331,7 @@ TQString IndentHandler::callExecutableIndenter(const TQString &sourceCode, const
TQString parameterParameterFile; TQString parameterParameterFile;
TQProcess indentProcess; TQProcess indentProcess;
TQObject::connect(&indentProcess, SIGNAL(processExited()), this, SLOT(indenterProcessFinished())); TQObject::connect(&indentProcess, TQ_SIGNAL(processExited()), this, TQ_SLOT(indenterProcessFinished()));
// Generate the parameter string that will be saved to the indenters config file // Generate the parameter string that will be saved to the indenters config file
TQString parameterString = getParameterString(); TQString parameterString = getParameterString();
@ -701,12 +701,12 @@ bool IndentHandler::loadConfigFile(const TQString &filePathName)
} }
// Disconnect and reconnect the signal, otherwise it is emitted each time the value is set // Disconnect and reconnect the signal, otherwise it is emitted each time the value is set
disconnect(pNumeric.spinBox, SIGNAL(valueChanged(int)), disconnect(pNumeric.spinBox, TQ_SIGNAL(valueChanged(int)),
this, SLOT(handleChangedIndenterSettings())); this, TQ_SLOT(handleChangedIndenterSettings()));
pNumeric.spinBox->setValue(paramValue); pNumeric.spinBox->setValue(paramValue);
pNumeric.valueEnabledChkBox->setChecked(found); pNumeric.valueEnabledChkBox->setChecked(found);
connect(pNumeric.spinBox, SIGNAL(valueChanged(int)), connect(pNumeric.spinBox, TQ_SIGNAL(valueChanged(int)),
this, SLOT(handleChangedIndenterSettings())); this, TQ_SLOT(handleChangedIndenterSettings()));
} }
// Search for name of each string parameter and set it. // Search for name of each string parameter and set it.
@ -1064,9 +1064,9 @@ void IndentHandler::readIndentIniFile(const TQString &iniFilePath)
"/ValueDefault").toInt()); "/ValueDefault").toInt());
m_paramNumerics.append(paramNumeric); m_paramNumerics.append(paramNumeric);
TQObject::connect(spinBox, SIGNAL(valueChanged(int)), this, TQObject::connect(spinBox, TQ_SIGNAL(valueChanged(int)), this,
SLOT(handleChangedIndenterSettings())); TQ_SLOT(handleChangedIndenterSettings()));
TQObject::connect(chkBox, SIGNAL(clicked()), this, SLOT(handleChangedIndenterSettings())); TQObject::connect(chkBox, TQ_SIGNAL(clicked()), this, TQ_SLOT(handleChangedIndenterSettings()));
} }
// edit type is boolean so create a checkbox // edit type is boolean so create a checkbox
else if (editType == "boolean") else if (editType == "boolean")
@ -1104,7 +1104,7 @@ void IndentHandler::readIndentIniFile(const TQString &iniFilePath)
"/ValueDefault").toBool()); "/ValueDefault").toBool());
m_paramBooleans.append(paramBoolean); m_paramBooleans.append(paramBoolean);
TQObject::connect(chkBox, SIGNAL(clicked()), this, SLOT(handleChangedIndenterSettings())); TQObject::connect(chkBox, TQ_SIGNAL(clicked()), this, TQ_SLOT(handleChangedIndenterSettings()));
} }
// edit type is numeric so create a line edit with label // edit type is numeric so create a line edit with label
else if (editType == "string") else if (editType == "string")
@ -1159,9 +1159,9 @@ void IndentHandler::readIndentIniFile(const TQString &iniFilePath)
"/ValueDefault").toString()); "/ValueDefault").toString());
m_paramStrings.append(paramString); m_paramStrings.append(paramString);
TQObject::connect(lineEdit, SIGNAL(returnPressed()), this, TQObject::connect(lineEdit, TQ_SIGNAL(returnPressed()), this,
SLOT(handleChangedIndenterSettings())); TQ_SLOT(handleChangedIndenterSettings()));
TQObject::connect(chkBox, SIGNAL(clicked()), this, SLOT(handleChangedIndenterSettings())); TQObject::connect(chkBox, TQ_SIGNAL(clicked()), this, TQ_SLOT(handleChangedIndenterSettings()));
} }
// edit type is multiple so create a combobox with label // edit type is multiple so create a combobox with label
else if (editType == "multiple") else if (editType == "multiple")
@ -1218,9 +1218,9 @@ void IndentHandler::readIndentIniFile(const TQString &iniFilePath)
"/ValueDefault").toInt()); "/ValueDefault").toInt());
m_paramMultiples.append(paramMultiple); m_paramMultiples.append(paramMultiple);
TQObject::connect(comboBox, SIGNAL(activated(int)), this, TQObject::connect(comboBox, TQ_SIGNAL(activated(int)), this,
SLOT(handleChangedIndenterSettings())); TQ_SLOT(handleChangedIndenterSettings()));
TQObject::connect(chkBox, SIGNAL(clicked()), this, SLOT(handleChangedIndenterSettings())); TQObject::connect(chkBox, TQ_SIGNAL(clicked()), this, TQ_SLOT(handleChangedIndenterSettings()));
} }
} }
} }
@ -1351,7 +1351,7 @@ TQString IndentHandler::getIndenterCfgFile()
bool IndentHandler::createIndenterCallString() bool IndentHandler::createIndenterCallString()
{ {
TQProcess indentProcess(this); TQProcess indentProcess(this);
TQObject::connect(&indentProcess, SIGNAL(processExited()), this, SLOT(indenterProcessFinished())); TQObject::connect(&indentProcess, TQ_SIGNAL(processExited()), this, TQ_SLOT(indenterProcessFinished()));
if (m_indenterFileName.isEmpty()) if (m_indenterFileName.isEmpty())
{ {

@ -114,11 +114,11 @@ MainWindow::MainWindow(TQString file2OpenOnStart, TQWidget *parent) :
//m_aboutDialog = new AboutDialog(this, WStyle_Splash); //m_aboutDialog = new AboutDialog(this, WStyle_Splash);
m_aboutDialog = new AboutDialog(this); m_aboutDialog = new AboutDialog(this);
///-- _aboutDialogGraphicsView = new AboutDialogGraphicsView(m_aboutDialog, this); ///-- _aboutDialogGraphicsView = new AboutDialogGraphicsView(m_aboutDialog, this);
connect(actionAboutUniversalIndentGUITQt, SIGNAL(activated()), this, SLOT(showAboutDialog())); connect(actionAboutUniversalIndentGUITQt, TQ_SIGNAL(activated()), this, TQ_SLOT(showAboutDialog()));
// Generate settings dialog box // Generate settings dialog box
m_settingsDialog = new UiGuiSettingsDialog(this, m_settings); m_settingsDialog = new UiGuiSettingsDialog(this, m_settings);
connect(actionShowSettings, SIGNAL(activated()), m_settingsDialog, SLOT(showDialog())); connect(actionShowSettings, TQ_SIGNAL(activated()), m_settingsDialog, TQ_SLOT(showDialog()));
if (TQFile::exists(file2OpenOnStart)) if (TQFile::exists(file2OpenOnStart))
{ {
@ -205,60 +205,60 @@ void MainWindow::initMainWindow()
m_currentEncoding = m_settings->getValueByName("FileEncoding").toString(); m_currentEncoding = m_settings->getValueByName("FileEncoding").toString();
// Register the syntax highlighting setting in the menu to the settings object. // Register the syntax highlighting setting in the menu to the settings object.
connect(actionEnableSyntaxHighlighting, SIGNAL(toggled(bool)), connect(actionEnableSyntaxHighlighting, TQ_SIGNAL(toggled(bool)),
m_settings, SLOT(handleValueChangeFromExtern(bool))); m_settings, TQ_SLOT(handleValueChangeFromExtern(bool)));
connect(m_settings, SIGNAL(syntaxHighlightingEnabled(bool)), connect(m_settings, TQ_SIGNAL(syntaxHighlightingEnabled(bool)),
actionEnableSyntaxHighlighting, SLOT(setOn(bool))); actionEnableSyntaxHighlighting, TQ_SLOT(setOn(bool)));
actionEnableSyntaxHighlighting->setOn( actionEnableSyntaxHighlighting->setOn(
m_settings->getValueByName("SyntaxHighlightingEnabled").toBool()); m_settings->getValueByName("SyntaxHighlightingEnabled").toBool());
// Tell the highlighter if it has to be enabled or disabled. // Tell the highlighter if it has to be enabled or disabled.
connect(m_settings, SIGNAL(syntaxHighlightingEnabled(bool)), this, SLOT(turnHighlightOnOff(bool))); connect(m_settings, TQ_SIGNAL(syntaxHighlightingEnabled(bool)), this, TQ_SLOT(turnHighlightOnOff(bool)));
// Register the load last file setting in the menu to the settings object // Register the load last file setting in the menu to the settings object
connect(actionLoadLastOpenedFileOnStartup, SIGNAL(toggled(bool)), connect(actionLoadLastOpenedFileOnStartup, TQ_SIGNAL(toggled(bool)),
m_settings, SLOT(handleValueChangeFromExtern(bool))); m_settings, TQ_SLOT(handleValueChangeFromExtern(bool)));
connect(m_settings, SIGNAL(loadLastOpenedFileOnStartup(bool)), connect(m_settings, TQ_SIGNAL(loadLastOpenedFileOnStartup(bool)),
actionLoadLastOpenedFileOnStartup, SLOT(setOn(bool))); actionLoadLastOpenedFileOnStartup, TQ_SLOT(setOn(bool)));
actionLoadLastOpenedFileOnStartup->setOn( actionLoadLastOpenedFileOnStartup->setOn(
m_settings->getValueByName("LoadLastOpenedFileOnStartup").toBool()); m_settings->getValueByName("LoadLastOpenedFileOnStartup").toBool());
// Register the white space setting in the menu to the settings object. // Register the white space setting in the menu to the settings object.
connect(actionWhiteSpaceIsVisible, SIGNAL(toggled(bool)), connect(actionWhiteSpaceIsVisible, TQ_SIGNAL(toggled(bool)),
m_settings, SLOT(handleValueChangeFromExtern(bool))); m_settings, TQ_SLOT(handleValueChangeFromExtern(bool)));
connect(m_settings, SIGNAL(whiteSpaceIsVisible(bool)), connect(m_settings, TQ_SIGNAL(whiteSpaceIsVisible(bool)),
actionWhiteSpaceIsVisible, SLOT(setOn(bool))); actionWhiteSpaceIsVisible, TQ_SLOT(setOn(bool)));
actionWhiteSpaceIsVisible->setOn(m_settings->getValueByName("WhiteSpaceIsVisible").toBool()); actionWhiteSpaceIsVisible->setOn(m_settings->getValueByName("WhiteSpaceIsVisible").toBool());
// Tell the TQScintilla editor if it has to show white space. // Tell the TQScintilla editor if it has to show white space.
connect(m_settings, SIGNAL(whiteSpaceIsVisible(bool)), this, SLOT(setWhiteSpaceVisibility(bool))); connect(m_settings, TQ_SIGNAL(whiteSpaceIsVisible(bool)), this, TQ_SLOT(setWhiteSpaceVisibility(bool)));
// Register the indenter parameter tooltip setting in the menu to the settings object // Register the indenter parameter tooltip setting in the menu to the settings object
connect(actionIndenterParameterTooltipsEnabled, SIGNAL(toggled(bool)), connect(actionIndenterParameterTooltipsEnabled, TQ_SIGNAL(toggled(bool)),
m_settings, SLOT(handleValueChangeFromExtern(bool))); m_settings, TQ_SLOT(handleValueChangeFromExtern(bool)));
connect(m_settings, SIGNAL(indenterParameterTooltipsEnabled(bool)), connect(m_settings, TQ_SIGNAL(indenterParameterTooltipsEnabled(bool)),
actionIndenterParameterTooltipsEnabled, SLOT(setOn(bool))); actionIndenterParameterTooltipsEnabled, TQ_SLOT(setOn(bool)));
actionIndenterParameterTooltipsEnabled->setOn( actionIndenterParameterTooltipsEnabled->setOn(
m_settings->getValueByName("IndenterParameterTooltipsEnabled").toBool()); m_settings->getValueByName("IndenterParameterTooltipsEnabled").toBool());
// Connect the remaining menu items. // Connect the remaining menu items.
connect(actionOpenSourceFile, SIGNAL(activated()), this, SLOT(openSourceFileDialog())); connect(actionOpenSourceFile, TQ_SIGNAL(activated()), this, TQ_SLOT(openSourceFileDialog()));
connect(actionSaveSourceFile, SIGNAL(activated()), this, SLOT(saveSourceFile())); connect(actionSaveSourceFile, TQ_SIGNAL(activated()), this, TQ_SLOT(saveSourceFile()));
connect(actionSaveSourceFileAs, SIGNAL(activated()), this, SLOT(saveasSourceFileDialog())); connect(actionSaveSourceFileAs, TQ_SIGNAL(activated()), this, TQ_SLOT(saveasSourceFileDialog()));
connect(actionExportPDF, SIGNAL(activated()), this, SLOT(exportToPDF())); connect(actionExportPDF, TQ_SIGNAL(activated()), this, TQ_SLOT(exportToPDF()));
connect(actionExportHTML, SIGNAL(activated()), this, SLOT(exportToHTML())); connect(actionExportHTML, TQ_SIGNAL(activated()), this, TQ_SLOT(exportToHTML()));
connect(m_settings, SIGNAL(indenterParameterTooltipsEnabled(bool)), connect(m_settings, TQ_SIGNAL(indenterParameterTooltipsEnabled(bool)),
this, SLOT(setIndenterParameterTooltips(bool))); this, TQ_SLOT(setIndenterParameterTooltips(bool)));
///-- connect(actionShowLog, SIGNAL(activated()), ///-- connect(actionShowLog, TQ_SIGNAL(activated()),
///-- debugging::TSLogger::getInstance(), SLOT(show())); ///-- debugging::TSLogger::getInstance(), TQ_SLOT(show()));
// Init the menu for selecting one of the recently opened files. // Init the menu for selecting one of the recently opened files.
initRecentlyOpenedList(); initRecentlyOpenedList();
updateRecentlyOpenedList(); updateRecentlyOpenedList();
connect(popupMenuRecentlyOpenedFiles, SIGNAL(highlighted(int)), connect(popupMenuRecentlyOpenedFiles, TQ_SIGNAL(highlighted(int)),
this, SLOT(recentlyOpenedFileHighlighted(int))); this, TQ_SLOT(recentlyOpenedFileHighlighted(int)));
connect(popupMenuRecentlyOpenedFiles, SIGNAL(activated(int)), connect(popupMenuRecentlyOpenedFiles, TQ_SIGNAL(activated(int)),
this, SLOT(openFileFromRecentlyOpenedList(int))); this, TQ_SLOT(openFileFromRecentlyOpenedList(int)));
connect(m_settings, SIGNAL(recentlyOpenedListSize(int)), this, SLOT(updateRecentlyOpenedList())); connect(m_settings, TQ_SIGNAL(recentlyOpenedListSize(int)), this, TQ_SLOT(updateRecentlyOpenedList()));
updateWindowTitle(); updateWindowTitle();
} }
@ -278,19 +278,19 @@ void MainWindow::initToolBar()
m_toolBarWidget->cbEnableSyntaxHL->hide(); m_toolBarWidget->cbEnableSyntaxHL->hide();
m_toolBarWidget->pbOpenSourceFile->setIconSet(TQPixmap(ICONS_PATH + "document-open.png")); m_toolBarWidget->pbOpenSourceFile->setIconSet(TQPixmap(ICONS_PATH + "document-open.png"));
connect(m_toolBarWidget->pbOpenSourceFile, SIGNAL(clicked()), this, SLOT(openSourceFileDialog())); connect(m_toolBarWidget->pbOpenSourceFile, TQ_SIGNAL(clicked()), this, TQ_SLOT(openSourceFileDialog()));
m_toolBarWidget->pbAbout->setIconSet(TQPixmap(ICONS_PATH + "info.png")); m_toolBarWidget->pbAbout->setIconSet(TQPixmap(ICONS_PATH + "info.png"));
connect(m_toolBarWidget->pbAbout, SIGNAL(clicked()), this, SLOT(showAboutDialog())); connect(m_toolBarWidget->pbAbout, TQ_SIGNAL(clicked()), this, TQ_SLOT(showAboutDialog()));
m_toolBarWidget->pbExit->setIconSet(TQPixmap(ICONS_PATH + "system-log-out.png")); m_toolBarWidget->pbExit->setIconSet(TQPixmap(ICONS_PATH + "system-log-out.png"));
connect(m_toolBarWidget->pbExit, SIGNAL(clicked()), this, SLOT(close())); connect(m_toolBarWidget->pbExit, TQ_SIGNAL(clicked()), this, TQ_SLOT(close()));
// Settings a pixmap hides the text in TQt3 // Settings a pixmap hides the text in TQt3
//m_toolBarWidget->cbLivePreview->setPixmap(TQPixmap(ICONS_PATH + "live-preview.png")); //m_toolBarWidget->cbLivePreview->setPixmap(TQPixmap(ICONS_PATH + "live-preview.png"));
connect(m_toolBarWidget->cbLivePreview, SIGNAL(toggled(bool)), this, SLOT(previewTurnedOnOff(bool))); connect(m_toolBarWidget->cbLivePreview, TQ_SIGNAL(toggled(bool)), this, TQ_SLOT(previewTurnedOnOff(bool)));
connect(m_toolBarWidget->cbLivePreview, SIGNAL(toggled(bool)), connect(m_toolBarWidget->cbLivePreview, TQ_SIGNAL(toggled(bool)),
actionLiveIndentPreview, SLOT(setOn(bool))); actionLiveIndentPreview, TQ_SLOT(setOn(bool)));
} }
/* /*
@ -329,7 +329,7 @@ void MainWindow::initTextEditor()
// Handle the width of tabs in spaces // Handle the width of tabs in spaces
int tabWidth = m_settings->getValueByName("TabWidth").toInt(); int tabWidth = m_settings->getValueByName("TabWidth").toInt();
m_qSciSourceCodeEditor->setTabWidth(tabWidth); m_qSciSourceCodeEditor->setTabWidth(tabWidth);
connect(m_settings, SIGNAL(tabWidth(int)), m_qSciSourceCodeEditor, SLOT(setTabWidth(int))); connect(m_settings, TQ_SIGNAL(tabWidth(int)), m_qSciSourceCodeEditor, TQ_SLOT(setTabWidth(int)));
// TODO not available in TQScintilla 1.71 // TODO not available in TQScintilla 1.71
// Remember a pointer to the scrollbar of the TQScintilla widget used to keep // Remember a pointer to the scrollbar of the TQScintilla widget used to keep
@ -339,15 +339,15 @@ void MainWindow::initTextEditor()
// Add a column row indicator to the status bar. // Add a column row indicator to the status bar.
m_textEditLineColumnInfoLabel = new TQLabel(tr("Line %1, Column %2").arg(1).arg(1), this); m_textEditLineColumnInfoLabel = new TQLabel(tr("Line %1, Column %2").arg(1).arg(1), this);
statusBar()->addWidget(m_textEditLineColumnInfoLabel, 0, true); statusBar()->addWidget(m_textEditLineColumnInfoLabel, 0, true);
connect(m_qSciSourceCodeEditor, SIGNAL(cursorPositionChanged(int,int)), connect(m_qSciSourceCodeEditor, TQ_SIGNAL(cursorPositionChanged(int,int)),
this, SLOT(setStatusBarCursorPosInfo(int, int))); this, TQ_SLOT(setStatusBarCursorPosInfo(int, int)));
// Connect the text editor to dependent functions. // Connect the text editor to dependent functions.
connect(m_qSciSourceCodeEditor, SIGNAL(textChanged()), this, SLOT(sourceCodeChangedHelperSlot())); connect(m_qSciSourceCodeEditor, TQ_SIGNAL(textChanged()), this, TQ_SLOT(sourceCodeChangedHelperSlot()));
// TODO signal 'linesChanged' is not available in TQScintilla 1.71. // TODO signal 'linesChanged' is not available in TQScintilla 1.71.
// Use textChanged for now and check for line number changes in the slot // Use textChanged for now and check for line number changes in the slot
//connect(m_qSciSourceCodeEditor, SIGNAL(linesChanged()), this, SLOT(numberOfLinesChanged())); //connect(m_qSciSourceCodeEditor, TQ_SIGNAL(linesChanged()), this, TQ_SLOT(numberOfLinesChanged()));
connect(m_qSciSourceCodeEditor, SIGNAL(textChanged()), this, SLOT(numberOfLinesChanged())); connect(m_qSciSourceCodeEditor, TQ_SIGNAL(textChanged()), this, TQ_SLOT(numberOfLinesChanged()));
numberOfLinesChanged(); numberOfLinesChanged();
} }
@ -423,7 +423,7 @@ bool MainWindow::initApplicationLanguage()
tqApp->installTranslator(m_uiGuiTranslator); tqApp->installTranslator(m_uiGuiTranslator);
} }
connect(m_settings, SIGNAL(language(int)), this, SLOT(languageChanged(int)) ); connect(m_settings, TQ_SIGNAL(language(int)), this, TQ_SLOT(languageChanged(int)) );
return translationFileLoaded; return translationFileLoaded;
} }
@ -441,8 +441,8 @@ void MainWindow::initIndenter()
m_centralSplitter->moveToFirst(m_indentHandler); m_centralSplitter->moveToFirst(m_indentHandler);
// If settings for the indenter have changed, let the main window know aboud it. // If settings for the indenter have changed, let the main window know aboud it.
connect(m_indentHandler, SIGNAL(indenterSettingsChanged()), this, connect(m_indentHandler, TQ_SIGNAL(indenterSettingsChanged()), this,
SLOT(indentSettingsChangedSlot())); TQ_SLOT(indentSettingsChangedSlot()));
// Set this true, so the indenter is called at first program start // Set this true, so the indenter is called at first program start
m_indentSettingsChanged = true; m_indentSettingsChanged = true;
@ -644,12 +644,12 @@ void MainWindow::updateSourceView()
if (m_previewToggled) if (m_previewToggled)
{ {
disconnect(m_qSciSourceCodeEditor, SIGNAL(textChanged()), disconnect(m_qSciSourceCodeEditor, TQ_SIGNAL(textChanged()),
this, SLOT(sourceCodeChangedHelperSlot())); this, TQ_SLOT(sourceCodeChangedHelperSlot()));
m_qSciSourceCodeEditor->setText(m_sourceViewContent); m_qSciSourceCodeEditor->setText(m_sourceViewContent);
m_previewToggled = false; m_previewToggled = false;
connect(m_qSciSourceCodeEditor, SIGNAL(textChanged()), connect(m_qSciSourceCodeEditor, TQ_SIGNAL(textChanged()),
this, SLOT(sourceCodeChangedHelperSlot())); this, TQ_SLOT(sourceCodeChangedHelperSlot()));
} }
///-- m_textEditVScrollBar->setValue(_textEditLastScrollPos); ///-- m_textEditVScrollBar->setValue(_textEditLastScrollPos);
@ -691,7 +691,7 @@ void MainWindow::turnHighlightOnOff(bool turnOn)
*/ */
void MainWindow::sourceCodeChangedHelperSlot() void MainWindow::sourceCodeChangedHelperSlot()
{ {
TQTimer::singleShot(0, this, SLOT(sourceCodeChangedSlot())); TQTimer::singleShot(0, this, TQ_SLOT(sourceCodeChangedSlot()));
} }
/* /*
@ -1172,12 +1172,12 @@ void MainWindow::createEncodingMenu()
} }
m_encodingActionGroup->addTo(popupMenuEncoding); m_encodingActionGroup->addTo(popupMenuEncoding);
connect(m_encodingActionGroup, SIGNAL(selected(TQAction*)), connect(m_encodingActionGroup, TQ_SIGNAL(selected(TQAction*)),
this, SLOT(encodingChanged(TQAction*))); this, TQ_SLOT(encodingChanged(TQAction*)));
m_saveEncodedActionGroup->addTo(popupMenuSaveEncoded); m_saveEncodedActionGroup->addTo(popupMenuSaveEncoded);
connect(m_saveEncodedActionGroup, SIGNAL(selected(TQAction*)), connect(m_saveEncodedActionGroup, TQ_SIGNAL(selected(TQAction*)),
this, SLOT(saveAsOtherEncoding(TQAction*))); this, TQ_SLOT(saveAsOtherEncoding(TQAction*)));
} }
/* /*
@ -1254,8 +1254,8 @@ void MainWindow::createHighlighterMenu()
} }
m_highlighterActionGroup->addTo(popupMenuHighlighter); m_highlighterActionGroup->addTo(popupMenuHighlighter);
connect(m_highlighterActionGroup , SIGNAL(selected(TQAction*)), connect(m_highlighterActionGroup , TQ_SIGNAL(selected(TQAction*)),
m_highlighter, SLOT(setHighlighterByAction(TQAction*))); m_highlighter, TQ_SLOT(setHighlighterByAction(TQAction*)));
} }
/* /*

@ -74,7 +74,7 @@ AboutDialogGraphicsView::AboutDialogGraphicsView(AboutDialog *aboutDialog, TQWid
setCacheMode(TQGraphicsView::CacheBackground); setCacheMode(TQGraphicsView::CacheBackground);
setViewportUpdateMode(TQGraphicsView::BoundingRectViewportUpdate); setViewportUpdateMode(TQGraphicsView::BoundingRectViewportUpdate);
connect(_aboutDialog, SIGNAL(finished(int)), this, SLOT(hide())); connect(_aboutDialog, TQ_SIGNAL(finished(int)), this, TQ_SLOT(hide()));
//setWindowOpacity(0.9); //setWindowOpacity(0.9);
@ -86,7 +86,7 @@ AboutDialogGraphicsView::AboutDialogGraphicsView(AboutDialog *aboutDialog, TQWid
_timeLine->setFrameRange(270, 0); _timeLine->setFrameRange(270, 0);
//_timeLine->setUpdateInterval(10); //_timeLine->setUpdateInterval(10);
//_timeLine->setCurveShape(TQTimeLine::EaseInCurve); //_timeLine->setCurveShape(TQTimeLine::EaseInCurve);
connect(_timeLine, SIGNAL(frameChanged(int)), this, SLOT(updateStep(int))); connect(_timeLine, TQ_SIGNAL(frameChanged(int)), this, TQ_SLOT(updateStep(int)));
} }
AboutDialogGraphicsView::~AboutDialogGraphicsView(void) AboutDialogGraphicsView::~AboutDialogGraphicsView(void)
@ -150,7 +150,7 @@ void AboutDialogGraphicsView::show()
//_aboutDialogAsSplashScreen->show(); //_aboutDialogAsSplashScreen->show();
TQGraphicsView::show(); TQGraphicsView::show();
connect(_timeLine, SIGNAL(finished()), this, SLOT(showAboutDialog())); connect(_timeLine, TQ_SIGNAL(finished()), this, TQ_SLOT(showAboutDialog()));
_timeLine->setDirection(TQTimeLine::Forward); _timeLine->setDirection(TQTimeLine::Forward);
_timeLine->start(); _timeLine->start();
} }
@ -176,7 +176,7 @@ void AboutDialogGraphicsView::updateStep(int step)
void AboutDialogGraphicsView::showAboutDialog() void AboutDialogGraphicsView::showAboutDialog()
{ {
//hide(); //hide();
disconnect(_timeLine, SIGNAL(finished()), this, SLOT(showAboutDialog())); disconnect(_timeLine, TQ_SIGNAL(finished()), this, TQ_SLOT(showAboutDialog()));
_aboutDialog->move(int(_parentWindow->geometry().x() + _aboutDialog->move(int(_parentWindow->geometry().x() +
(_parentWindow->geometry().width() - _graphicsProxyWidget->geometry().width()) / 2), (_parentWindow->geometry().width() - _graphicsProxyWidget->geometry().width()) / 2),
_parentWindow->y() + _windowTitleBarWidth - _windowPosOffset); _parentWindow->y() + _windowTitleBarWidth - _windowPosOffset);
@ -204,7 +204,7 @@ void AboutDialogGraphicsView::hide()
//_aboutDialogAsSplashScreen->show(); //_aboutDialogAsSplashScreen->show();
TQGraphicsView::show(); TQGraphicsView::show();
connect(_timeLine, SIGNAL(finished()), this, SLOT(hideReally())); connect(_timeLine, TQ_SIGNAL(finished()), this, TQ_SLOT(hideReally()));
_timeLine->setDirection(TQTimeLine::Backward); _timeLine->setDirection(TQTimeLine::Backward);
_timeLine->start(); _timeLine->start();
} }
@ -214,7 +214,7 @@ void AboutDialogGraphicsView::hide()
*/ */
void AboutDialogGraphicsView::hideReally() void AboutDialogGraphicsView::hideReally()
{ {
disconnect(_timeLine, SIGNAL(finished()), this, SLOT(hideReally())); disconnect(_timeLine, TQ_SIGNAL(finished()), this, TQ_SLOT(hideReally()));
TQGraphicsView::hide(); TQGraphicsView::hide();
_parentWindow->activateWindow(); _parentWindow->activateWindow();
} }

@ -72,7 +72,7 @@ void UiGuiIndentServer::startServer()
} }
} }
connect(_tcpServer, SIGNAL(newConnection()), this, SLOT(handleNewConnection())); connect(_tcpServer, TQ_SIGNAL(newConnection()), this, TQ_SLOT(handleNewConnection()));
_readyForHandleRequest = true; _readyForHandleRequest = true;
_blockSize = 0; _blockSize = 0;
} }
@ -92,9 +92,9 @@ void UiGuiIndentServer::stopServer()
void UiGuiIndentServer::handleNewConnection() void UiGuiIndentServer::handleNewConnection()
{ {
TQTcpSocket *clientConnection = _tcpServer->nextPendingConnection(); TQTcpSocket *clientConnection = _tcpServer->nextPendingConnection();
connect(clientConnection, SIGNAL(disconnected()), clientConnection, SLOT(deleteLater())); connect(clientConnection, TQ_SIGNAL(disconnected()), clientConnection, TQ_SLOT(deleteLater()));
connect(clientConnection, SIGNAL(readyRead()), this, SLOT(handleReceivedData())); connect(clientConnection, TQ_SIGNAL(readyRead()), this, TQ_SLOT(handleReceivedData()));
} }
void UiGuiIndentServer::handleReceivedData() void UiGuiIndentServer::handleReceivedData()
@ -157,8 +157,8 @@ void UiGuiIndentServer::sendMessage(const TQString &message)
out.device()->seek(0); out.device()->seek(0);
out << (tquint32)(_dataToSend.size() - sizeof(tquint32)); out << (tquint32)(_dataToSend.size() - sizeof(tquint32));
connect(_currentClientConnection, SIGNAL(bytesWritten(qint64)), this, connect(_currentClientConnection, TQ_SIGNAL(bytesWritten(qint64)), this,
SLOT(checkIfReadyForHandleRequest())); TQ_SLOT(checkIfReadyForHandleRequest()));
_currentClientConnection->write(_dataToSend); _currentClientConnection->write(_dataToSend);
} }
@ -168,8 +168,8 @@ void UiGuiIndentServer::checkIfReadyForHandleRequest()
{ {
TQString dataToSendStr = _dataToSend.right(_dataToSend.size() - sizeof(tquint32)); TQString dataToSendStr = _dataToSend.right(_dataToSend.size() - sizeof(tquint32));
tqDebug() << "checkIfReadyForHandleRequest _dataToSend was: " << dataToSendStr; tqDebug() << "checkIfReadyForHandleRequest _dataToSend was: " << dataToSendStr;
disconnect(_currentClientConnection, SIGNAL(bytesWritten(qint64)), this, disconnect(_currentClientConnection, TQ_SIGNAL(bytesWritten(qint64)), this,
SLOT(checkIfReadyForHandleRequest())); TQ_SLOT(checkIfReadyForHandleRequest()));
_readyForHandleRequest = true; _readyForHandleRequest = true;
} }
} }

@ -91,8 +91,8 @@ TSLogger::TSLogger(int verboseLevel) :
m_logFileInitState = NOTINITIALZED; m_logFileInitState = NOTINITIALZED;
connect(m_TSLoggerDialogForm->openLogFileFolderToolButton, SIGNAL(clicked()), this, connect(m_TSLoggerDialogForm->openLogFileFolderToolButton, TQ_SIGNAL(clicked()), this,
SLOT(openLogFileFolder())); TQ_SLOT(openLogFileFolder()));
// Make the main application not to wait for the logging window to close. // Make the main application not to wait for the logging window to close.
setAttribute(TQt::WA_QuitOnClose, false); setAttribute(TQt::WA_QuitOnClose, false);

@ -160,7 +160,7 @@ int main(int argc, char *argv[])
try try
{ {
app.connect(&app, SIGNAL(lastWindowClosed()), &app, SLOT(quit())); // TODO: remove when no longer needed app.connect(&app, TQ_SIGNAL(lastWindowClosed()), &app, TQ_SLOT(quit())); // TODO: remove when no longer needed
returnValue = app.exec(); returnValue = app.exec();
} }
catch (std::exception &ex) catch (std::exception &ex)

Loading…
Cancel
Save