mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-06 18:25:37 +08:00
Stashed data file can be dropped to model view
* utility functions * style changes / renamings / slots -> normal functions * extra flag to enable file drop (and changed signatures) * split view load function into 2 parts, one can use passed file parameter
This commit is contained in:
@@ -33,6 +33,7 @@ class QMimeData;
|
||||
class QTabWidget;
|
||||
class QGraphicsOpacityEffect;
|
||||
|
||||
namespace BlackMisc { class CIcon; }
|
||||
namespace BlackGui
|
||||
{
|
||||
class CEnableForFramelessWindow;
|
||||
@@ -92,6 +93,15 @@ namespace BlackGui
|
||||
//! Meta type id from dropped data
|
||||
static int metaTypeIdFromSwiftDragAndDropData(const QMimeData *mime);
|
||||
|
||||
//! Represented file if any
|
||||
static QFileInfo representedMimeFile(const QMimeData *mime);
|
||||
|
||||
//! Is representing existing file
|
||||
static bool isMimeRepresentingReadableFile(const QMimeData *mime);
|
||||
|
||||
//! Is representing existing JSON file
|
||||
static bool isMimeRepresentingReadableJsonFile(const QMimeData *mime);
|
||||
|
||||
//! Find next BlackGui::COverlayMessages QFrame
|
||||
static COverlayMessagesFrame *nextOverlayMessageFrame(QWidget *widget, int maxLevels = 10);
|
||||
|
||||
@@ -173,6 +183,12 @@ namespace BlackGui
|
||||
//! Make sure that the min.sizes to not exceed the screen resolution
|
||||
static void superviseMainWindowMinSizes(qreal wRatio = 0.85, qreal hRatio = 0.85);
|
||||
|
||||
//! CIcon as simple HTML image code segment
|
||||
static QString asSimpleHtmlImageWidth(const BlackMisc::CIcon &icon, int width = -1);
|
||||
|
||||
//! CIcon as simple HTML image code segment
|
||||
static QString asSimpleHtmlImageHeight(const BlackMisc::CIcon &icon, int height = -1);
|
||||
|
||||
private:
|
||||
//! No constructor, use static functions only
|
||||
CGuiUtility() {}
|
||||
|
||||
Reference in New Issue
Block a user