UITreeView improvements.

Added Drawable::getPixelsSize.
Improved UIPushButton.
This commit is contained in:
Martín Lucas Golini
2020-07-23 00:48:16 -03:00
parent ad4e4b5367
commit 54d520dba6
57 changed files with 540 additions and 256 deletions

View File

@@ -1599,6 +1599,7 @@ void App::init( const std::string& file, const Float& pidelDensity ) {
FileSystemModel::Path},
true );
tree->setHeadersVisible( false );
tree->setExpandersAsIcons( true );
tree->addEventListener( Event::OnModelEvent, [&]( const Event* event ) {
const ModelEvent* modelEvent = static_cast<const ModelEvent*>( event );
if ( modelEvent->getModelEventType() == ModelEventType::Open ) {
@@ -1628,6 +1629,8 @@ void App::init( const std::string& file, const Float& pidelDensity ) {
tree->setModel( FileSystemModel::New( "." ) );
}
tree->setAutoExpandOnSingleColumn( true );
mWindow->runMainLoop( &appLoop );
}
}