On master (8f80092d78f758fdb2e79e2a832a0c7a26fa2da1):
0$ cat ~/.config/Bitcoin/Bitcoin-Qt.conf
1[General]
2MainWindowGeometry=@ByteArray(\x1\xd9\xd0\xcb\0\x3\0\0\0\0\ta\0\0\0h\0\0\r\x18\0\0\x2\x86\0\0\ta\0\0\0\x80\0\0\r\x18\0\0\x2\x86\0\0\0\0\0\0\0\0\n\0\0\0\ta\0\0\0\x80\0\0\r\x18\0\0\x2\x86)
3PeersTabSplitterSizes=@ByteArray(\0\0\0\xff\0\0\0\x1\0\0\0\x2\0\0\x1\x12\xff\xff\xff\xff\0\xff\xff\xff\xff\x1\0\0\0\x1\0)
4RPCConsoleWindowGeometry=@ByteArray(\x1\xd9\xd0\xcb\0\x3\0\0\0\0\r[\0\0\x1\v\0\0\x10p\0\0\x2\xe7\0\0\r[\0\0\x1#\0\0\x10p\0\0\x2\xe7\0\0\0\0\0\0\0\0\n\0\0\0\r[\0\0\x1#\0\0\x10p\0\0\x2\xe7)
5RecentRequestsViewHeaderState=@ByteArray(\0\0\0\xff\0\0\0\0\0\0\0\x1\0\0\0\x1\0\0\0\0\x1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\x3\x90\0\0\0\x4\0\x1\x1\x1\0\0\0\0\0\0\0\0\0\0\0\0\x64\0\0\0\x82\0\0\0\x84\0\0\0\0\0\0\0\x4\0\0\0\x9e\0\0\0\x1\0\0\0\0\0\0\0\xb3\0\0\0\x1\0\0\0\0\0\0\x1\xa2\0\0\0\x1\0\0\0\0\0\0\0\x9d\0\0\0\x1\0\0\0\0\0\0\x3\xe8\0\0\0\0\x64)
6TransactionViewHeaderState=@ByteArray(\0\0\0\xff\0\0\0\0\0\0\0\x1\0\0\0\x1\0\0\0\x2\x1\0\0\0\0\0\0\0\0\0\0\0\x6\x2\0\0\0\x1\0\0\0\x1\0\0\0\x64\0\0\x3\x96\0\0\0\x6\0\x1\x1\x1\0\0\0\0\0\0\0\0\0\0\0\0\x64\0\0\0\x17\0\0\0\x84\0\0\0\0\0\0\0\x6\0\0\0\x64\0\0\0\x1\0\0\0\0\0\0\0\0\0\0\0\x1\0\0\0\0\0\0\0\x64\0\0\0\x1\0\0\0\0\0\0\0\x64\0\0\0\x1\0\0\0\0\0\0\0\xec\0\0\0\x1\0\0\0\0\0\0\x1~\0\0\0\x1\0\0\0\0\0\0\x3\xe8\0\0\0\0\x64)
7UseEmbeddedMonospacedFont=true
8addrProxy=127.0.0.1:9050
9addrSeparateProxyTor=127.0.0.1:9050
10bPrune=false
11bSpendZeroConfChange=true
12fCoinControlFeatures=false
13fFeeSectionMinimized=true
14fHideTrayIcon=false
15fListen=true
16fMinimizeOnClose=false
17fMinimizeToTray=false
18fReset=true
19fRestartRequired=false
20fUseNatpmp=false
21fUseProxy=false
22fUseSeparateProxyTor=false
23fUseUPnP=false
24language=
25nConfTarget=6
26nDatabaseCache=450
27nDisplayUnit=1
28nFeeRadio=0
29nPruneSize=2
30nSettingsVersion=219900
31nSmartFeeSliderPosition=0
32nThreadsScriptVerif=0
33nTransactionFee=1000
34strDataDir=/home/hebasto/.bitcoin
35strThirdPartyTxUrls=
The ancient setting names follow Hungarian notation, except for addrProxy
, addrSeparateProxyTor
, and language
.
Here are the changes since then:
-
MainWindowGeometry
andRPCConsoleWindowGeometry
were added in https://github.com/bitcoin/bitcoin/pull/11335 (v0.16.0) in replacement ofnWindowPos
,nWindowSize
,nRPCConsoleWindowPos
,nRPCConsoleWindowSize
-
PeersTabSplitterSizes
was added in #165 (2021-01-07) -
RecentRequestsViewHeaderState
andTransactionViewHeaderState
were added in #205 (2021-02-22) -
UseEmbeddedMonospacedFont
was added in #79 (2021-02-22)
Current suggestions in the open PRs:
display_unit
in #60 in replace ofnDisplayUnit
RPCConsoleWindowPeersTabSplitterSizes
in #194PeersTabPeerHeaderState
andPeersTabBanlistHeaderState
in #256
Some observations:
- Widget geometry setting names follow the PascalCase (including open PRs), and the first parts of them point to the appropriate widgets
- Other setting names, e.g.,
display_unit
in #60, follow the usual snake_case
It seems good for future code changes and maintenance to have explicit and documented naming conventions for new QSettings
setting names before v22.0 branch off.
What do you think?