UIAbstractView::findRowWithText now accepts FindRowWithTextMatchKind instead of a boolean to force equal comparison.

Refactor of some examples, added a new hello world example but using UIApplication.
ecode: Fixed how it filters the `sbt`, `srt` and `sb` universal locator switches.
This commit is contained in:
Martín Lucas Golini
2026-02-26 00:32:48 -03:00
parent d1ad9527a9
commit 677aab8e0c
20 changed files with 362 additions and 300 deletions

View File

@@ -447,7 +447,8 @@ void App::openFontDialog( std::string& fontPath, bool loadingMonoFont, bool term
FileSystem::fileRemoveFileName( absoluteFontPath ) );
if ( dialog->getMultiView() ) {
ModelIndex index = dialog->getMultiView()->getListView()->findRowWithText(
FileSystem::fileNameFromPath( fontPath ), true, true );
FileSystem::fileNameFromPath( fontPath ), true,
UIAbstractView::FindRowWithTextMatchKind::Equals );
if ( index.isValid() )
dialog->runOnMainThread(
[dialog, index]() { dialog->getMultiView()->setSelection( index ); } );