blob: 6c02bee86c517b4963b5f9d89531259627308191 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#include "nekowatchlet.h"
using namespace sowatch;
const QLatin1String NekoWatchlet::myId("com.javispedro.sowatch.neko");
NekoWatchlet::NekoWatchlet(Watch* watch) :
DeclarativeWatchlet(watch, myId)
{
// Workaround Qt's stupid clip region calculation when
// - There's a QML item with clip = true
// - And we are using "compat" updateRects() signal mode
setFullUpdateMode(true);
setSource(QUrl(SOWATCH_QML_DIR "/nekowatchlet/" + watch->model() + ".qml"));
}
|