* remove recursion from flattenFolderStructure
findChildren is already recursive by default
* only trigger the top-level updateVisibility on filter update
Every folder widget was connecting the filter update signals to their updateVisibility, but updateVisibility is already recursive.
That means a bunch of redundant updateVisibility calls happen every time a filter update signal is emitted
* reduce redundant recursion in updateVisibility
findChildren is recursive by default, so only the top-level updateVisibility needs to loop through the found children
* delete now-unused signals
* implement functionality in dlg
* add action to deck editor
* refactor and comments
* is this refactor even a good idea?
* remove the friend class stuff
* reorder
* add option for not annotated
* Generic mana symbols.
* Update black mana symbol skull and symbol color.
* Update white mana symbol contrast.
* Update black mana symbol contrast.
---------
Co-authored-by: Lukas Brübach <Bruebach.Lukas@bdosecurity.de>
* Make BannerWidget's dropdown icon more robust
* use isHidden
Otherwise, it doesn't work correctly if the BannerWidget is offscreen
* don't show icon if there's no buddy
* Fix move to top of library shuffling an extra card
* Update cockatrice/src/game/player/player.cpp
---------
Co-authored-by: ebbit1q <ebbit1q@gmail.com>
* Implement new method for DeckList to return cardlist with providerId, a new carddatabase method to fetch a cardlist with name and providerId and changed PictureLoader to use providerId versions of cards for caching.
---------
Co-authored-by: Lukas Brübach <Bruebach.Lukas@bdosecurity.de>
* Generify TabDeckEditor.
* Connect dockTopLevelChanged signals.
* Connect eventFilters.
* Remove comments.
* Fix ze build (accidentally deleted a line)
* Fix some pointer chaining.
* Be a lot saner about some signals/slots, as in, individual Deck Editor widgets now internally determine their CardInfo and then simply communicate this to the DeckEditor
* Lint.
* DeckDock can handle its own menu.
* DeckDock can handle its own decrement.
* DeckDock now notifies the deck editor on deck change, instead of individually modifying menu items and modification status.
* Rename.
* Include pixelmap generator for icon.
* Directly use an AbstractTabDeckEditor as parent.
* Move clearing database filter into signal/slot relation.
---------
Co-authored-by: Lukas Brübach <Bruebach.Lukas@bdosecurity.de>
* add svg
* update pixmap cache
* get icon to work
* hide icon when not clickable
* use consistent naming
* use expandOnly because apparently that leads to higher image quality