mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-19 08:52:15 -07:00
add comment
This commit is contained in:
parent
57cea844b1
commit
d03be7eba5
1 changed files with 5 additions and 0 deletions
|
|
@ -82,6 +82,11 @@ void CardInfoFrameWidget::setViewMode(int mode)
|
|||
if (currentIndex() != mode)
|
||||
setCurrentIndex(mode);
|
||||
|
||||
/* This weird code is to work around the following:
|
||||
* - Widgets can only have one parent; adding an already-parented widget will cause the new parent to "steal" it
|
||||
* from the old parent
|
||||
* - Unparented widgets become freefloating, which we do not want
|
||||
*/
|
||||
switch (mode) {
|
||||
case ImageOnlyView:
|
||||
case TextOnlyView:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue