mirror of
https://github.com/status-im/snorenotify.git
synced 2025-01-10 08:35:54 +00:00
some constnes
This commit is contained in:
parent
3972f2bc45
commit
cf1d34af11
@ -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));
|
||||
}
|
||||
|
@ -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);
|
||||
|
||||
|
@ -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),
|
||||
|
@ -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 ¬ification);
|
||||
@ -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;
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user