mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-05-30 01:56:31 +03:00
UITreeView improvements.
Added Drawable::getPixelsSize. Improved UIPushButton.
This commit is contained in:
@@ -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 );
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user