[UI] As discussed in FSC channel, display "save" message

* save was only shown ("overlay") if a mapping component is available
* make sure an message is also show in component is used in dialog
* change utility functions and display in "table view" without mapping component

https://discordapp.com/channels/539048679160676382/594962359441948682/643529608070692925
This commit is contained in:
Klaus Basan
2019-11-29 01:31:00 +01:00
committed by Mat Sutcliffe
parent 087410039c
commit 3b0001d113
7 changed files with 63 additions and 24 deletions

View File

@@ -206,8 +206,8 @@ namespace BlackGui
static bool isTopLevelWindow(QWidget *widget);
//! Check window type @{
static bool isQMainWindow(QWidget *widget);
static bool isDialog(QWidget *widget);
static bool isQMainWindow(const QWidget *widget);
static bool isDialog(const QWidget *widget);
//! @}
//! Fade in a widget
@@ -261,6 +261,9 @@ namespace BlackGui
//! Find parent dialog if there is any, otherwise null
static QDialog *findParentDialog(QWidget *widget);
//! Find parent dialog if there is any, otherwise null
static QDialog *findParentDialog(QWidget *widget, int maxLevel);
//! Set elided text
static void setElidedText(QLabel *label, const QString &text, Qt::TextElideMode mode = Qt::ElideMiddle);