pro:初步添加属性窗口。

This commit is contained in:
2025-11-11 22:57:38 +08:00
parent 7c4b76d844
commit 067f4b6ce6
6 changed files with 234 additions and 0 deletions

31
Gui/Form/FileInfoForm.cpp Normal file
View File

@@ -0,0 +1,31 @@
#include "FileInfoForm.h"
#include "ui_FileInfoForm.h"
FileInfo::FileInfo(QWidget* parent) : QDialog(parent), ui(new Ui::FileInfo)
{
ui->setupUi(this);
InitControl();
setWindowTitle(tr("属性"));
}
FileInfo::~FileInfo()
{
delete ui;
}
int FileInfo::exec()
{
ui->pedDir->setPlainText(dirName_);
ui->pedName->setPlainText(baseName_);
ui->lbSize->setText(fileSize_);
ui->lbTime->setText(fileTime_);
ui->lbType->setText(fileType_);
return QDialog::exec();
}
void FileInfo::InitControl()
{
ui->pedDir->setReadOnly(true);
ui->pedName->setReadOnly(true);
}