summaryrefslogtreecommitdiff
path: root/nekowatchlet
diff options
context:
space:
mode:
authorJavier S. Pedro <maemo@javispedro.com>2013-05-05 01:55:41 +0200
committerJavier S. Pedro <maemo@javispedro.com>2013-05-05 01:55:41 +0200
commit49c64104c0750857858504b512955d9cc31e5c42 (patch)
tree1a74e10cf42f0f08b1af64e8470825e8e1c8ea41 /nekowatchlet
parent24c7c2f6f1429103d922ef940c0e17a3d4778059 (diff)
downloadsowatch-49c64104c0750857858504b512955d9cc31e5c42.tar.gz
sowatch-49c64104c0750857858504b512955d9cc31e5c42.zip
update the rest of the watchlets
Diffstat (limited to 'nekowatchlet')
-rw-r--r--nekowatchlet/nekowatchlet.cpp6
-rw-r--r--nekowatchlet/nekowatchlet.h2
-rw-r--r--nekowatchlet/nekowatchletplugin.cpp4
-rw-r--r--nekowatchlet/nekowatchletplugin.h2
4 files changed, 7 insertions, 7 deletions
diff --git a/nekowatchlet/nekowatchlet.cpp b/nekowatchlet/nekowatchlet.cpp
index 627d127..6c02bee 100644
--- a/nekowatchlet/nekowatchlet.cpp
+++ b/nekowatchlet/nekowatchlet.cpp
@@ -4,14 +4,14 @@ using namespace sowatch;
const QLatin1String NekoWatchlet::myId("com.javispedro.sowatch.neko");
-NekoWatchlet::NekoWatchlet(WatchServer* server) :
- DeclarativeWatchlet(server, myId)
+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/" + server->watch()->model() + ".qml"));
+ setSource(QUrl(SOWATCH_QML_DIR "/nekowatchlet/" + watch->model() + ".qml"));
}
diff --git a/nekowatchlet/nekowatchlet.h b/nekowatchlet/nekowatchlet.h
index 067606a..0294952 100644
--- a/nekowatchlet/nekowatchlet.h
+++ b/nekowatchlet/nekowatchlet.h
@@ -10,7 +10,7 @@ class NekoWatchlet : public DeclarativeWatchlet
{
Q_OBJECT
public:
- explicit NekoWatchlet(WatchServer* server);
+ explicit NekoWatchlet(Watch* watch);
static const QLatin1String myId;
};
diff --git a/nekowatchlet/nekowatchletplugin.cpp b/nekowatchlet/nekowatchletplugin.cpp
index c891530..aee7923 100644
--- a/nekowatchlet/nekowatchletplugin.cpp
+++ b/nekowatchlet/nekowatchletplugin.cpp
@@ -28,11 +28,11 @@ WatchletPluginInterface::WatchletInfo NekoWatchletPlugin::describeWatchlet(const
return info;
}
-Watchlet* NekoWatchletPlugin::getWatchlet(const QString& driver, ConfigKey *settings, WatchServer *server)
+Watchlet* NekoWatchletPlugin::getWatchlet(const QString& driver, ConfigKey *settings, Watch *watch)
{
Q_UNUSED(driver);
Q_UNUSED(settings);
- return new NekoWatchlet(server);
+ return new NekoWatchlet(watch);
}
Q_EXPORT_PLUGIN2(notificationswatchlet, NekoWatchletPlugin)
diff --git a/nekowatchlet/nekowatchletplugin.h b/nekowatchlet/nekowatchletplugin.h
index f7f1bdf..b03df53 100644
--- a/nekowatchlet/nekowatchletplugin.h
+++ b/nekowatchlet/nekowatchletplugin.h
@@ -17,7 +17,7 @@ public:
QStringList watchlets();
WatchletInfo describeWatchlet(const QString &id);
- Watchlet* getWatchlet(const QString& id, ConfigKey *settings, WatchServer* server);
+ Watchlet* getWatchlet(const QString& id, ConfigKey *settings, Watch* watch);
};
}