1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-13 01:24:11 +02:00

Place editor properly:

This commit is contained in:
Leo Franchi
2011-06-08 23:43:53 -04:00
parent c014ccdf33
commit f3b9a7bdec

View File

@@ -54,6 +54,8 @@ protected:
editor->setGeometry( option.rect.adjusted( 20, 0, 0, 0 ) ); editor->setGeometry( option.rect.adjusted( 20, 0, 0, 0 ) );
else else
QStyledItemDelegate::updateEditorGeometry( editor, option, index ); QStyledItemDelegate::updateEditorGeometry( editor, option, index );
editor->setGeometry( editor->geometry().adjusted( TREEVIEW_INDENT_ADD, 0, 0, 0 ) );
} }
private: private: