]> cloud.milkyroute.net Git - dolphin.git/commitdiff
infopanel fully resizable
authorMichael Heidelbach <ottwolt@gmail.com>
Sat, 6 Jan 2018 23:55:32 +0000 (16:55 -0700)
committerNathaniel Graham <pointedstick@zoho.com>
Sat, 6 Jan 2018 23:58:39 +0000 (16:58 -0700)
Summary:
Currently Infopanel does wrap its title when trying to narrow it.
Initially:
{F5619283}
Expanded:
{F5619284}
Resizing fails, watch cursor:
{F5619286}
Patch applied:
{F5619287}

Maybe this behaviour it intentional. Personally, I prefer the patch.

Test Plan:
compile & run
Resize infopanel with long title

Reviewers: #dolphin, ngraham, elvisangelaccio

Reviewed By: #dolphin, ngraham, elvisangelaccio

Subscribers: renatoo, vhanda, nicolasfella, elvisangelaccio, ngraham

Tags: #dolphin, #kde_applications

Differential Revision: https://phabricator.kde.org/D9664

src/panels/information/informationpanelcontent.cpp

index fa4868e52bdf10c5ea42546cac9e842e4c6e535e..3c48a2296be4fee51b8a529679ff346c2e225567 100644 (file)
@@ -107,7 +107,7 @@ InformationPanelContent::InformationPanelContent(QWidget* parent) :
     m_nameLabel->setFont(font);
     m_nameLabel->setTextFormat(Qt::PlainText);
     m_nameLabel->setAlignment(Qt::AlignHCenter);
-    m_nameLabel->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed);
+    m_nameLabel->setSizePolicy(QSizePolicy::Ignored, QSizePolicy::Fixed);
 
     const bool previewsShown = InformationPanelSettings::previewsShown();
     m_preview->setVisible(previewsShown);