Commit 18365814 authored by Alessandro Portale's avatar Alessandro Portale

Find: Add a HighDPI wrap indicator

Change-Id: Id31e779a98b3f048a42838590b6ace02c2b86bfd
Reviewed-by: default avatarEike Ziller <eike.ziller@theqtcompany.com>
parent b0771016
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
<file>images/expand.png</file> <file>images/expand.png</file>
<file>images/expand@2x.png</file> <file>images/expand@2x.png</file>
<file>images/wrapindicator.png</file> <file>images/wrapindicator.png</file>
<file>images/wrapindicator@2x.png</file>
<file>images/preservecase.png</file> <file>images/preservecase.png</file>
</qresource> </qresource>
</RCC> </RCC>
...@@ -31,6 +31,7 @@ ...@@ -31,6 +31,7 @@
#include "ifindsupport.h" #include "ifindsupport.h"
#include <utils/fadingindicator.h> #include <utils/fadingindicator.h>
#include <utils/stylehelper.h>
using namespace Core; using namespace Core;
...@@ -59,5 +60,6 @@ int IFindSupport::replaceAll(const QString &before, const QString &after, FindFl ...@@ -59,5 +60,6 @@ int IFindSupport::replaceAll(const QString &before, const QString &after, FindFl
void IFindSupport::showWrapIndicator(QWidget *parent) void IFindSupport::showWrapIndicator(QWidget *parent)
{ {
Utils::FadingIndicator::showPixmap(parent, QLatin1String(":/find/images/wrapindicator.png")); Utils::FadingIndicator::showPixmap(parent, Utils::StyleHelper::dpiSpecificImageFile(
QLatin1String(":/find/images/wrapindicator.png")));
} }
...@@ -1229,6 +1229,35 @@ ...@@ -1229,6 +1229,35 @@
y="0" y="0"
x="0" /> x="0" />
</g> </g>
<g
id="src/plugins/coreplugin/find/images/wrapindicator">
<rect
ry="11"
y="450"
x="279"
height="50"
width="50"
id="rect4682"
style="opacity:1;fill:#a5a7a7;fill-opacity:0.8;stroke:none;stroke-width:1;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
<path
sodipodi:open="true"
d="m 319.99025,475.55839 a 16,16 0 0 1 -11.78175,14.87821 16,16 0 0 1 -17.70276,-6.83981 16,16 0 0 1 1.28254,-18.93477 16,16 0 0 1 18.46342,-4.3901"
sodipodi:end="5.1138147"
sodipodi:start="0.034906585"
sodipodi:ry="16"
sodipodi:rx="16"
sodipodi:cy="475"
sodipodi:cx="304"
sodipodi:type="arc"
id="path4692"
style="opacity:1;fill:none;fill-opacity:0.8;stroke:#ffffff;stroke-width:8;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
<path
sodipodi:nodetypes="ccc"
inkscape:connector-curvature="0"
id="path4694"
d="m 322.76517,465.96966 -17.45581,2.61872 5.9902,-17.11022"
style="fill:#ffffff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" />
</g>
</g> </g>
<g <g
inkscape:groupmode="layer" inkscape:groupmode="layer"
......
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