mirror of
https://git.code.sf.net/p/zint/code
synced 2025-05-15 15:44:34 -04:00
GUI: Use UTF-8 for QSettings (non-ASCII was getting garbled on restore)
This commit is contained in:
parent
943ba79866
commit
d2f86e01e6
4 changed files with 12 additions and 1 deletions
|
@ -29,6 +29,7 @@
|
|||
ExportWindow::ExportWindow()
|
||||
{
|
||||
QSettings settings;
|
||||
settings.setIniCodec("UTF-8");
|
||||
setupUi(this);
|
||||
|
||||
linDestPath->setText(settings.value("studio/export/destination", QDir::toNativeSeparators(QDir::homePath())).toString());
|
||||
|
@ -44,6 +45,7 @@ ExportWindow::ExportWindow()
|
|||
ExportWindow::~ExportWindow()
|
||||
{
|
||||
QSettings settings;
|
||||
settings.setIniCodec("UTF-8");
|
||||
|
||||
settings.setValue("studio/export/destination", linDestPath->text());
|
||||
settings.setValue("studio/export/file_prefix", linPrefix->text());
|
||||
|
@ -59,6 +61,7 @@ void ExportWindow::quit_now()
|
|||
void ExportWindow::get_directory()
|
||||
{
|
||||
QSettings settings;
|
||||
settings.setIniCodec("UTF-8");
|
||||
QString directory;
|
||||
QFileDialog fdialog;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue