Make the default name scheme Windows compatable
This commit is contained in:
parent
c93cb560ac
commit
52b6872f85
@ -41,7 +41,7 @@ SettingsDialog::SettingsDialog(QWidget *parent) : QDialog(parent), ui(new Ui::Se
|
|||||||
for (Uploader *u : UploaderSingleton::inst().uploaderList()) newUploader(u);
|
for (Uploader *u : UploaderSingleton::inst().uploaderList()) newUploader(u);
|
||||||
|
|
||||||
// Set filename scheme
|
// Set filename scheme
|
||||||
setScheme(settings::settings().value("fileFormat", "Screenshot %(yyyy-MM-dd HH:mm:ss)date.%ext").toString());
|
setScheme(settings::settings().value("fileFormat", "Screenshot %(yyyy-MM-dd HH-mm-ss)date.%ext").toString());
|
||||||
|
|
||||||
// Set delay
|
// Set delay
|
||||||
if ((settings::settings().contains("delay")))
|
if ((settings::settings().contains("delay")))
|
||||||
|
@ -84,7 +84,7 @@
|
|||||||
<string>%(date format)date and %ext are supported</string>
|
<string>%(date format)date and %ext are supported</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Screenshot %(yyyy-MM-dd HH:mm:ss)date.%ext</string>
|
<string>Screenshot %(yyyy-MM-dd HH-mm-ss)date.%ext</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
@ -82,7 +82,7 @@ void UploaderSingleton::upload(QPixmap pixmap) {
|
|||||||
}
|
}
|
||||||
QString format = settings::settings().value("captureformat", "PNG").toString();
|
QString format = settings::settings().value("captureformat", "PNG").toString();
|
||||||
QFile file(saveDir.absoluteFilePath(
|
QFile file(saveDir.absoluteFilePath(
|
||||||
formatter::format(settings::settings().value("fileFormat", "Screenshot %(yyyy-MM-dd HH:mm:ss)date.%ext").toString(),
|
formatter::format(settings::settings().value("fileFormat", "Screenshot %(yyyy-MM-dd HH-mm-ss)date.%ext").toString(),
|
||||||
format.toLower())));
|
format.toLower())));
|
||||||
|
|
||||||
if (file.open(QFile::ReadWrite)) {
|
if (file.open(QFile::ReadWrite)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user