fix: add library files dialog not correctly
This commit is contained in:
parent
512371a6d4
commit
331a5818c6
|
@ -4763,6 +4763,14 @@
|
||||||
<source>Linker</source>
|
<source>Linker</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>Add Library Files</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>Library Files</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
</context>
|
</context>
|
||||||
<context>
|
<context>
|
||||||
<name>ProjectCompiler</name>
|
<name>ProjectCompiler</name>
|
||||||
|
|
|
@ -6500,6 +6500,18 @@ Are you really want to continue?</oldsource>
|
||||||
<source>Linker</source>
|
<source>Linker</source>
|
||||||
<translation>链接器</translation>
|
<translation>链接器</translation>
|
||||||
</message>
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="settingsdialog/projectcompileparamaterswidget.ui" line="118"/>
|
||||||
|
<location filename="settingsdialog/projectcompileparamaterswidget.cpp" line="62"/>
|
||||||
|
<source>Add Library Files</source>
|
||||||
|
<translation>添加库文件</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="settingsdialog/projectcompileparamaterswidget.cpp" line="55"/>
|
||||||
|
<location filename="settingsdialog/projectcompileparamaterswidget.cpp" line="57"/>
|
||||||
|
<source>Library Files</source>
|
||||||
|
<translation>库文件</translation>
|
||||||
|
</message>
|
||||||
</context>
|
</context>
|
||||||
<context>
|
<context>
|
||||||
<name>ProjectCompiler</name>
|
<name>ProjectCompiler</name>
|
||||||
|
@ -8631,12 +8643,12 @@ Are you really want to continue?</oldsource>
|
||||||
<context>
|
<context>
|
||||||
<name>SynEditStringList</name>
|
<name>SynEditStringList</name>
|
||||||
<message>
|
<message>
|
||||||
<location filename="qsynedit/TextBuffer.cpp" line="553"/>
|
<location filename="qsynedit/TextBuffer.cpp" line="557"/>
|
||||||
<source>Can't open file '%1' for read!</source>
|
<source>Can't open file '%1' for read!</source>
|
||||||
<translation>无法读取文件'%1'!</translation>
|
<translation>无法读取文件'%1'!</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="qsynedit/TextBuffer.cpp" line="680"/>
|
<location filename="qsynedit/TextBuffer.cpp" line="684"/>
|
||||||
<source>Can't open file '%1' for save!</source>
|
<source>Can't open file '%1' for save!</source>
|
||||||
<translation>无法写入文件'%2'!</translation>
|
<translation>无法写入文件'%2'!</translation>
|
||||||
</message>
|
</message>
|
||||||
|
|
|
@ -4763,6 +4763,14 @@
|
||||||
<source>Linker</source>
|
<source>Linker</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>Add Library Files</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>Library Files</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
</context>
|
</context>
|
||||||
<context>
|
<context>
|
||||||
<name>ProjectCompiler</name>
|
<name>ProjectCompiler</name>
|
||||||
|
|
|
@ -52,14 +52,15 @@ void ProjectCompileParamatersWidget::doSave()
|
||||||
void ProjectCompileParamatersWidget::on_btnChooseLib_clicked()
|
void ProjectCompileParamatersWidget::on_btnChooseLib_clicked()
|
||||||
{
|
{
|
||||||
#ifdef Q_OS_WIN
|
#ifdef Q_OS_WIN
|
||||||
QString filter = tr("Library Files (*.a *.lib)");
|
QString filter = tr("Library Files")+" (*.a *.lib *.o)";
|
||||||
#else
|
#else
|
||||||
QString filter = tr("Library Files (*.a)");
|
QString filter = tr("Library Files")+" (*.a *.o)";
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
QStringList files = QFileDialog::getOpenFileNames(
|
QStringList files = QFileDialog::getOpenFileNames(
|
||||||
this,
|
this,
|
||||||
tr("Add Library Files"),
|
tr("Add Library Files"),
|
||||||
|
QDir::currentPath(),
|
||||||
filter
|
filter
|
||||||
);
|
);
|
||||||
if (!files.isEmpty()) {
|
if (!files.isEmpty()) {
|
||||||
|
|
Loading…
Reference in New Issue