mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-20 04:25:42 +08:00
committed by
Mathew Sutcliffe
parent
2ba061bbc0
commit
e033cfacfd
@@ -13,16 +13,19 @@
|
|||||||
const QDBusArgument &operator>>(const QDBusArgument &argument, QPixmap &pixmap)
|
const QDBusArgument &operator>>(const QDBusArgument &argument, QPixmap &pixmap)
|
||||||
{
|
{
|
||||||
QByteArray ba;
|
QByteArray ba;
|
||||||
|
argument.beginStructure();
|
||||||
argument >> ba;
|
argument >> ba;
|
||||||
BlackMisc::pngByteArrayToPixmapRef(ba, pixmap);
|
BlackMisc::pngByteArrayToPixmapRef(ba, pixmap);
|
||||||
|
argument.endStructure();
|
||||||
return argument;
|
return argument;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
QDBusArgument &operator<<(QDBusArgument &argument, const QPixmap &pixmap)
|
QDBusArgument &operator<<(QDBusArgument &argument, const QPixmap &pixmap)
|
||||||
{
|
{
|
||||||
QByteArray ba;
|
QByteArray ba;
|
||||||
BlackMisc::pixmapToPngByteArray(pixmap, ba);
|
BlackMisc::pixmapToPngByteArray(pixmap, ba);
|
||||||
|
argument.beginStructure();
|
||||||
argument << ba;
|
argument << ba;
|
||||||
|
argument.endStructure();
|
||||||
return argument;
|
return argument;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -13,6 +13,7 @@
|
|||||||
//! \file
|
//! \file
|
||||||
|
|
||||||
#include "blackmiscexport.h"
|
#include "blackmiscexport.h"
|
||||||
|
#include "blackmisc/network/entityflags.h"
|
||||||
#include "worker.h"
|
#include "worker.h"
|
||||||
#include <QReadWriteLock>
|
#include <QReadWriteLock>
|
||||||
#include <QDateTime>
|
#include <QDateTime>
|
||||||
@@ -62,9 +63,8 @@ namespace BlackMisc
|
|||||||
CThreadedReader(QObject *owner, const QString &name);
|
CThreadedReader(QObject *owner, const QString &name);
|
||||||
|
|
||||||
QTimer *m_updateTimer = nullptr; //!< update timer
|
QTimer *m_updateTimer = nullptr; //!< update timer
|
||||||
bool m_shutdown = false; //!< in shutdown process
|
bool m_shutdown = false; //!< in shutdown process
|
||||||
|
mutable QReadWriteLock m_lock {QReadWriteLock::Recursive}; //!< lock which can be used from the derived classes
|
||||||
mutable QReadWriteLock m_lock {QReadWriteLock::Recursive}; //!< lock
|
|
||||||
|
|
||||||
//! Make sure everthing runs correctly in own thread
|
//! Make sure everthing runs correctly in own thread
|
||||||
void threadAssertCheck() const;
|
void threadAssertCheck() const;
|
||||||
|
|||||||
Reference in New Issue
Block a user