mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-14 08:45:36 +08:00
refs #452 drag and drop enabled area
* label can be used as area to drop * utility functions for drag and drop
This commit is contained in:
committed by
Mathew Sutcliffe
parent
1bb0afdedd
commit
b1044e9844
@@ -16,6 +16,7 @@
|
||||
#include "blackmisc/icon.h"
|
||||
#include "enableforframelesswindow.h"
|
||||
#include <QWidgetList>
|
||||
#include <QComboBox>
|
||||
#include <QCommandLineParser>
|
||||
|
||||
namespace BlackGui
|
||||
@@ -67,6 +68,24 @@ namespace BlackGui
|
||||
//! Leninet / relaxed
|
||||
static bool lenientTitleComparison(const QString &title, const QString &comparison);
|
||||
|
||||
//! Find best match in comboBox
|
||||
static bool setComboBoxValueByStartingString(QComboBox *box, const QString &candidate, const QString &unspecified = QString());
|
||||
|
||||
//! Mime data with swift type
|
||||
static bool hasSwiftVariantMimeType(const QMimeData *mime);
|
||||
|
||||
//! From text dropped
|
||||
static BlackMisc::CVariant fromSwiftDragAndDropData(const QMimeData *mime);
|
||||
|
||||
//! From text dropped
|
||||
static BlackMisc::CVariant fromSwiftDragAndDropData(const QByteArray &utf8Data);
|
||||
|
||||
//! Meta type id from dropped data
|
||||
static int metaTypeIdFromSwiftDragAndDropData(const QMimeData *mime);
|
||||
|
||||
//! Metatype
|
||||
static const QString &swiftJsonDragAndDropMimeType();
|
||||
|
||||
private:
|
||||
//! Constructor, use static methods only
|
||||
CGuiUtility() {}
|
||||
|
||||
Reference in New Issue
Block a user