QGIS API Documentation 3.99.0-Master (09f76ad7019)
Loading...
Searching...
No Matches
qgssettingsregistrygui.cpp
Go to the documentation of this file.
1/***************************************************************************
2 qgssettingsregistrygui.cpp
3 --------------------------------------
4 Date : July 2021
5 Copyright : (C) 2021 by Damiano Lombardi
6 Email : damiano at opengis dot ch
7 ***************************************************************************
8 * *
9 * This program is free software; you can redistribute it and/or modify *
10 * it under the terms of the GNU General Public License as published by *
11 * the Free Software Foundation; either version 2 of the License, or *
12 * (at your option) any later version. *
13 * *
14 ***************************************************************************/
15
17
18#include "qgsabstractdbsourceselect.h"
19#include "qgsapplication.h"
22
23#include <QString>
24
25using namespace Qt::StringLiterals;
26
28
31{
32 // copy values from old keys to new keys and delete the old ones
33 // for backward compatibility, old keys are recreated when the registry gets deleted
34
35 // single settings - added in 3.30
36 settingsRespectScreenDPI->copyValueFromKey( u"gui/qgis/respect_screen_dpi"_s, {}, true );
37
38 QgsAbstractDbSourceSelect::settingHoldDialogOpen->copyValueFromKey( u"ogr/GPKGSourceSelect/HoldDialogOpen"_s, { u"ogr/GPKGSourceSelect"_s }, true );
39 QgsAbstractDbSourceSelect::settingHoldDialogOpen->copyValueFromKey( u"ogr/SQLiteSourceSelect/HoldDialogOpen"_s, { u"ogr/SQLiteSourceSelect"_s }, true );
40 QgsAbstractDbSourceSelect::settingHoldDialogOpen->copyValueFromKey( u"Windows/MSSQLSourceSelect/HoldDialogOpen"_s, { u"MSSQLSourceSelect"_s }, true );
41 QgsAbstractDbSourceSelect::settingHoldDialogOpen->copyValueFromKey( u"Windows/PgSourceSelect/HoldDialogOpen"_s, { u"PgSourceSelect"_s }, true );
42 QgsAbstractDbSourceSelect::settingHoldDialogOpen->copyValueFromKey( u"Windows/SpatiaLiteSourceSelect/HoldDialogOpen"_s, { u"SpatiaLiteSourceSelect"_s }, true );
43}
44
46{
47 // TODO QGIS 5.0: Remove
48 // backward compatibility for settings
49 settingsRespectScreenDPI->copyValueToKeyIfChanged( u"gui/qgis/respect_screen_dpi"_s );
50}
A boolean settings entry.
static const QgsSettingsEntryBool * settingsRespectScreenDPI
Settings entry respect screen dpi.
static QgsSettingsTreeNode * sTreeGui