Skip to content

Commit

Permalink
increase tooltip font size
Browse files Browse the repository at this point in the history
  • Loading branch information
DSCaskey authored and Onetchou committed Aug 25, 2024
1 parent 79ef650 commit b860222
Show file tree
Hide file tree
Showing 19 changed files with 23 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -747,7 +747,7 @@ QString VAbstractOperation::complexPointToolTip(quint32 itemId) const
{
const QSharedPointer<VPointF> point = VAbstractTool::data.GeometricObject<VPointF>(itemId);

const QString toolTipStr = QString("<table>"
const QString toolTipStr = QString("<table style=font-size:11pt; font-weight:600>"
"<tr> <td><b>%1:</b> %2</td> </tr>"
"%3"
"</table>")
Expand All @@ -760,7 +760,7 @@ QString VAbstractOperation::complexCurveToolTip(quint32 itemId) const
{
const QSharedPointer<VAbstractCurve> curve = VAbstractTool::data.GeometricObject<VAbstractCurve>(itemId);

const QString toolTipStr = QString("<table>"
const QString toolTipStr = QString("<table style=font-size:11pt; font-weight:600>"
"<tr> <td><b> %1:</b> %2</td> </tr>"
"<tr> <td><b>%3:</b> %4 %5</td> </tr>"
"%6"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ QString VAbstractSpline::makeToolTip() const
{
const QSharedPointer<VAbstractCurve> curve = VAbstractTool::data.GeometricObject<VAbstractCurve>(m_id);

const QString toolTip = QString("<table>"
const QString toolTip = QString("<table style=font-size:11pt; font-weight:600>"
"<tr> <td><b> %4:</b> %5</td> </tr>"
"<tr> <td><b>%1:</b> %2 %3</td> </tr>"
"</table>")
Expand Down
2 changes: 1 addition & 1 deletion src/libs/vtools/tools/drawTools/toolcurve/vtoolarc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,7 @@ QString VToolArc::makeToolTip() const
{
const QSharedPointer<VArc> arc = VAbstractTool::data.GeometricObject<VArc>(m_id);

const QString toolTip = QString("<table>"
const QString toolTip = QString("<table style=font-size:11pt; font-weight:600>"
"<tr> <td><b>%10:</b> %11</td> </tr>"
"<tr> <td><b>%1:</b> %2 %3</td> </tr>"
"<tr> <td><b>%4:</b> %5 %3</td> </tr>"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ QString VToolArcWithLength::makeToolTip() const
{
const QSharedPointer<VArc> arc = VAbstractTool::data.GeometricObject<VArc>(m_id);

const QString toolTip = QString("<table>"
const QString toolTip = QString("<table style=font-size:11pt; font-weight:600>"
"<tr>"
"<td align ='right'><b>%12: </b></td>" // Tool name
"<td align ='left'>%13</td>"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,7 @@ QString VToolEllipticalArc::makeToolTip() const
{
const QSharedPointer<VEllipticalArc> elArc = VAbstractTool::data.GeometricObject<VEllipticalArc>(m_id);

const QString toolTip = QString("<table>"
const QString toolTip = QString("<table style=font-size:11pt; font-weight:600>"
"<tr> <td><b>%12:</b> %13</td> </tr>"
"<tr> <td><b>%1:</b> %2 %3</td> </tr>"
"<tr> <td><b>%4:</b> %5 %3</td> </tr>"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@ QString VToolDoublePoint::complexToolTip(quint32 itemId) const
{
const QSharedPointer<VPointF> point = VAbstractTool::data.GeometricObject<VPointF>(itemId);

const QString toolTipStr = QString("<table>"
const QString toolTipStr = QString("<table style=font-size:11pt; font-weight:600>"
"<tr> <td><b>%1:</b> %2</td> </tr>"
"%3"
"</table>")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -315,11 +315,13 @@ QString VToolCutArc::makeToolTip() const
auto ArcToolTip = [arcStr, lengthStr, startAngleStr, endAngleStr, radiusStr](QString toolTip, const VArc &arc,
const QString &arcNumber)
{
toolTip += QString("<tr> <td><b>%10:</b> %11</td> </tr>"
toolTip += QString("<table style=font-size:11pt; font-weight:600>"
"<tr> <td><b>%10:</b> %11</td> </tr>"
"<tr> <td><b>%1:</b> %2 %3</td> </tr>"
"<tr> <td><b>%4:</b> %5 %3</td> </tr>"
"<tr> <td><b>%6:</b> %7°</td> </tr>"
"<tr> <td><b>%8:</b> %9°</td> </tr>")
"<tr> <td><b>%8:</b> %9°</td> </tr>"
"</table>")
.arg(arcStr + arcNumber + QLatin1String(" ") + lengthStr)
.arg(qApp->fromPixel(arc.GetLength()))
.arg(UnitsToStr(qApp->patternUnit(), true))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ QString VToolCutSpline::makeToolTip() const
const QString curveStr = tr("Curve");
const QString lengthStr = tr("length");

const QString toolTip = QString("<table>"
const QString toolTip = QString("<table style=font-size:11pt; font-weight:600>"
"<tr> <td><b>%6:</b> %7</td> </tr>"
"<tr> <td><b>%1:</b> %2 %3</td> </tr>"
"<tr> <td><b>%8:</b> %9</td> </tr>"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ QString VToolCutSplinePath::makeToolTip() const
const QString curveStr = tr("Curve");
const QString lengthStr = tr("length");

const QString toolTip = QString("<table>"
const QString toolTip = QString("<table style=font-size:11pt; font-weight:600>"
"<tr> <td><b>%6:</b> %7</td> </tr>"
"<tr> <td><b>%1:</b> %2 %3</td> </tr>"
"<tr> <td><b>%8:</b> %9</td> </tr>"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ QString DoubleLinePointTool::makeToolTip() const
const QLineF line1(static_cast<QPointF>(*point1), static_cast<QPointF>(*point3));
const QLineF line2(static_cast<QPointF>(*point2), static_cast<QPointF>(*point3));

const QString toolTip = QString("<table>"
const QString toolTip = QString("<table style=font-size:11pt; font-weight:600>"
"<tr>"
"<td align ='right'><b>%9: </b></td>" // Tool name
"<td align ='left'>Intersect XY</td>"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ QString VToolAlongLine::makeToolTip() const
const QLineF curLine(static_cast<QPointF>(*basePoint), static_cast<QPointF>(*current));
const QLineF curToSecond(static_cast<QPointF>(*current), static_cast<QPointF>(*secondPoint));

const QString toolTip = QString("<table>"
const QString toolTip = QString("<table style=font-size:11pt; font-weight:600>"
"<tr> <td><b> %9:</b> %10</td> </tr>"
"<tr> <td><b>%1:</b> %2 %3</td> </tr>"
"<tr> <td><b> %4:</b> %5°</td> </tr>"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ QString VToolHeight::makeToolTip() const
const QLineF p1ToCur(static_cast<QPointF>(*p1Line), static_cast<QPointF>(*current));
const QLineF p2ToCur(static_cast<QPointF>(*p2Line), static_cast<QPointF>(*current));

const QString toolTip = QString("<table>"
const QString toolTip = QString("<table style=font-size:11pt; font-weight:600>"
"<tr> <td><b> %10:</b> %11</td> </tr>"
"<tr> <td><b>%1:</b> %2 %3</td> </tr>"
"<tr> <td><b> %4:</b> %5°</td> </tr>"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ QString VToolLineIntersectAxis::makeToolTip() const
const QLineF firstToCur(static_cast<QPointF>(*firstPoint), static_cast<QPointF>(*current));
const QLineF curToSecond(static_cast<QPointF>(*current), static_cast<QPointF>(*secondPoint));

const QString toolTip = QString("<table>"
const QString toolTip = QString("<table style=font-size:11pt; font-weight:600>"
"<tr> <td><b> %10:</b> %11</td> </tr>"
"<tr> <td><b>%1:</b> %2 %3</td> </tr>"
"<tr> <td><b> %4:</b> %5°</td> </tr>"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ QString VToolLinePoint::makeToolTip() const

const QLineF line(static_cast<QPointF>(*first), static_cast<QPointF>(*second));

const QString toolTip = QString("<table>"
const QString toolTip = QString("<table style=font-size:11pt; font-weight:600>"
"<tr> <td><b> %6:</b> %7</td> </tr>"
"<tr> <td><b>%1:</b> %2 %3</td> </tr>"
"<tr> <td><b> %4:</b> %5°</td> </tr>"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ QString VToolShoulderPoint::makeToolTip() const
const QLineF firstToCur(static_cast<QPointF>(*first), static_cast<QPointF>(*current));
const QLineF secondToCur(static_cast<QPointF>(*second), static_cast<QPointF>(*current));

const QString toolTip = QString("<table>"
const QString toolTip = QString("<table style=font-size:11pt; font-weight:600>"
"<tr> <td><b> %8:</b> %9</td> </tr>"
"<tr> <td><b>%1:</b> %2 %3</td> </tr>"
"<tr> <td><b> %4:</b> %5°</td> </tr>"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ QString VToolBasePoint::makeToolTip() const
{
const QSharedPointer<VPointF> point = VAbstractTool::data.GeometricObject<VPointF>(m_id);

const QString toolTipStr = QString("<table>"
const QString toolTipStr = QString("<table style=font-size:11pt; font-weight:600>"
"<tr> <td><b>%1:</b> %2</td> </tr>"
"</table>")
.arg(tr("Name"))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ QString VToolLineIntersect::makeToolTip() const
const QLineF p1L2ToCur(static_cast<QPointF>(*p1L2), static_cast<QPointF>(*current));
const QLineF curToP2L2(static_cast<QPointF>(*current), static_cast<QPointF>(*p2L2));

const QString toolTip = QString("<table>"
const QString toolTip = QString("<table style=font-size:11pt; font-weight:600>"
"<tr> <td><b>%10:</b> %11</td> </tr>"
"<tr> <td><b>%1:</b> %2 %3</td> </tr>"
"<tr> <td><b>%4:</b> %5 %3</td> </tr>"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ QString VToolPointOfContact::makeToolTip() const
const QLineF p2ToCur(static_cast<QPointF>(*p2), static_cast<QPointF>(*current));
const QLineF centerToCur(static_cast<QPointF>(*centerP), static_cast<QPointF>(*current));

const QString toolTip = QString("<table>"
const QString toolTip = QString("<table style=font-size:11pt; font-weight:600>"
"<tr> <td><b>%10:</b> %11</td> </tr>"
"<tr> <td><b>%1:</b> %2 %3</td> </tr>"
"<tr> <td><b>%4:</b> %5 %3</td> </tr>"
Expand Down
2 changes: 1 addition & 1 deletion src/libs/vtools/tools/drawTools/vtoolline.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@ QString VToolLine::makeToolTip() const

const QLineF line(static_cast<QPointF>(*first), static_cast<QPointF>(*second));

const QString toolTip = QString("<table>"
const QString toolTip = QString("<table style=font-size:11pt; font-weight:600>"
"<tr> <td><b>%1:</b> %2 %3</td> </tr>"
"<tr> <td><b>%4:</b> %5°</td> </tr>"
"</table>")
Expand Down

0 comments on commit b860222

Please sign in to comment.