Qt... Why though...
This commit is contained in:
parent
da717c9886
commit
f7524e7c52
@ -35,10 +35,8 @@ SettingsDialog::SettingsDialog(QWidget *parent) : QDialog(parent), ui(new Ui::Se
|
||||
for (Uploader *u : UploaderSingleton::inst().uploaderList()) newUploader(u);
|
||||
|
||||
// Set filename scheme
|
||||
if ((settings::settings().contains("fileFormat")))
|
||||
setScheme(settings::settings().value("fileFormat").toString());
|
||||
else
|
||||
setScheme("Screenshot %(yyyy-MM-dd HH:mm:ss)date.ext");
|
||||
setScheme(settings::settings().value("fileFormat", "Screenshot %(yyyy-MM-dd HH:mm:ss)date.ext").toString());
|
||||
|
||||
|
||||
// Set delay
|
||||
if ((settings::settings().contains("delay")))
|
||||
@ -95,6 +93,10 @@ void SettingsDialog::on_nameScheme_textEdited(const QString &arg1) {
|
||||
settings::settings().setValue("fileFormat", arg1);
|
||||
}
|
||||
|
||||
void SettingsDialog::on_nameScheme_textChanged(const QString &arg1) {
|
||||
settings::settings().setValue("fileFormat", arg1);
|
||||
}
|
||||
|
||||
void SettingsDialog::on_delay_valueChanged(double arg1) {
|
||||
settings::settings().setValue("delay", arg1);
|
||||
}
|
||||
@ -143,7 +145,3 @@ void SettingsDialog::on_pushButton_clicked() {
|
||||
a->setAttribute(Qt::WA_DeleteOnClose);
|
||||
a->show();
|
||||
}
|
||||
|
||||
void SettingsDialog::on_nameScheme_textChanged(QString txt) {
|
||||
settings::settings().setValue("fileFormat", txt);
|
||||
}
|
||||
|
@ -30,7 +30,7 @@ public:
|
||||
void on_formatBox_currentIndexChanged(int index);
|
||||
void on_imageFormatBox_currentIndexChanged(int index);
|
||||
void on_pushButton_clicked();
|
||||
void on_nameScheme_textChanged(QString txt);
|
||||
void on_nameScheme_textChanged(const QString &arg1);
|
||||
|
||||
private:
|
||||
Ui::SettingsDialog *ui;
|
||||
|
Loading…
Reference in New Issue
Block a user