Skip to content
Snippets Groups Projects
Commit 6729d2d7 authored by hluk's avatar hluk
Browse files

itemtags: Fix tagged item size


Signed-off-by: default avatarLukas Holecek <hluk@email.cz>
parent 95c8949b
No related branches found
No related tags found
No related merge requests found
......@@ -347,19 +347,16 @@ ItemTags::ItemTags(ItemWidget *childItem, const Tags &tags)
layout->setMargin(0);
layout->setSpacing(0);
layout->addWidget(m_tagWidget);
layout->addWidget( childItem->widget() );
layout->addWidget(m_tagWidget, 0);
layout->addWidget( childItem->widget(), 1 );
}
void ItemTags::updateSize(QSize maximumSize, int idealWidth)
{
setMaximumSize(maximumSize);
m_tagWidget->adjustSize();
m_tagWidget->setFixedWidth(idealWidth);
setFixedWidth(idealWidth);
ItemWidgetWrapper::updateSize(maximumSize, idealWidth);
adjustSize();
}
QStringList ItemTagsScriptable::getUserTags() const
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment