51ed8e0812
Copy from KDE:Distro:Factory/kaffeine based on submit request 43154 from user Beineri OBS-URL: https://build.opensuse.org/request/show/43154 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/kaffeine?expand=0&rev=31
97 lines
3.3 KiB
Diff
97 lines
3.3 KiB
Diff
Index: src/playlist/playlisttab.cpp
|
|
===================================================================
|
|
--- src/playlist/playlisttab.cpp (revision 1134989)
|
|
+++ src/playlist/playlisttab.cpp (working copy)
|
|
@@ -21,6 +21,7 @@
|
|
#include "playlisttab.h"
|
|
|
|
#include <QBoxLayout>
|
|
+#include <QToolBar>
|
|
#include <QKeyEvent>
|
|
#include <QListView>
|
|
#include <QSplitter>
|
|
@@ -447,33 +448,35 @@
|
|
QBoxLayout *sideLayout = new QVBoxLayout(widget);
|
|
sideLayout->setMargin(0);
|
|
|
|
+ QToolBar *ToolBarLayout= new QToolBar();
|
|
QBoxLayout *boxLayout = new QHBoxLayout();
|
|
|
|
QToolButton *toolButton = new QToolButton(widget);
|
|
toolButton->setDefaultAction(newAction);
|
|
toolButton->setToolButtonStyle(Qt::ToolButtonTextBesideIcon);
|
|
- boxLayout->addWidget(toolButton);
|
|
+ ToolBarLayout->addWidget(toolButton);
|
|
|
|
toolButton = new QToolButton(widget);
|
|
toolButton->setDefaultAction(renameAction);
|
|
toolButton->setToolButtonStyle(Qt::ToolButtonTextBesideIcon);
|
|
- boxLayout->addWidget(toolButton);
|
|
+ ToolBarLayout->addWidget(toolButton);
|
|
|
|
toolButton = new QToolButton(widget);
|
|
toolButton->setDefaultAction(removePlaylistAction);
|
|
toolButton->setToolButtonStyle(Qt::ToolButtonTextBesideIcon);
|
|
- boxLayout->addWidget(toolButton);
|
|
+ ToolBarLayout->addWidget(toolButton);
|
|
|
|
toolButton = new QToolButton(widget);
|
|
toolButton->setDefaultAction(savePlaylistAction);
|
|
toolButton->setToolButtonStyle(Qt::ToolButtonTextBesideIcon);
|
|
- boxLayout->addWidget(toolButton);
|
|
+ ToolBarLayout->addWidget(toolButton);
|
|
|
|
toolButton = new QToolButton(widget);
|
|
toolButton->setDefaultAction(savePlaylistAsAction);
|
|
toolButton->setToolButtonStyle(Qt::ToolButtonTextBesideIcon);
|
|
- boxLayout->addWidget(toolButton);
|
|
+ ToolBarLayout->addWidget(toolButton);
|
|
|
|
+ boxLayout->addWidget(ToolBarLayout);
|
|
boxLayout->addStretch();
|
|
sideLayout->addLayout(boxLayout);
|
|
|
|
@@ -500,28 +503,30 @@
|
|
sideLayout = new QVBoxLayout(widget);
|
|
sideLayout->setMargin(0);
|
|
|
|
+ ToolBarLayout= new QToolBar();
|
|
boxLayout = new QHBoxLayout();
|
|
|
|
toolButton = new QToolButton(widget);
|
|
toolButton->setDefaultAction(repeatAction);
|
|
toolButton->setToolButtonStyle(Qt::ToolButtonTextBesideIcon);
|
|
- boxLayout->addWidget(toolButton);
|
|
+ ToolBarLayout->addWidget(toolButton);
|
|
|
|
toolButton = new QToolButton(widget);
|
|
toolButton->setDefaultAction(randomAction);
|
|
toolButton->setToolButtonStyle(Qt::ToolButtonTextBesideIcon);
|
|
- boxLayout->addWidget(toolButton);
|
|
+ ToolBarLayout->addWidget(toolButton);
|
|
|
|
toolButton = new QToolButton(widget);
|
|
toolButton->setDefaultAction(removeTrackAction);
|
|
toolButton->setToolButtonStyle(Qt::ToolButtonTextBesideIcon);
|
|
- boxLayout->addWidget(toolButton);
|
|
+ ToolBarLayout->addWidget(toolButton);
|
|
|
|
toolButton = new QToolButton(widget);
|
|
toolButton->setDefaultAction(clearAction);
|
|
toolButton->setToolButtonStyle(Qt::ToolButtonTextBesideIcon);
|
|
- boxLayout->addWidget(toolButton);
|
|
+ ToolBarLayout->addWidget(toolButton);
|
|
|
|
+ boxLayout->addWidget(ToolBarLayout);
|
|
boxLayout->addStretch();
|
|
sideLayout->addLayout(boxLayout);
|
|
|
|
@@ -616,6 +621,7 @@
|
|
fileWidget->setFilter(MediaWidget::extensionFilter());
|
|
fileWidget->setMode(KFile::Files | KFile::ExistingOnly);
|
|
fileWidgetSplitter->setStretchFactor(1, 1);
|
|
+ fileWidget->setMinimumWidth(40);
|
|
|
|
// KFileWidget creates a KUrlComboBox without layout (!), which steals the focus:
|
|
// kDebug() << QApplication::focusWidget();
|