fix:修正文件信息页面尺寸问题打印。
This commit is contained in:
4
.vscode/settings.json
vendored
4
.vscode/settings.json
vendored
@@ -16,12 +16,12 @@
|
|||||||
"args": []
|
"args": []
|
||||||
},
|
},
|
||||||
"cmake.configureSettings": {
|
"cmake.configureSettings": {
|
||||||
"CMAKE_PREFIX_PATH": "C:/Qt/Qt5.12.12/5.12.12/msvc2017_64",
|
"CMAKE_PREFIX_PATH": "C:/Qt/Qt6",
|
||||||
},
|
},
|
||||||
"cmake.configureArgs": [
|
"cmake.configureArgs": [
|
||||||
"-Wno-dev",
|
"-Wno-dev",
|
||||||
"-DCOMPILE_GUI=ON",
|
"-DCOMPILE_GUI=ON",
|
||||||
"-DQT_DEFAULT_MAJOR_VERSION=5"
|
"-DQT_DEFAULT_MAJOR_VERSION=6"
|
||||||
],
|
],
|
||||||
"cmake.options.statusBarVisibility": "visible",
|
"cmake.options.statusBarVisibility": "visible",
|
||||||
"cmake.generator": "Ninja",
|
"cmake.generator": "Ninja",
|
||||||
|
|||||||
@@ -467,7 +467,7 @@ void FileManager::ShowProperties()
|
|||||||
info->fileTime_ = ui->tableWidget->item(row, 2)->text();
|
info->fileTime_ = ui->tableWidget->item(row, 2)->text();
|
||||||
info->fileType_ = ui->tableWidget->item(row, 3)->text();
|
info->fileType_ = ui->tableWidget->item(row, 3)->text();
|
||||||
info->fileSize_ = ui->tableWidget->item(row, 4)->text();
|
info->fileSize_ = ui->tableWidget->item(row, 4)->text();
|
||||||
|
info->setWindowTitle(isRemote_ ? tr("远程文件属性") : tr("本地文件属性"));
|
||||||
info->exec();
|
info->exec();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ FileInfo::FileInfo(QWidget* parent) : QDialog(parent), ui(new Ui::FileInfo)
|
|||||||
{
|
{
|
||||||
ui->setupUi(this);
|
ui->setupUi(this);
|
||||||
InitControl();
|
InitControl();
|
||||||
setWindowTitle(tr("属性"));
|
setFixedSize(minimumSizeHint());
|
||||||
}
|
}
|
||||||
|
|
||||||
FileInfo::~FileInfo()
|
FileInfo::~FileInfo()
|
||||||
@@ -28,4 +28,6 @@ void FileInfo::InitControl()
|
|||||||
{
|
{
|
||||||
ui->pedDir->setReadOnly(true);
|
ui->pedDir->setReadOnly(true);
|
||||||
ui->pedName->setReadOnly(true);
|
ui->pedName->setReadOnly(true);
|
||||||
|
|
||||||
|
connect(ui->btnClose, &QPushButton::clicked, this, &FileInfo::close);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -6,8 +6,8 @@
|
|||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>544</width>
|
<width>254</width>
|
||||||
<height>300</height>
|
<height>242</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<property name="windowTitle">
|
<property name="windowTitle">
|
||||||
|
|||||||
Reference in New Issue
Block a user