Fix typos

REVIEW: 125095
This commit is contained in:
Aleix Pol 2015-09-07 22:24:09 +02:00
parent 88ccb9907e
commit 3ab8aed89c
5 changed files with 12 additions and 12 deletions

View File

@ -95,7 +95,7 @@ QSystemTrayIcon *TrayIcon::trayIcon()
void TrayIcon::slotTestNotification() void TrayIcon::slotTestNotification()
{ {
SnoreCore::instance().displayExapleNotification(); SnoreCore::instance().displayExampleNotification();
} }
void TrayIcon::slotSettings() void TrayIcon::slotSettings()

View File

@ -73,8 +73,8 @@ void SettingsDialog::initTabs()
ui->errorLabel->setVisible(false); ui->errorLabel->setVisible(false);
ui->errorLineEdit->setVisible(false); ui->errorLineEdit->setVisible(false);
connect(&SnoreCore::instance(), &SnoreCore::prmaryNotificationBackendChanged, this, &SettingsDialog::loadPrimaryBackendBox); connect(&SnoreCore::instance(), &SnoreCore::primaryNotificationBackendChanged, this, &SettingsDialog::loadPrimaryBackendBox);
connect(&SnoreCore::instance(), &SnoreCore::prmaryNotificationBackendError, [this](const QString & error) { connect(&SnoreCore::instance(), &SnoreCore::primaryNotificationBackendError, [this](const QString & error) {
ui->errorLabel->setVisible(true); ui->errorLabel->setVisible(true);
ui->errorLineEdit->setVisible(true); ui->errorLineEdit->setVisible(true);
ui->errorLineEdit->setText(error); ui->errorLineEdit->setText(error);
@ -83,7 +83,7 @@ void SettingsDialog::initTabs()
void SettingsDialog::on_pushButton_clicked() void SettingsDialog::on_pushButton_clicked()
{ {
SnoreCore::instance().displayExapleNotification(); SnoreCore::instance().displayExampleNotification();
} }
void SettingsDialog::load() void SettingsDialog::load()

View File

@ -253,7 +253,7 @@ Notification SnoreCore::getActiveNotificationByID(uint id) const
return d->m_activeNotifications.value(id); return d->m_activeNotifications.value(id);
} }
void SnoreCore::displayExapleNotification() void SnoreCore::displayExampleNotification()
{ {
Application app = SnoreCorePrivate::instance()->defaultApplication(); Application app = SnoreCorePrivate::instance()->defaultApplication();
QString text = QLatin1String("<i>") + tr("This is %1").arg(app.name()) + QLatin1String("</i><br>" QString text = QLatin1String("<i>") + tr("This is %1").arg(app.name()) + QLatin1String("</i><br>"

View File

@ -80,7 +80,7 @@ public:
/** /**
* Displays a example notification. * Displays a example notification.
*/ */
void displayExapleNotification(); void displayExampleNotification();
/** /**
* Register an application. * Register an application.
@ -159,23 +159,23 @@ Q_SIGNALS:
* @todo maybe introduce a special action state for this case * @todo maybe introduce a special action state for this case
* @see Action * @see Action
*/ */
void actionInvoked(Snore::Notification); void actionInvoked(const Snore::Notification &notification);
/** /**
* This signal is emitted when a Notification is closed. * This signal is emitted when a Notification is closed.
* @see Notification::CloseReasons * @see Notification::CloseReasons
*/ */
void notificationClosed(Snore::Notification); void notificationClosed(const Snore::Notification &notification);
/** /**
* This signal is emited in case the Primary backend encountered an error. * This signal is emited in case the Primary backend encountered an error.
*/ */
void prmaryNotificationBackendError(const QString &error); void primaryNotificationBackendError(const QString &error);
/** /**
* This signal is emited in case the Primary backend changed. * This signal is emited in case the Primary backend changed.
*/ */
void prmaryNotificationBackendChanged(const QString &erro); void primaryNotificationBackendChanged(const QString &error);
private: private:
SnoreCore(QObject *parent); SnoreCore(QObject *parent);

View File

@ -93,7 +93,7 @@ bool SnoreCorePrivate::setBackendIfAvailible(const QString &backend)
if (!b->isReady()) { if (!b->isReady()) {
snoreDebug(SNORE_DEBUG) << "Backend not ready:" << b->errorString(); snoreDebug(SNORE_DEBUG) << "Backend not ready:" << b->errorString();
emit q->prmaryNotificationBackendError(b->errorString()); emit q->primaryNotificationBackendError(b->errorString());
return false; return false;
} }
if (m_notificationBackend) { if (m_notificationBackend) {
@ -106,7 +106,7 @@ bool SnoreCorePrivate::setBackendIfAvailible(const QString &backend)
connect(b, &SnoreBackend::error, [this, b](const QString &) { connect(b, &SnoreBackend::error, [this, b](const QString &) {
slotInitPrimaryNotificationBackend(); slotInitPrimaryNotificationBackend();
}); });
emit q->prmaryNotificationBackendChanged(b->name()); emit q->primaryNotificationBackendChanged(b->name());
return true; return true;
} }
return false; return false;