build: Treat warnings as errors (#923)
* squash and rebase andronov-alexey:treat_warnings_as_errors from pull request #850 * fix remaining warnings in java lib
This commit is contained in:
@@ -68,9 +68,10 @@ void QtGraphNodeExpandToggle::updateStyle()
|
||||
GraphViewStyle::NodeStyle style = GraphViewStyle::getStyleOfExpandToggleNode();
|
||||
setStyle(style);
|
||||
|
||||
float textX = (m_rect->rect().width() / 2) -
|
||||
(QFontMetrics(m_text->font()).width(m_text->text()) / 2);
|
||||
float textY = m_rect->rect().height() / 2 - QFontMetrics(m_text->font()).height() / 1.8f;
|
||||
float textX = static_cast<float>(
|
||||
(m_rect->rect().width() / 2) - (QFontMetrics(m_text->font()).width(m_text->text()) / 2));
|
||||
const float textY = static_cast<float>(
|
||||
m_rect->rect().height() / 2 - QFontMetrics(m_text->font()).height() / 1.8f);
|
||||
|
||||
// move the text to the nearest integer x pos, instead of the next lower int pos
|
||||
// improves results on windows systems
|
||||
|
||||
Reference in New Issue
Block a user