frontend: Clip source names when dock too small
This commit is contained in:
parent
63260148df
commit
99d7d134a7
2 changed files with 7 additions and 2 deletions
|
|
@ -58,6 +58,7 @@ SourceTreeItem::SourceTreeItem(SourceTree *tree_, OBSSceneItem sceneitem_) : tre
|
|||
QPixmap pixmap = icon.pixmap(QSize(16, 16));
|
||||
|
||||
iconLabel = new QLabel();
|
||||
iconLabel->setSizePolicy(QSizePolicy::Maximum, QSizePolicy::Maximum);
|
||||
iconLabel->setPixmap(pixmap);
|
||||
iconLabel->setEnabled(sourceVisible);
|
||||
iconLabel->setStyleSheet("background: none");
|
||||
|
|
@ -77,8 +78,7 @@ SourceTreeItem::SourceTreeItem(SourceTree *tree_, OBSSceneItem sceneitem_) : tre
|
|||
lock->setAccessibleDescription(QTStr("Basic.Main.Sources.LockDescription").arg(name));
|
||||
|
||||
label = new OBSSourceLabel(source);
|
||||
label->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Preferred);
|
||||
label->setAlignment(Qt::AlignLeft | Qt::AlignVCenter);
|
||||
label->setSizePolicy(QSizePolicy::Ignored, QSizePolicy::Preferred);
|
||||
label->setAttribute(Qt::WA_TranslucentBackground);
|
||||
label->setEnabled(sourceVisible);
|
||||
|
||||
|
|
|
|||
|
|
@ -543,6 +543,11 @@ SourceTreeItem {
|
|||
color: var(--text);
|
||||
}
|
||||
|
||||
SourceTreeItem .checkbox-icon {
|
||||
margin-right: 0;
|
||||
margin-left: var(--spacing_large);
|
||||
}
|
||||
|
||||
QMenu::item:selected,
|
||||
QListView::item:selected,
|
||||
QListWidget::item:selected {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue