Skip to content

Commit

Permalink
Remove Qt version checking for old Qt version
Browse files Browse the repository at this point in the history
  • Loading branch information
magnesj committed Jan 7, 2024
1 parent b561656 commit f6be434
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 22 deletions.
2 changes: 0 additions & 2 deletions Fwk/AppFwk/cafCommand/cafCmdFeature.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -163,11 +163,9 @@ void CmdFeature::applyShortcutWithHintToAction( QAction* action, const QKeySeque
{
action->setShortcut( keySequence );

#if ( QT_VERSION >= QT_VERSION_CHECK( 5, 10, 0 ) )
// Qt made keyboard shortcuts in context menus platform dependent in Qt 5.10
// With no global way of removing it.
action->setShortcutVisibleInContextMenu( true );
#endif
}

//--------------------------------------------------------------------------------------------------
Expand Down
15 changes: 0 additions & 15 deletions Fwk/AppFwk/cafUserInterface/cafPdmUiLineEditor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -254,22 +254,7 @@ void PdmUiLineEditor::configureAndUpdateUi( const QString& uiConfigName )
QString displayString;
if ( displayStringAttrib.m_displayString.isEmpty() )
{
#if ( QT_VERSION >= QT_VERSION_CHECK( 5, 0, 0 ) && QT_VERSION < QT_VERSION_CHECK( 5, 9, 0 ) )
bool valueOk = false;
double value = uiField()->uiValue().toDouble( &valueOk );
if ( valueOk )
{
// Workaround for issue seen on Qt 5.6.1 on Linux
int precision = 8;
displayString = QString::number( value, 'g', precision );
}
else
{
displayString = uiField()->uiValue().toString();
}
#else
displayString = uiField()->uiValue().toString();
#endif
}
else
{
Expand Down
2 changes: 0 additions & 2 deletions Fwk/AppFwk/cafUserInterface/cafPdmUiTreeView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,8 @@ PdmUiTreeView::PdmUiTreeView( QWidget* parent, Qt::WindowFlags f )
connect( m_clearAction, &QAction::triggered, this, &PdmUiTreeView::slotOnClearSearchBox );
m_clearAction->setVisible( false );

#if QT_VERSION >= QT_VERSION_CHECK( 5, 10, 0 )
m_layout->addLayout( searchLayout );
connect( m_searchBox, SIGNAL( textChanged( QString ) ), SLOT( slotOnSearchTextChanged() ) );
#endif

m_treeViewEditor = new PdmUiTreeViewEditor();
QWidget* treewidget = m_treeViewEditor->getOrCreateWidget( this );
Expand Down
3 changes: 0 additions & 3 deletions Fwk/AppFwk/cafUserInterface/cafPdmUiTreeViewEditor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -194,10 +194,7 @@ QWidget* PdmUiTreeViewEditor::createWidget( QWidget* parent )
m_filterModel = new QSortFilterProxyModel( this );
m_filterModel->setFilterKeyColumn( 0 );
m_filterModel->setFilterCaseSensitivity( Qt::CaseInsensitive );

#if QT_VERSION >= QT_VERSION_CHECK( 5, 10, 0 )
m_filterModel->setRecursiveFilteringEnabled( true );
#endif

m_filterModel->setSourceModel( m_treeViewModel );
m_treeView = new PdmUiTreeViewWidget( m_mainWidget );
Expand Down

0 comments on commit f6be434

Please sign in to comment.