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