mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-04 12:33:55 -07:00
[TabDeckEditor] Save cardDatabase dock size in settings (#6524)
This commit is contained in:
parent
57e6c91689
commit
93f0715d02
3 changed files with 17 additions and 0 deletions
|
|
@ -25,6 +25,17 @@ void LayoutsSettings::setDeckEditorGeometry(const QByteArray &value)
|
|||
setValue(value, "layouts/deckEditor_geometry");
|
||||
}
|
||||
|
||||
QSize LayoutsSettings::getDeckEditorCardDatabaseSize()
|
||||
{
|
||||
QVariant previous = getValue("layouts/deckEditor_CardDatabaseSize");
|
||||
return previous == QVariant() ? QSize(500, 500) : previous.toSize();
|
||||
}
|
||||
|
||||
void LayoutsSettings::setDeckEditorCardDatabaseSize(const QSize &value)
|
||||
{
|
||||
setValue(value, "layouts/deckEditor_CardDatabaseSize");
|
||||
}
|
||||
|
||||
QSize LayoutsSettings::getDeckEditorCardSize()
|
||||
{
|
||||
QVariant previous = getValue("layouts/deckEditor_CardSize");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue