mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-13 17:43:59 +02:00
Increase indentation on OSx
This commit is contained in:
@@ -695,7 +695,12 @@ SourceDelegate::updateEditorGeometry( QWidget* editor, const QStyleOptionViewIte
|
|||||||
type == SourcesModel::Station )
|
type == SourcesModel::Station )
|
||||||
{
|
{
|
||||||
QRect newGeometry = option.rect.adjusted( 20, 0, 0, 0 ); //room for the icon
|
QRect newGeometry = option.rect.adjusted( 20, 0, 0, 0 ); //room for the icon
|
||||||
|
|
||||||
|
#ifdef Q_OS_MAC
|
||||||
|
newGeometry.adjust( 3 * TREEVIEW_INDENT_ADD + 5, 0, 0, 0 ); //compensate for osx indentation
|
||||||
|
#else
|
||||||
newGeometry.adjust( 3 * TREEVIEW_INDENT_ADD, 0, 0, 0 ); //compensate for indentation
|
newGeometry.adjust( 3 * TREEVIEW_INDENT_ADD, 0, 0, 0 ); //compensate for indentation
|
||||||
|
#endif
|
||||||
editor->setGeometry( newGeometry );
|
editor->setGeometry( newGeometry );
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Reference in New Issue
Block a user