Commit Graph

21 Commits

Author SHA1 Message Date
Lioncache
b2bd0cd326 General: Update to Qt6
Migrate over to Qt 6 so that we can keep the UI toolkit pegged at the
current major version.

Unfortunately this also means we have to gut a small feature in the
progress dialogs, since the extras module doesn't exist in Qt6 anymore.

Few things of note:

QVector<> is internally an alias of QList now, so any changeover is due
to that to make the semantics a little clearer.

QtConcurrent requires arguments to be swapped on some invocations, and
discarding instances need to use the global thread pool instead.

fromStdList(), etc can be replaced with range constructors.

--no-angle and other commands are removed from newer versions of
windeployqt

QVariant::Invalid (and other type IDs) are deprecated and also break
existing functionality. Instead we can return default constructed
QVariants where applicable, which restores functionality that would be
broken if left as is (e.g. many list would straight up not populate or
have wonky size hinting).

The reason for this is that the QVariant(QVariant::Type) constructor
models a unique kind of internal QVariant state where it's considered
to be in an invalid state, but accessing the (supposedly) invalid state
will instead return a default constructed value of the internal type.

This kinda sucks because this means genuinely invalid states that would
warrant an assertion or other type of error would be silently ignored
and execution would continue on as normal, so this also enforces
correctness a little bit (on top of, well, fixing all the broken UI
controls).
2025-11-29 19:54:35 -05:00
023aef478b Add multithreading to property name generator 2021-08-06 18:53:37 -04:00
d8a7da9234 Fix property name generation showing no results
When the task takes <500ms, results are never displayed.
2021-08-04 16:00:08 -04:00
Lioncash
54f90b3b8f CGeneratePropertyNamesDialog: Eliminate variable shadowing, etc 2020-07-03 22:44:26 -04:00
Lioncash
e7d5cacd0f CGeneratePropertyNamesDialog: Make use of Qt 5 signals and slots 2020-07-03 06:59:52 -04:00
Lioncash
26df16edf7 CGeneratePropertyNamesDialog: Make use of Qt 5 signals and slots 2020-06-28 19:45:17 -04:00
Lioncash
1dfca12ad6 CGeneratePropertyNamesDialog: Mark strings as translatable where applicable 2020-06-28 03:31:54 -04:00
Lioncash
963b6ccd08 CGeneratePropertyNamesDialog: Make use of in-class initializers where applicable 2020-06-28 03:21:07 -04:00
Lioncash
ebd1468bbf IProperty: Make use of size_t where applicable 2020-06-21 19:27:44 -04:00
Jack Andersen
9f94db6c82 Linux build fixes 2019-05-25 20:24:13 -10:00
Aruki
2287b05bc3 Refactor so PWE compiles with the newly externalized LibCommon 2018-12-11 22:50:46 -07:00
Aruki
1bc95a30a5 Added ability to test Int properties as Choices. Added functionality to fix the property name map keeping track of unused type/ID pairs. Fixed various UI bugs. 2018-10-21 19:01:57 -06:00
Aruki
95d270cde7 Added support for excluding properties from generation results that already have valid names. Plus some more property names 2018-10-14 20:29:50 -06:00
Aruki
1d724b69d9 Added support for enum combo boxes, and added casing combo box and property ID pools to the property name generator 2018-10-12 19:38:08 -06:00
Aruki
22ab73883c Fixed property name generator/template edit dialog to work with new property system 2018-10-09 23:15:15 -06:00
Aruki
84d689e104 Changed EGame to an enum class. Created NGameList and NPropertyMap to change how templates are managed/saved/loaded. Added support for property map keeping track of ID/type pairs. 2018-10-07 17:53:19 -06:00
Aruki
42d021e757 More cleanup, renamed CMasterTemplate to CGameTemplate 2018-09-22 23:54:34 -06:00
Aruki
ce3dfdc397 Massive overhaul of property system done over the last few months. There is unfinished/broken stuff still, but it compiles now. 2018-06-22 15:24:04 -06:00
Aruki
6719b82077 Added ability to separate words by underscore in generated names 2018-02-18 12:16:55 -07:00
Aruki
366c4cd3ff Some more property names from DKCR3D and Bearborg 2018-02-13 20:18:10 -07:00
Aruki
3d72c9e4b2 Added property name generation system using dictionary attacks and added a UI dialog that allows you to search for property names and apply them to templates 2018-02-13 00:30:35 -07:00