Changeset View
Changeset View
Standalone View
Standalone View
src/qt/notificator.cpp
Show First 20 Lines • Show All 68 Lines • ▼ Show 20 Lines | |||||
} | } | ||||
#ifdef USE_DBUS | #ifdef USE_DBUS | ||||
// Loosely based on http://www.qtcentre.org/archive/index.php/t-25879.html | // Loosely based on http://www.qtcentre.org/archive/index.php/t-25879.html | ||||
class FreedesktopImage { | class FreedesktopImage { | ||||
public: | public: | ||||
FreedesktopImage() {} | FreedesktopImage() {} | ||||
FreedesktopImage(const QImage &img); | explicit FreedesktopImage(const QImage &img); | ||||
static int metaType(); | static int metaType(); | ||||
// Image to variant that can be marshalled over DBus | // Image to variant that can be marshalled over DBus | ||||
static QVariant toVariant(const QImage &img); | static QVariant toVariant(const QImage &img); | ||||
private: | private: | ||||
int width, height, stride; | int width, height, stride; | ||||
▲ Show 20 Lines • Show All 183 Lines • Show Last 20 Lines |