Commit 2126b0ee authored by Jan Möbius's avatar Jan Möbius
Browse files

Fixed deprecation warning

parent 4b3eabf3
...@@ -438,7 +438,11 @@ void HoleFillerPlugin::update_menu() { ...@@ -438,7 +438,11 @@ void HoleFillerPlugin::update_menu() {
for (uint i = 0 ; i < holeInfo->holes()->size() ; ++i ) { for (uint i = 0 ; i < holeInfo->holes()->size() ; ++i ) {
// Set Name of the object // Set Name of the object
QTableWidgetItem* name = new QTableWidgetItem( o_it->name() ); QTableWidgetItem* name = new QTableWidgetItem( o_it->name() );
#if QT_VERSION < QT_VERSION_CHECK(5, 15, 0)
name->setFlags( 0 ); name->setFlags( 0 );
#else
name->setFlags( Qt::ItemFlags() );
#endif
name->setFlags( Qt::ItemIsSelectable | Qt::ItemIsEnabled); name->setFlags( Qt::ItemIsSelectable | Qt::ItemIsEnabled);
tool_->tableWidget->setItem(count,0,name); tool_->tableWidget->setItem(count,0,name);
......
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