!16 修复-截图保存时,会先跳转到最近保存的路径,然后又跳回图片路径
Merge pull request !16 from Ginhou/fix-savedialog-path
This commit is contained in:
commit
f955dabdfc
|
@ -24,11 +24,10 @@
|
|||
#include "src/utils/filenamehandler.h"
|
||||
|
||||
MySaveDialog::MySaveDialog(QWidget *parent) :
|
||||
QFileDialog(parent)
|
||||
QFileDialog(parent, QString(), QStandardPaths::standardLocations(QStandardPaths::PicturesLocation).at(0))
|
||||
{
|
||||
// setWindowIcon(QIcon::fromTheme("kylin-screenshot"));
|
||||
setNameFilter(QLatin1String(" PNG(*.png);;BMP(*.bmp);;JPEG(*.jpg)"));
|
||||
setDirectory(QStandardPaths::standardLocations(QStandardPaths::PicturesLocation).at(0));
|
||||
setAcceptMode(QFileDialog::AcceptSave);
|
||||
setDefaultSuffix("png");
|
||||
setLabelText(QFileDialog::Reject, tr("Cancel"));
|
||||
|
|
Loading…
Reference in New Issue