mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-16 23:42:15 -07:00
Finally fix the freaking OverlapLayout.
This commit is contained in:
parent
c10165dfbe
commit
80259a34e7
3 changed files with 21 additions and 15 deletions
|
|
@ -5,13 +5,16 @@
|
||||||
# Uncomment a rule to disable logging for that category,
|
# Uncomment a rule to disable logging for that category,
|
||||||
# or set .debug = true for that category to see debug level logs
|
# or set .debug = true for that category to see debug level logs
|
||||||
|
|
||||||
# main = false
|
flow_layout = false
|
||||||
# qt_translator = false
|
flow_widget.* = false
|
||||||
# window_main.* = false
|
|
||||||
# release_channel = false
|
# main = true
|
||||||
# spoiler_background_updater = false
|
qt_translator = false
|
||||||
# theme_manager = false
|
window_main.* = false
|
||||||
# sound_engine = false
|
release_channel = false
|
||||||
|
spoiler_background_updater = false
|
||||||
|
theme_manager = false
|
||||||
|
sound_engine = false
|
||||||
# tapped_out_interface = false
|
# tapped_out_interface = false
|
||||||
|
|
||||||
# tab_game = false
|
# tab_game = false
|
||||||
|
|
@ -37,15 +40,15 @@
|
||||||
|
|
||||||
# user_info_connection = false
|
# user_info_connection = false
|
||||||
|
|
||||||
# picture_loader = false
|
picture_loader = false
|
||||||
# picture_loader.worker = false
|
picture_loader.worker = false
|
||||||
# picture_loader.card_back_cache_fail = false
|
picture_loader.card_back_cache_fail = false
|
||||||
# picture_loader.picture_to_load = false
|
picture_loader.picture_to_load = false
|
||||||
# deck_loader = false
|
# deck_loader = false
|
||||||
# card_database = false
|
# card_database = false
|
||||||
# card_database.loading = false
|
card_database.loading = false
|
||||||
# card_database.loading.success_or_failure = false
|
card_database.loading.success_or_failure = true
|
||||||
# cockatrice_xml.* = false
|
cockatrice_xml.* = false
|
||||||
# cockatrice_xml.xml_3_parser = false
|
# cockatrice_xml.xml_3_parser = false
|
||||||
# cockatrice_xml.xml_4_parser = false
|
# cockatrice_xml.xml_4_parser = false
|
||||||
# card_info = false
|
# card_info = false
|
||||||
|
|
@ -57,6 +60,8 @@
|
||||||
|
|
||||||
# card_info_picture_widget = false
|
# card_info_picture_widget = false
|
||||||
|
|
||||||
|
overlap_layout.debug = false
|
||||||
|
|
||||||
# pixel_map_generator = false
|
# pixel_map_generator = false
|
||||||
|
|
||||||
# filter_string = false
|
# filter_string = false
|
||||||
|
|
|
||||||
|
|
@ -25,7 +25,7 @@ void DeckCardZoneDisplayWidget::resizeEvent(QResizeEvent *event)
|
||||||
for (QObject *child : layout->children()) {
|
for (QObject *child : layout->children()) {
|
||||||
QWidget *widget = qobject_cast<QWidget *>(child);
|
QWidget *widget = qobject_cast<QWidget *>(child);
|
||||||
if (widget) {
|
if (widget) {
|
||||||
widget->resize(event->size());
|
widget->setMaximumWidth(width());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -89,6 +89,7 @@ void VisualDeckEditorWidget::updateDisplay()
|
||||||
// Clear the layout first
|
// Clear the layout first
|
||||||
populateCards();
|
populateCards();
|
||||||
zoneContainer = new QWidget(scrollArea);
|
zoneContainer = new QWidget(scrollArea);
|
||||||
|
zoneContainer->setMaximumWidth(scrollArea->viewport()->width());
|
||||||
zoneContainerLayout = new QVBoxLayout(zoneContainer);
|
zoneContainerLayout = new QVBoxLayout(zoneContainer);
|
||||||
|
|
||||||
DeckCardZoneDisplayWidget *mainBoardWidget =
|
DeckCardZoneDisplayWidget *mainBoardWidget =
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue