Skip to content

Commit

Permalink
修改bug:修改linux下无法选择文件问题。
Browse files Browse the repository at this point in the history
  • Loading branch information
mahuifa committed Dec 19, 2021
1 parent 43bb5d3 commit b0cc6e8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions FileSafe.pro
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
CONFIG += c++11
DESTDIR = $$PWD/../bin/ # 指定可执行程序路径

VERSION = 1.1.1
RC_ICONS = Safe.ico # 设置图标,必须放在工程路径下
# You can make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
Expand Down
4 changes: 2 additions & 2 deletions QAESEncryption/QAESEncryption.pri
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ HEADERS += \
SOURCES += \
$$PWD/qaesencryption.cpp

DEFINES += USE_INTEL_AES_IF_AVAILABLE # 开启后出现过有些电脑异常退出情况
QMAKE_CXXFLAGS += -maes
#DEFINES += USE_INTEL_AES_IF_AVAILABLE # 开启后出现过有些电脑异常退出情况
#QMAKE_CXXFLAGS += -maes
4 changes: 2 additions & 2 deletions widget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ bool Widget::eventFilter(QObject *watched, QEvent *event)

void Widget::on_but_in_clicked()
{
QString fileName = QFileDialog::getOpenFileName(this, "选择输入文件", "./", "输入文件(*);");
QString fileName = QFileDialog::getOpenFileName(this, "选择输入文件", "./", "输入文件(*)");
if(!fileName.isEmpty())
{
ui->lineEdit_in->setText(fileName);
Expand All @@ -101,7 +101,7 @@ void Widget::on_but_in_clicked()

void Widget::on_but_out_clicked()
{
QString fileName = QFileDialog::getSaveFileName(this, "选择输出文件路径", ui->lineEdit_out->text(), "输出文件(*);");
QString fileName = QFileDialog::getSaveFileName(this, "选择输出文件路径", ui->lineEdit_out->text(), "输出文件(*)");
if(!fileName.isEmpty())
{
ui->lineEdit_out->setText(fileName);
Expand Down

0 comments on commit b0cc6e8

Please sign in to comment.