mirror of
https://github.com/status-im/snorenotify.git
synced 2025-01-24 07:20:20 +00:00
Code style.
This commit is contained in:
parent
4a9c2123b7
commit
d00c6ea013
@ -97,7 +97,7 @@ Hint &Application::hints()
|
||||
|
||||
const Hint &Application::constHints() const
|
||||
{
|
||||
return const_cast<Hint&>(const_cast<Application*>(this)->hints());
|
||||
return const_cast<Hint &>(const_cast<Application *>(this)->hints());
|
||||
}
|
||||
|
||||
QDebug operator<< (QDebug debug, const Snore::Application &app)
|
||||
|
@ -139,7 +139,7 @@ Hint &Notification::hints()
|
||||
|
||||
const Hint &Notification::constHints() const
|
||||
{
|
||||
return const_cast<Hint&>(const_cast<Notification*>(this)->hints());
|
||||
return const_cast<Hint &>(const_cast<Notification *>(this)->hints());
|
||||
}
|
||||
|
||||
bool Notification::isValid() const
|
||||
|
@ -34,11 +34,11 @@ NotifyWidget::NotifyWidget(int pos, const SnoreNotifier *parent) :
|
||||
|
||||
QString font = qApp->font().family();
|
||||
#ifdef Q_OS_WIN
|
||||
if(QSysInfo::windowsVersion() >= QSysInfo::WV_WINDOWS8 ) {
|
||||
if (QSysInfo::windowsVersion() >= QSysInfo::WV_WINDOWS8) {
|
||||
font = QLatin1String("Segoe UI Symbol");
|
||||
}
|
||||
#if QT_VERSION >= QT_VERSION_CHECK(5,5,0)
|
||||
if(QSysInfo::windowsVersion() >= QSysInfo::WV_WINDOWS10) {
|
||||
if (QSysInfo::windowsVersion() >= QSysInfo::WV_WINDOWS10) {
|
||||
font = QLatin1String("Segoe UI Emoji");
|
||||
}
|
||||
#endif
|
||||
@ -112,7 +112,7 @@ void NotifyWidget::display(const Notification ¬ification)
|
||||
bool NotifyWidget::acquire()
|
||||
{
|
||||
if (!m_mem.isAttached()) {
|
||||
return true;
|
||||
return true;
|
||||
}
|
||||
bool out = false;
|
||||
if (m_ready) {
|
||||
@ -137,7 +137,7 @@ bool NotifyWidget::acquire()
|
||||
bool NotifyWidget::release()
|
||||
{
|
||||
if (!m_mem.isAttached()) {
|
||||
return true;
|
||||
return true;
|
||||
}
|
||||
bool out = false;
|
||||
if (!m_ready) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user