Compare commits

...

4 Commits

Author SHA1 Message Date
yangjiaxuan aefcb78e9d 微调 2023-03-08 17:25:40 +08:00
yangjiaxuan 6f7c5de9d9 微调 2023-03-08 14:32:31 +08:00
luoliangyi f5598f7313 重新编译leptonica,支持tiff、jpg和png 2023-03-08 14:05:31 +08:00
luoliangyi a52a780b80 去除leptonica和tesseract不必要的导出函数 2023-03-08 12:00:11 +08:00
12 changed files with 6 additions and 0 deletions

View File

@ -55,6 +55,7 @@ Dialog_Export::Dialog_Export(int total, const std::vector<int> &selectedIndexs,
, m_selectedIndexs(selectedIndexs)
{
ui->setupUi(this);
setWindowFlags(Qt::Dialog | Qt::WindowCloseButtonHint);
m_supportType.push_back(SupportType(".jpg", "JPG - JPEG / JFIF", FILE_TYPE_ATTR_MORE_OPTIONS));
m_supportType.push_back(SupportType(".bmp", "BMP - Windows Bitmap", FILE_TYPE_ATTR_NO_MORE_OPTION));

View File

@ -13,6 +13,8 @@ Dialog_ImageInfo::Dialog_ImageInfo(const QStringList& file_keys, const QStringLi
ui->setupUi(this);
this->resize(600,400);
setWindowFlags(Qt::Dialog | Qt::WindowCloseButtonHint);
ui->treeWidget->header()->resizeSections(QHeaderView::ResizeToContents);
ui->treeWidget->setColumnCount(2);
ui->treeWidget->setColumnWidth(0,180);

View File

@ -12,6 +12,8 @@ Dialog_MultiRotate::Dialog_MultiRotate(QWidget *parent) :
m_rotate_page_type(0)
{
ui->setupUi(this);
setWindowFlags(Qt::Dialog | Qt::WindowCloseButtonHint);
m_group_rotation->addButton(ui->rbtn_clockwise, 0);
m_group_rotation->addButton(ui->rbtn_180degree, 1);
m_group_rotation->addButton(ui->rbtn_anticlockwise, 2);

View File

@ -65,6 +65,7 @@ Dialog_SaveAs::Dialog_SaveAs(QWidget *parent) :
, ui(new Ui::Dialog_SaveAs)
{
ui->setupUi(this);
setWindowFlags(Qt::Dialog | Qt::WindowCloseButtonHint);
ui->fileDialog->setAcceptMode(QFileDialog::AcceptSave);
ui->fileDialog->setWindowFlags(ui->fileDialog->windowFlags() & ~Qt::Dialog);