mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-17 02:45:33 +08:00
[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:
committed by
Mat Sutcliffe
parent
087410039c
commit
3b0001d113
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user