1 2 3 4 5 6 7 8 9 10 11
#include "qmapwatchlet.h" using namespace sowatch; QMapWatchlet::QMapWatchlet(WatchServer* server) : DeclarativeWatchlet(server, "com.javispedro.sowatch.map") { setSource(QUrl("qrc:/qmapwatchlet/" + server->watch()->model() + ".qml")); }