summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <montel@kde.org>2015-08-03 08:05:55 (GMT)
committerMontel Laurent <montel@kde.org>2015-08-03 08:05:55 (GMT)
commit4a1c9687cff7ac7bb0521e526183d9b801070f4e (patch)
treea9e68c67062d9af4aa3d14c5c25d2824d28b66d0
parent49ce3fc4d2524df72d9cffa0cdeae687af606804 (diff)
Port QCursor. Use QStringLiteral
-rw-r--r--ui/presentationwidget.cpp17
1 files changed, 8 insertions, 9 deletions
diff --git a/ui/presentationwidget.cpp b/ui/presentationwidget.cpp
index f9dec4a..257dcb0 100644
--- a/ui/presentationwidget.cpp
+++ b/ui/presentationwidget.cpp
@@ -1478,18 +1478,17 @@ void PresentationWidget::togglePencilMode( bool on )
{
QString colorstring = Okular::Settings::slidesPencilColor().name();
// FIXME this should not be recreated every time
- QDomDocument doc( "engine" );
- QDomElement root = doc.createElement( "engine" );
- root.setAttribute( "color", colorstring );
+ QDomDocument doc( QStringLiteral("engine") );
+ QDomElement root = doc.createElement( QStringLiteral("engine") );
+ root.setAttribute( QStringLiteral("color"), colorstring );
doc.appendChild( root );
- QDomElement annElem = doc.createElement( "annotation" );
+ QDomElement annElem = doc.createElement( QStringLiteral("annotation") );
root.appendChild( annElem );
- annElem.setAttribute( "type", "Ink" );
- annElem.setAttribute( "color", colorstring );
- annElem.setAttribute( "width", "2" );
+ annElem.setAttribute( QStringLiteral("type"), QStringLiteral("Ink") );
+ annElem.setAttribute( QStringLiteral("color"), colorstring );
+ annElem.setAttribute( QStringLiteral("width"), QStringLiteral("2") );
m_drawingEngine = new SmoothPathEngine( root );
-#pragma message("KF5 fix cursor")
- // setCursor( QCursor( "pencil", Qt::ArrowCursor ) );
+ setCursor( QCursor( QPixmap(QStringLiteral("pencil")), Qt::ArrowCursor ) );
}
else
{