mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-20 04:25:42 +08:00
Ref T554, find parent dialog
This commit is contained in:
committed by
Mat Sutcliffe
parent
11785c434d
commit
db0df3b00e
@@ -31,6 +31,7 @@ class QLayout;
|
||||
class QMimeData;
|
||||
class QLineEdit;
|
||||
class QTabWidget;
|
||||
class QDialog;
|
||||
class QGraphicsOpacityEffect;
|
||||
class QAbstractItemModel;
|
||||
|
||||
@@ -233,6 +234,9 @@ namespace BlackGui
|
||||
//! CIcon as simple HTML image code segment
|
||||
static QString asSimpleHtmlImageHeight(const BlackMisc::CIcon &icon, int height = -1);
|
||||
|
||||
//! Find parent dialog if there is any, otherwise null
|
||||
static QDialog *findParentDialog(QWidget *widget);
|
||||
|
||||
private:
|
||||
//! No constructor, use static functions only
|
||||
CGuiUtility() {}
|
||||
|
||||
Reference in New Issue
Block a user