forked from pool/calligra-plan
34 lines
1.3 KiB
Diff
34 lines
1.3 KiB
Diff
|
From 44b9a00de3d484bd469fa3a5ca7b666406908940 Mon Sep 17 00:00:00 2001
|
||
|
From: Wolfgang Bauer <wbauer@tmo.at>
|
||
|
Date: Tue, 20 Mar 2018 10:29:23 +0100
|
||
|
Subject: [PATCH] Plan: fix build with Qt 5.6
|
||
|
|
||
|
The QAction constructor takes two arguments, text and parent.
|
||
|
The parent argument is optional since Qt 5.7 only, it needs to be
|
||
|
specified with earlier versions.
|
||
|
|
||
|
Also, text should actually be a QString, so use QStringLiteral() to
|
||
|
"convert" it.
|
||
|
|
||
|
Differential Revision: https://phabricator.kde.org/D11505
|
||
|
---
|
||
|
plan/src/libs/ui/kpttaskeditor.cpp | 2 +-
|
||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||
|
|
||
|
diff --git a/plan/src/libs/ui/kpttaskeditor.cpp b/plan/src/libs/ui/kpttaskeditor.cpp
|
||
|
index 5f79abfd917..f2da3ab3349 100644
|
||
|
--- a/plan/src/libs/ui/kpttaskeditor.cpp
|
||
|
+++ b/plan/src/libs/ui/kpttaskeditor.cpp
|
||
|
@@ -622,7 +622,7 @@ void TaskEditor::slotContextMenuRequested( const QModelIndex& index, const QPoin
|
||
|
void TaskEditor::editTasks(const QList<Task*> &tasks, const QPoint &pos)
|
||
|
{
|
||
|
QList<QAction*> lst;
|
||
|
- QAction tasksEdit("Edit...");
|
||
|
+ QAction tasksEdit(QStringLiteral("Edit..."), nullptr);
|
||
|
if (!tasks.isEmpty()) {
|
||
|
TasksEditController *ted = new TasksEditController(*project(), tasks, this);
|
||
|
connect(&tasksEdit, SIGNAL(triggered(bool)), ted, SLOT(activate()));
|
||
|
--
|
||
|
2.13.6
|
||
|
|