优化-最后一列多增加一个制表符

This commit is contained in:
阿甘 2024-02-22 22:32:13 +08:00
parent 4bd4ee655d
commit 5227ceaf5c
2 changed files with 6 additions and 3 deletions

View File

@ -298,7 +298,7 @@ void MainWindow::onSaveButtonClicked()
out << "\t"; // 制表符分隔 out << "\t"; // 制表符分隔
} }
} }
out << "\t"; // 最后一列再加一个制表符,以防万一
out << "\r\n"; // 换行,注意使用\r\n表示换行符 out << "\r\n"; // 换行,注意使用\r\n表示换行符
} }
@ -344,7 +344,7 @@ void MainWindow::onSaveAsButtonClicked()
out << "\t"; // 制表符分隔 out << "\t"; // 制表符分隔
} }
} }
out << "\t"; // 最后一列再加一个制表符,以防万一
out << "\r\n"; // 换行,注意使用\r\n表示换行符 out << "\r\n"; // 换行,注意使用\r\n表示换行符
} }
@ -597,6 +597,7 @@ void MainWindow::convertSqliteToText()
if (i < record.count() - 1) if (i < record.count() - 1)
textStream << "\t"; textStream << "\t";
} }
textStream << "\t";
textStream << "\r\n"; textStream << "\r\n";
++progress; ++progress;

View File

@ -20,6 +20,9 @@
<layout class="QVBoxLayout" name="verticalLayout"> <layout class="QVBoxLayout" name="verticalLayout">
<item> <item>
<layout class="QGridLayout" name="gridLayout"> <layout class="QGridLayout" name="gridLayout">
<property name="spacing">
<number>0</number>
</property>
<item row="0" column="0"> <item row="0" column="0">
<widget class="QTableWidget" name="tableWidget"/> <widget class="QTableWidget" name="tableWidget"/>
</item> </item>
@ -46,7 +49,6 @@
</widget> </widget>
<addaction name="menuOpen"/> <addaction name="menuOpen"/>
</widget> </widget>
<widget class="QStatusBar" name="statusbar"/>
<action name="actionOpen"> <action name="actionOpen">
<property name="text"> <property name="text">
<string>打开</string> <string>打开</string>