Commit 0f81efb1 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

fix some clazy warning

parent ca6d4a30
...@@ -259,7 +259,6 @@ void EditDisplayAlarmDlg::type_init(QWidget* parent, QVBoxLayout* frameLayout) ...@@ -259,7 +259,6 @@ void EditDisplayAlarmDlg::type_init(QWidget* parent, QVBoxLayout* frameLayout)
*/ */
Reminder* EditDisplayAlarmDlg::createReminder(QWidget* parent) Reminder* EditDisplayAlarmDlg::createReminder(QWidget* parent)
{ {
static const QString reminderText = i18nc("@info:whatsthis", "Enter how long in advance of or after the main alarm to display a reminder alarm.");
return new Reminder(i18nc("@info:whatsthis", "Check to additionally display a reminder in advance of or after the main alarm time(s)."), return new Reminder(i18nc("@info:whatsthis", "Check to additionally display a reminder in advance of or after the main alarm time(s)."),
xi18nc("@info:whatsthis", "<para>Enter how long in advance of or after the main alarm to display a reminder alarm.</para><para>%1</para>", TimeSpinBox::shiftWhatsThis()), xi18nc("@info:whatsthis", "<para>Enter how long in advance of or after the main alarm to display a reminder alarm.</para><para>%1</para>", TimeSpinBox::shiftWhatsThis()),
i18nc("@info:whatsthis", "Select whether the reminder should be triggered before or after the main alarm"), i18nc("@info:whatsthis", "Select whether the reminder should be triggered before or after the main alarm"),
......
...@@ -117,6 +117,7 @@ QVector<KAEvent> EventListView::selectedEvents() const ...@@ -117,6 +117,7 @@ QVector<KAEvent> EventListView::selectedEvents() const
if (count) if (count)
{ {
const ItemListModel* model = static_cast<const ItemListModel*>(ixlist[0].model()); const ItemListModel* model = static_cast<const ItemListModel*>(ixlist[0].model());
elist.reserve(count);
for (int i = 0; i < count; ++i) for (int i = 0; i < count; ++i)
elist += model->event(ixlist[i]); elist += model->event(ixlist[i]);
} }
......
...@@ -1136,7 +1136,7 @@ void MainWindow::slotUndoStatus(const QString& undo, const QString& redo) ...@@ -1136,7 +1136,7 @@ void MainWindow::slotUndoStatus(const QString& undo, const QString& redo)
else else
{ {
mActionUndo->setEnabled(true); mActionUndo->setEnabled(true);
mActionUndo->setText(QStringLiteral("%1 %2").arg(undoText).arg(undo)); mActionUndo->setText(QStringLiteral("%1 %2").arg(undoText, undo));
} }
if (redo.isNull()) if (redo.isNull())
{ {
...@@ -1146,7 +1146,7 @@ void MainWindow::slotUndoStatus(const QString& undo, const QString& redo) ...@@ -1146,7 +1146,7 @@ void MainWindow::slotUndoStatus(const QString& undo, const QString& redo)
else else
{ {
mActionRedo->setEnabled(true); mActionRedo->setEnabled(true);
mActionRedo->setText(QStringLiteral("%1 %2").arg(redoText).arg(redo)); mActionRedo->setText(QStringLiteral("%1 %2").arg(redoText, redo));
} }
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment