Skip to content

Commit d453752

Browse files
author
timlinux
committed
Added new images folder for tip images and new tip from Alister Hood which demonstrates how to add a tip with an image. Note the use of alias in the qrc file.
git-svn-id: http://svn.osgeo.org/qgis/trunk@15307 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 95af577 commit d453752

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed

images/images.qrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -401,4 +401,7 @@
401401
<file>themes/newgis/mIconPolygonLayer.png</file>
402402
<file>themes/newgis/mIconTableLayer.png</file>
403403
</qresource>
404+
<qresource prefix="/images/tips" >
405+
<file alias="symbol_levels.png">qgis_tips/symbol_levels.png</file>
406+
</qresource>
404407
</RCC>

images/qgis_tips/symbol_levels.png

2.32 KB
Loading

src/app/qgstipfactory.cpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,15 @@ QgsTipFactory::QgsTipFactory() : QObject()
162162
" it on again when you are ready to have the map draw itself again!"
163163
) );
164164
addGuiTip( myTip );
165+
// Tip contributed by Alister Hood
166+
myTip.setTitle(tr("Join intersected polylines when rendering"));
167+
myTip.setContent(tr("When applying layered styles to a polyline layer, you can join"
168+
" intersecting lines together simply by enabling symbol levels."
169+
" The image below shows a before (left) and after (right) view of"
170+
" an intersection when symbol levels are enabled.") +
171+
QString("<p><img src=\":/images/tips/symbol_levels.png\"/></p>")
172+
);
173+
addGuiTip(myTip);
165174
/* Template for adding more tips
166175
myTip.setTitle(tr(""));
167176
myTip.setContent(tr(""

0 commit comments

Comments
 (0)