Commit deaf5916 authored by Eugene Popov's avatar Eugene Popov 🇺🇦 Committed by Elvis Angelaccio
Browse files

[PlacesPanel] Remove horizontal scrollbar

This MR removes the horizontal scrollbar of the Places panel. For titles that don't fit in the panel, their elided versions will be used (i.e., with ...).

BUG: 301758
parent 3bde6ba1
Pipeline #70961 canceled with stage
......@@ -7,10 +7,15 @@
#include "placesview.h"
#include "dolphin_placespanelsettings.h"
#include "kitemviews/kitemlistheader.h"
#include <QGraphicsSceneResizeEvent>
PlacesView::PlacesView(QGraphicsWidget* parent) :
const int iconSize = PlacesPanelSettings::iconSize();
if (iconSize >= 0) {
......@@ -36,3 +41,9 @@ int PlacesView::iconSize() const
return option.iconSize;
void PlacesView::resizeEvent(QGraphicsSceneResizeEvent *event)
header()->setColumnWidth(QByteArrayLiteral("text"), event->newSize().width());
......@@ -23,6 +23,9 @@ public:
void setIconSize(int size);
int iconSize() const;
void resizeEvent(QGraphicsSceneResizeEvent *event) override;
Supports Markdown
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