Gui: Compiler warning cleanup

This commit is contained in:
Chris Hennes
2025-12-16 15:16:49 -06:00
parent 55a55725eb
commit 0416a5bc0b
3 changed files with 3 additions and 5 deletions

View File

@@ -496,9 +496,6 @@ void Model::updateSlot()
// sync scene items for graph edge.
BGL_FORALL_EDGES(currentEdge, *theGraph, Graph)
{
Vertex source = boost::source(currentEdge, *theGraph);
Vertex target = boost::target(currentEdge, *theGraph);
if (!(*theGraph)[currentEdge].connector->scene()) {
this->addItem((*theGraph)[currentEdge].connector.get());
}

View File

@@ -1058,7 +1058,8 @@ void DlgExpressionInput::setMsgText()
// elide text if it is going out of widget bounds
// note: this is only 'rough elide', as this text is usually not very long;
const int msgLinesLimit = 3;
if (wrappedMsg.size() > msgContentWidth / msgFontMetrics.averageCharWidth() * msgLinesLimit) {
if (static_cast<int>(wrappedMsg.size())
> msgContentWidth / msgFontMetrics.averageCharWidth() * msgLinesLimit) {
const QString elidedMsg = msgFontMetrics.elidedText(
QString::fromStdString(wrappedMsg),
Qt::ElideRight,

View File

@@ -94,7 +94,7 @@ public:
std::optional<StyleParameters::Parameter> get(const std::string& name) const override;
void reset();
void flush();
void flush() override;
int rowCount(const QModelIndex& index) const override;
int columnCount(const QModelIndex& index) const override;