From a51363523b0d5662bdd5b7fc778404f6db386b76 Mon Sep 17 00:00:00 2001 From: Ken Moore Date: Thu, 15 Oct 2015 11:59:47 -0400 Subject: Increase the minimum size for a DirWidget quite a bit, and setup all the DirWidgets within a horizontal scroll area (for column view with lots of columns). --- lumina-fm/MainUI.cpp | 1 + lumina-fm/MainUI.ui | 45 +++++++++++++++++++++++++++++++++++++++++- lumina-fm/widgets/DirWidget.ui | 8 +++++++- 3 files changed, 52 insertions(+), 2 deletions(-) diff --git a/lumina-fm/MainUI.cpp b/lumina-fm/MainUI.cpp index 54b61a30..10b6dc82 100644 --- a/lumina-fm/MainUI.cpp +++ b/lumina-fm/MainUI.cpp @@ -136,6 +136,7 @@ void MainUI::OpenDirs(QStringList dirs){ } //Create the new DirWidget DirWidget *DW = new DirWidget("DW-"+QString::number(id), this); + DW->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding); ui->BrowserLayout->addWidget(DW); DWLIST << DW; //Connect the signals/slots for it diff --git a/lumina-fm/MainUI.ui b/lumina-fm/MainUI.ui index 62b9d685..f3787279 100644 --- a/lumina-fm/MainUI.ui +++ b/lumina-fm/MainUI.ui @@ -33,7 +33,7 @@ 0 - + 0 @@ -49,6 +49,49 @@ 0 + + + + QFrame::NoFrame + + + Qt::ScrollBarAlwaysOff + + + QAbstractScrollArea::AdjustToContents + + + true + + + + + 0 + 0 + 567 + 373 + + + + + 2 + + + 0 + + + 0 + + + 0 + + + 0 + + + + + diff --git a/lumina-fm/widgets/DirWidget.ui b/lumina-fm/widgets/DirWidget.ui index 1825cd0d..4278a3f0 100644 --- a/lumina-fm/widgets/DirWidget.ui +++ b/lumina-fm/widgets/DirWidget.ui @@ -10,6 +10,12 @@ 349 + + + 350 + 0 + + Form @@ -124,7 +130,7 @@ Status - true + false -- cgit