diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-08-05 13:26:43 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-08-05 13:26:43 +0900 |
commit | e19f9a02df7379c45782b81e2f401c9a4f6869a5 (patch) | |
tree | 3184f2d639b644295ddf68becf20fbbe4c6ad316 /src/MainWindow.cpp | |
parent | c529f9057ecf9b9694e8fefb4d6ec70cd1b564ad (diff) | |
download | universal-indent-gui-tqt-e19f9a02df7379c45782b81e2f401c9a4f6869a5.tar.gz universal-indent-gui-tqt-e19f9a02df7379c45782b81e2f401c9a4f6869a5.zip |
Finish off the indenter code and update to TQ_OBJECT
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'src/MainWindow.cpp')
-rw-r--r-- | src/MainWindow.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/MainWindow.cpp b/src/MainWindow.cpp index 48f65d4..c945da4 100644 --- a/src/MainWindow.cpp +++ b/src/MainWindow.cpp @@ -522,9 +522,8 @@ void MainWindow::openSourceFileDialog(const TQString &fileName) return; } TQString openedSourceFileContent = ""; - TQString fileExtensions = "*.h *.c *.cpp *.*"; // Remove this line when the indenter is available -///-- TQString fileExtensions = tr("Supported by indenter") + " (" + -///-- m_indentHandler->getPossibleIndenterFileExtensions() + ");;" + tr("All files") + " (*.*)"; + TQString fileExtensions = tr("Supported by indenter") + " (" + + m_indentHandler->getPossibleIndenterFileExtensions() + ");;" + tr("All files") + " (*.*)"; TQString fileToOpen = fileName; if (fileToOpen.isEmpty()) @@ -565,9 +564,8 @@ void MainWindow::openSourceFileDialog(const TQString &fileName) */ bool MainWindow::saveasSourceFileDialog(TQAction *chosenEncodingAction) { - TQString fileExtensions = "*.h *.c *.cpp *.*"; // Remove this line when the indenter is available -//--- TQString fileExtensions = tr("Supported by indenter") + " (" + -//--- m_indentHandler->getPossibleIndenterFileExtensions() + ");;" + tr("All files") + " (*.*)"; + TQString fileExtensions = tr("Supported by indenter") + " (" + + m_indentHandler->getPossibleIndenterFileExtensions() + ");;" + tr("All files") + " (*.*)"; TQString fileName = TQFileDialog::getSaveFileName(m_currentSourceFile, fileExtensions, this, nullptr, tr("Save source code file")); |