More compact layour for asset list and bin widget

parent 55d4bcc1
...@@ -57,16 +57,14 @@ Rectangle { ...@@ -57,16 +57,14 @@ Rectangle {
ColumnLayout { ColumnLayout {
anchors.fill: parent anchors.fill: parent
spacing: 2 spacing: 0
RowLayout { RowLayout {
Layout.fillWidth: true Layout.fillWidth: true
Layout.fillHeight: false Layout.fillHeight: false
spacing: 6 spacing: 4
ExclusiveGroup { id: filterGroup} ExclusiveGroup { id: filterGroup}
ToolButton { ToolButton {
id: searchList id: searchList
implicitWidth: 40
implicitHeight: 40
iconName: "edit-find" iconName: "edit-find"
checkable: true checkable: true
tooltip: isEffectList ? i18n('Find effect') : i18n('Find composition') tooltip: isEffectList ? i18n('Find effect') : i18n('Find composition')
...@@ -81,8 +79,6 @@ Rectangle { ...@@ -81,8 +79,6 @@ Rectangle {
} }
ToolButton { ToolButton {
id: showAll id: showAll
implicitWidth: 40
implicitHeight: 40
iconName: "show-all-effects" iconName: "show-all-effects"
checkable:true checkable:true
exclusiveGroup: filterGroup exclusiveGroup: filterGroup
...@@ -94,8 +90,6 @@ Rectangle { ...@@ -94,8 +90,6 @@ Rectangle {
ToolButton { ToolButton {
id: showVideo id: showVideo
visible: isEffectList visible: isEffectList
implicitWidth: 40
implicitHeight: 40
iconName: "kdenlive-show-video" iconName: "kdenlive-show-video"
iconSource: 'qrc:///pics/kdenlive-show-video.svgz' iconSource: 'qrc:///pics/kdenlive-show-video.svgz'
checkable:true checkable:true
...@@ -108,8 +102,6 @@ Rectangle { ...@@ -108,8 +102,6 @@ Rectangle {
ToolButton { ToolButton {
id: showAudio id: showAudio
visible: isEffectList visible: isEffectList
implicitWidth: 40
implicitHeight: 40
iconName: "kdenlive-show-audio" iconName: "kdenlive-show-audio"
iconSource: 'qrc:///pics/kdenlive-show-audio.svgz' iconSource: 'qrc:///pics/kdenlive-show-audio.svgz'
checkable:true checkable:true
...@@ -122,8 +114,6 @@ Rectangle { ...@@ -122,8 +114,6 @@ Rectangle {
ToolButton { ToolButton {
id: showCustom id: showCustom
visible: isEffectList visible: isEffectList
implicitWidth: 40
implicitHeight: 40
iconName: "kdenlive-custom-effect" iconName: "kdenlive-custom-effect"
checkable:true checkable:true
exclusiveGroup: filterGroup exclusiveGroup: filterGroup
...@@ -134,14 +124,12 @@ Rectangle { ...@@ -134,14 +124,12 @@ Rectangle {
} }
Rectangle { Rectangle {
//This is a spacer //This is a spacer
Layout.fillHeight: true Layout.fillHeight: false
Layout.fillWidth: true Layout.fillWidth: true
color: "transparent" color: "transparent"
} }
ToolButton { ToolButton {
id: showDescription id: showDescription
implicitWidth: 40
implicitHeight: 40
iconName: "help-about" iconName: "help-about"
checkable:true checkable:true
tooltip: i18n('Show/hide description of the ') + assetType() tooltip: i18n('Show/hide description of the ') + assetType()
......
...@@ -569,7 +569,8 @@ Bin::Bin(const std::shared_ptr<ProjectItemModel> &model, QWidget *parent) ...@@ -569,7 +569,8 @@ Bin::Bin(const std::shared_ptr<ProjectItemModel> &model, QWidget *parent)
m_toolbar = new QToolBar(this); m_toolbar = new QToolBar(this);
m_toolbar->setToolButtonStyle(Qt::ToolButtonIconOnly); m_toolbar->setToolButtonStyle(Qt::ToolButtonIconOnly);
m_layout->addWidget(m_toolbar); m_layout->addWidget(m_toolbar);
m_layout->setSpacing(0);
m_layout->setContentsMargins(0, 0, 0, 0);
// Search line // Search line
m_proxyModel = new ProjectSortProxyModel(this); m_proxyModel = new ProjectSortProxyModel(this);
m_proxyModel->setDynamicSortFilter(true); m_proxyModel->setDynamicSortFilter(true);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment