-
Notifications
You must be signed in to change notification settings - Fork 276
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
doc: Naming convention for new QSettings setting names #295
Comments
Saw a ping on IRC about this, but I don't have strong opinions. Few thoughts:
|
@ryanofsky Thanks!
True. |
I think you could open a PR that adds a suggested naming convention for new settings to developer notes and maybe optionsmodel comments. Whatever convention you like should probably be fine, and if others prefer something different they can comment in the PR. |
On master (8f80092):
The ancient setting names follow Hungarian notation, except for
addrProxy
,addrSeparateProxyTor
, andlanguage
.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 #256Some observations:
display_unit
in refactor: Make BitcoinUnits::Unit a scoped enum #60, follow the usual snake_caseIt 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?
The text was updated successfully, but these errors were encountered: