Merge branch 'master' into stable
This commit is contained in:
commit
790c023ff7
5 changed files with 15 additions and 7 deletions
|
@ -4335,7 +4335,7 @@ Public Sub dwgInfo_Draw()
|
|||
|
||||
If Not $cInfo Then Return
|
||||
|
||||
iCol = Color.SetAlpha(Color.TooltipBackground, 128)
|
||||
iCol = Color.SetAlpha(Color.TextForeground, 128)
|
||||
|
||||
H = Paint.Font.Height + DS
|
||||
Paint.FillRect(0, 0, Paint.W, H, iCol)
|
||||
|
|
|
@ -681,15 +681,15 @@
|
|||
Background = Color.Background
|
||||
}
|
||||
}
|
||||
{ dwgInfo DrawingArea
|
||||
MoveScaled(59,14,20,6)
|
||||
Ignore = True
|
||||
}
|
||||
{ dwgBackground DrawingArea
|
||||
MoveScaled(76,26,12,9)
|
||||
Background = Color.LightForeground
|
||||
Ignore = True
|
||||
}
|
||||
{ dwgInfo DrawingArea
|
||||
MoveScaled(65,45,20,6)
|
||||
Ignore = True
|
||||
}
|
||||
{ timMoveInfo #Timer
|
||||
#MoveScaled(108,16)
|
||||
}
|
||||
|
|
|
@ -3159,7 +3159,7 @@ Public Sub dwgInfo_Draw()
|
|||
|
||||
If Not $cInfo Then Return
|
||||
|
||||
iCol = Color.SetAlpha(Color.TooltipBackground, 128)
|
||||
iCol = Color.SetAlpha(Color.TextForeground, 128)
|
||||
|
||||
H = Paint.Font.Height + DS
|
||||
Paint.FillRect(0, 0, Paint.W, H, iCol)
|
||||
|
|
|
@ -1429,7 +1429,11 @@ void gMainWindow::setUtility(bool v)
|
|||
// TODO: works only if the window is not mapped!
|
||||
|
||||
_utility = v;
|
||||
#if GTK_CHECK_VERSION(2, 20, 0)
|
||||
if (gtk_widget_get_mapped(border))
|
||||
#else
|
||||
if (GTK_WIDGET_MAPPED(border))
|
||||
#endif
|
||||
{
|
||||
remap = true;
|
||||
gtk_widget_unmap(border);
|
||||
|
|
|
@ -133,7 +133,9 @@ static void set_font_from_string(CFONT *_object, QString &str)
|
|||
if (flag == "BOLD")
|
||||
{
|
||||
f.setBold(true);
|
||||
#if QT_VERSION >= QT_VERSION_CHECK(4, 8, 0)
|
||||
f.setStyleName("Bold");
|
||||
#endif
|
||||
}
|
||||
else if (flag == "ITALIC")
|
||||
f.setItalic(true);
|
||||
|
@ -150,12 +152,14 @@ static void set_font_from_string(CFONT *_object, QString &str)
|
|||
f.setPointSizeF(SIZE_VIRTUAL_TO_REAL(size));
|
||||
else if (elt.length())
|
||||
{
|
||||
f.setStyleName("");
|
||||
f.setBold(false);
|
||||
f.setItalic(false);
|
||||
f.setUnderline(false);
|
||||
f.setStrikeOut(false);
|
||||
f.setFamily(elt);
|
||||
#if QT_VERSION >= QT_VERSION_CHECK(4, 8, 0)
|
||||
f.setStyleName("");
|
||||
#endif
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue