Commit Graph

1286 Commits

Author SHA1 Message Date
Lioncash 602c0cf1e3 CVirtualDirectoryModel: Mark GetIndexForDirectory as const
This function doesn't modify instance state.
2020-07-05 10:37:11 -04:00
Lioncash 05df1fcf89 CVirtualDirectory: Make use of size_t where applicable 2020-07-05 10:31:43 -04:00
Lioncash a8e51f86d7 CVirtualDirectory: Add const getters
Allows data retrieval even with const variants of virtual directories.
2020-07-05 10:22:55 -04:00
Lioncash 97fa0c7f2d CVirtualDirectoryModel: Return std::optional from GetProposedIndex()
Same behavior, minus out parameters.
2020-07-05 10:19:52 -04:00
Lioncash dcfb34ca1c CVirtualDirectoryModel: Eliminate string copies where applicable 2020-07-05 10:13:34 -04:00
Lioncash fdcb0b770c CTweakEditor: Make use of STL equivalents over << where applicable
More recognizable with regards to behavior being performed.

While we're at it, we can preallocate the backing asset QVector ahead of
time.
2020-07-05 10:03:52 -04:00
Lioncash d235fd4b17 CGizmo: Remove <iostream>
Same behavior, minus an injected static constructor.
2020-07-04 13:16:38 -04:00
Lioncash 872fe90a41 CPoiMapSidebar: Make use of ranged for 2020-07-03 23:17:37 -04:00
Lioncash d8817d8cb2 CModelEditorWindow: Mark a missed string as translatable 2020-07-03 22:59:02 -04:00
Lioncash 55e93e6111 CInstancesModel: Tidy up appending to lists 2020-07-03 22:57:46 -04:00
Lioncash 2d21d6af01 CGizmo: Mark NumSelectedAxes() as const
This doesn't modify internal member state.
2020-07-03 22:51:34 -04:00
Lioncash 54f90b3b8f CGeneratePropertyNamesDialog: Eliminate variable shadowing, etc 2020-07-03 22:44:26 -04:00
Lioncash dbd2912ee5 CExportGameDialog: Mark search string as constexpr 2020-07-03 22:30:21 -04:00
Lioncash 1f1d48fc40 CExportGameDialog: Remove unused prototype 2020-07-03 22:29:11 -04:00
Lioncash 6e8b7f4053 CEditorApplication: Mark string as translatable 2020-07-03 22:20:52 -04:00
Lioncash c8db5e2581 CCloneSelectionCommand: Make use of STL named functions 2020-07-03 22:13:33 -04:00
Lioncash a6f224b346 CChangeLayerCommand: Make use of STL named functions 2020-07-03 22:11:13 -04:00
Lioncash f60d826be2 CDeleteSelectionCommand: Make use of ranged for where applicable 2020-07-03 22:09:37 -04:00
Lioncash a03f76e545 CDeleteLinksCommand: Make use of ranged for where applicable 2020-07-03 21:31:57 -04:00
Lioncash 1ac105f859 UICommon: Prevent unnecessary string copies in OpenContainingFolder 2020-07-03 12:59:53 -04:00
Lioncash cacbdd9fc8 CTemplateListView: Make use of override 2020-07-03 12:57:24 -04:00
Lioncash deeb0d4a23 CLinkDialog: Make use of override 2020-07-03 12:54:29 -04:00
Lioncash e4ebeb8b91 CLayerEditor: Make use of override 2020-07-03 12:54:08 -04:00
Lioncash e86c396a6d CInstancesProxyModel: Make use of override 2020-07-03 12:53:41 -04:00
Lioncash c3b724a94b CCollisionRenderSettingsDialog: Make use of override 2020-07-03 12:52:55 -04:00
Lioncash e436e9dc7b CSoftValidatorLineEdit: Make use of override 2020-07-03 12:52:33 -04:00
Lioncash 4c7c422bad CFilteredResourceModel: Make use of override 2020-07-03 12:51:39 -04:00
Lioncash e8e5088001 CCheckableTreeWidgetItem: Make use of override 2020-07-03 12:49:57 -04:00
Lioncash 2d9406a287 TSerializeUndoCommand: Make use of override 2020-07-03 12:48:38 -04:00
Lioncash 24a69164f7 ICreateDeleteResourceCommand: Make use of override 2020-07-03 12:48:01 -04:00
Lioncash a8305d48b0 ICreateDeleteDirectoryCommand: Make use of override 2020-07-03 12:46:17 -04:00
Lioncash abfd035050 CSelectNodeCommand: Make use of override 2020-07-03 12:45:42 -04:00
Lioncash 77d3403419 CSelectAllCommand: Make use of override 2020-07-03 12:45:19 -04:00
Lioncash 220f261543 CSaveStoreCommand: Make use of override 2020-07-03 12:44:53 -04:00
Lioncash 2d980c57b3 CResizeScriptArrayCommand: Make use of override 2020-07-03 12:43:48 -04:00
Lioncash 3ad094f1e7 CMoveRenameResourceCommand: Make use of override 2020-07-03 12:42:54 -04:00
Lioncash d86df42867 CMoveRenameDirectoryCommand: Make use of override 2020-07-03 12:42:26 -04:00
Lioncash 992fe3dbfe CMoveResourceCommand: Make use of override 2020-07-03 12:41:56 -04:00
Lioncash 616cc3cc1d CMoveDirectoryCommand: Make use of override 2020-07-03 12:39:23 -04:00
Lioncash 70795c45d1 CInvertSelectionCommand: Make use of override 2020-07-03 12:38:49 -04:00
Lioncash 3b3770d18c CEditScriptPropertyCommand: Make use of override 2020-07-03 12:38:17 -04:00
Lioncash 921acf1d85 CEditIntrinsicPropertyCommand: Make use of override 2020-07-03 12:37:46 -04:00
Lioncash abdd9a75b9 CDeselectNodeCommand: Make use of override 2020-07-03 12:37:14 -04:00
Lioncash 169b405678 CClearSelectionCommand: Make use of override 2020-07-03 12:36:33 -04:00
Lioncash f09f04cfe0 CStringMimeData: Make use of override 2020-07-03 12:35:53 -04:00
Lioncash 1463974b1e CResourceProxyModel: Make use of override 2020-07-03 12:35:08 -04:00
Lioncash 9e976606ff CResourceBrowser: Make use of override 2020-07-03 12:33:19 -04:00
Lioncash dd91aded21 CResourceDelegate: Make use of override 2020-07-03 12:32:36 -04:00
Lioncash eb76ac9039 CResourceBrowser: Take search string by const reference
Same thing, less copies.
2020-07-03 11:01:21 -04:00
Lioncash 48b292ecee CResourceBrowser: Make use of ranged for 2020-07-03 11:00:34 -04:00