Display tooltip also for chat names.

This commit is contained in:
Martín Lucas Golini
2025-10-11 22:40:15 -03:00
parent 30e7b84c05
commit fcc517a926
4 changed files with 12 additions and 3 deletions

View File

@@ -181,6 +181,8 @@ class EE_API Text {
void transformText( const TextTransform::Value& transform );
const String& getString() const;
String& getString();
Font* getFont() const;

View File

@@ -963,6 +963,10 @@ void Text::transformText( const TextTransform::Value& transform ) {
}
}
const String& Text::getString() const {
return mString;
}
String& Text::getString() {
return mString;
}

View File

@@ -199,6 +199,7 @@ EE_MAIN_FUNC int main( int, char*[] ) {
->setDefaultFont( font )
->add( theme );
/*
auto* vlay = UILinearLayout::NewVertical();
vlay->setLayoutSizePolicy( SizePolicy::MatchParent, SizePolicy::MatchParent );
@@ -212,6 +213,7 @@ EE_MAIN_FUNC int main( int, char*[] ) {
view->setParent( vlay );
view->setModel( SortingProxyModel::New( model ) );
Log::notice( "Total time: %.2fms", clock.getElapsedTime().asMilliseconds() );
*/
/* ListBox test */
/*
@@ -244,7 +246,7 @@ EE_MAIN_FUNC int main( int, char*[] ) {
Clock total;
/* Create Widget test */
/*
for ( size_t i = 0; i < 10000; i++ ) {
UINode::New();
}
@@ -275,14 +277,14 @@ EE_MAIN_FUNC int main( int, char*[] ) {
but->setLayoutSizePolicy( SizePolicy::MatchParent, SizePolicy::WrapContent );
but->setParent( parent )->clipEnable();
}
std::cout << "Time 10k UIPushButton total: " << total.getElapsedTime().toString() << std::endl;
std::cout << "Time 10k UIPushButton total: " << total.getElapsedTime().toString() << std::endl;
// uiSceneNode->getRoot()->closeAllChildren();
total.restart();
SceneManager::instance()->update();
std::cout << "SceneManager::instance()->update(): " << total.getElapsedTime().toString()
<< std::endl;
*/
/*
auto* main = UIRelativeLayout::New();
main->setLayoutSizePolicy( SizePolicy::MatchParent, SizePolicy::MatchParent );

View File

@@ -1308,6 +1308,7 @@ void LLMChatUI::updateTabTitle() {
if ( !mSummary.empty() )
title += " - " + mSummary;
tab->setText( title );
tab->setTooltipText( title );
}
void LLMChatUI::renameChat( const std::string& newName, bool invertLockedState ) {