Description
On master (8f80092):
$ cat ~/.config/Bitcoin/Bitcoin-Qt.conf
[General]
MainWindowGeometry=@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)
PeersTabSplitterSizes=@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)
RPCConsoleWindowGeometry=@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)
RecentRequestsViewHeaderState=@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)
TransactionViewHeaderState=@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)
UseEmbeddedMonospacedFont=true
addrProxy=127.0.0.1:9050
addrSeparateProxyTor=127.0.0.1:9050
bPrune=false
bSpendZeroConfChange=true
fCoinControlFeatures=false
fFeeSectionMinimized=true
fHideTrayIcon=false
fListen=true
fMinimizeOnClose=false
fMinimizeToTray=false
fReset=true
fRestartRequired=false
fUseNatpmp=false
fUseProxy=false
fUseSeparateProxyTor=false
fUseUPnP=false
language=
nConfTarget=6
nDatabaseCache=450
nDisplayUnit=1
nFeeRadio=0
nPruneSize=2
nSettingsVersion=219900
nSmartFeeSliderPosition=0
nThreadsScriptVerif=0
nTransactionFee=1000
strDataDir=/home/hebasto/.bitcoin
strThirdPartyTxUrls=
The ancient setting names follow Hungarian notation, except for addrProxy
, addrSeparateProxyTor
, and language
.
Here are the changes since then:
-
MainWindowGeometry
andRPCConsoleWindowGeometry
were added in Replace save|restoreWindowGeometry with Qt functions bitcoin/bitcoin#11335 (v0.16.0) in replacement ofnWindowPos
,nWindowSize
,nRPCConsoleWindowPos
,nRPCConsoleWindowSize
-
PeersTabSplitterSizes
was added in Save QSplitter state in QSettings #165 (2021-01-07) -
RecentRequestsViewHeaderState
andTransactionViewHeaderState
were added in Save/restore TransactionView and recentRequestsView tables column sizes #205 (2021-02-22) -
UseEmbeddedMonospacedFont
was added in Embed monospaced font #79 (2021-02-22)
Current suggestions in the open PRs:
display_unit
in refactor: Make BitcoinUnits::Unit a scoped enum #60 in replace ofnDisplayUnit
RPCConsoleWindowPeersTabSplitterSizes
in Save/restore RPCConsole geometry only for window #194PeersTabPeerHeaderState
andPeersTabBanlistHeaderState
in Save/restore column sizes of the tables in the Peers tab #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 refactor: Make BitcoinUnits::Unit a scoped enum #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?