mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-11-07 18:43:26 -08:00
[DeckEditor] Show info in PrintingSelector dock when override printings enabled (#6554)
* don't hide printing selector dock * extract warning message to separate file * create printing disabled info widget
This commit is contained in:
parent
948ec9e042
commit
3c48d92663
13 changed files with 176 additions and 67 deletions
|
|
@ -0,0 +1,20 @@
|
|||
#ifndef COCKATRICE_OVERRIDE_PRINTING_WARN_H
|
||||
#define COCKATRICE_OVERRIDE_PRINTING_WARN_H
|
||||
#include <QMessageBox>
|
||||
|
||||
namespace OverridePrintingWarning
|
||||
{
|
||||
|
||||
/**
|
||||
* @brief Pops up the warning message for the changing the override printing setting.
|
||||
* If the user clicks accept, then this also handles changing the setting and resetting the card image cache.
|
||||
*
|
||||
* @param parent The parent widget
|
||||
* @param enable Whether the user is trying to enable or disable the setting
|
||||
* @return Whether the user clicked accept. All other ways of closing the window returns false.
|
||||
*/
|
||||
bool execMessageBox(QWidget *parent, bool enable);
|
||||
|
||||
} // namespace OverridePrintingWarning
|
||||
|
||||
#endif // COCKATRICE_OVERRIDE_PRINTING_WARN_H
|
||||
Loading…
Add table
Add a link
Reference in a new issue