some constnes

This commit is contained in:
Patrick von Reth 2015-01-22 13:19:41 +01:00
parent 3972f2bc45
commit cf1d34af11
4 changed files with 5 additions and 5 deletions

View File

@ -67,7 +67,7 @@ SnoreCore *SnorePlugin::snore()
return m_snore.data();
}
QVariant SnorePlugin::value(const QString &key)
QVariant SnorePlugin::value(const QString &key) const
{
return snore()->settings()->value(normaliseKey(key));
}

View File

@ -54,7 +54,7 @@ public:
SnoreCore *snore();
const QString &name() const;
QVariant value(const QString &key);
QVariant value(const QString &key) const;
void setValue(const QString &key, const QVariant &value);
void setDefaultValue(const QString &key, const QVariant &value,const QString &help);

View File

@ -28,7 +28,7 @@
using namespace Snore;
NotifyWidget::NotifyWidget(int pos, SnoreNotifier *parent) :
NotifyWidget::NotifyWidget(int pos, const SnoreNotifier *parent) :
QQuickView(QUrl("qrc:/notification.qml")),
m_id(pos),
m_parent(parent),

View File

@ -47,7 +47,7 @@ class NotifyWidget : public QQuickView
public:
Q_PROPERTY(int id READ id)
Q_PROPERTY(Qt::Corner corner READ corner)
explicit NotifyWidget(int pos, SnoreNotifier *parent);
explicit NotifyWidget(int pos, const SnoreNotifier *parent);
~NotifyWidget();
void display(const Snore::Notification &notification);
@ -75,7 +75,7 @@ private:
Snore::Notification m_notification;
QObject *m_qmlNotification;
int m_id;
SnoreNotifier *m_parent;
const SnoreNotifier *m_parent;
QSharedMemory m_mem;
bool m_ready;
};