Attempt a better layout for the download dialog

This seems to work well and provides a lot less wasted space.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2015-01-13 21:20:32 +13:00
parent 578e9c22af
commit af3dd1e835
2 changed files with 83 additions and 91 deletions

View file

@ -62,13 +62,9 @@ DownloadFromDCWidget::DownloadFromDCWidget(QWidget *parent, Qt::WindowFlags f) :
ui.downloadedView->setSelectionMode(QAbstractItemView::SingleSelection);
int startingWidth = defaultModelFont().pointSize();
ui.downloadedView->setColumnWidth(0, startingWidth * 20);
ui.downloadedView->setColumnWidth(1, startingWidth * 15);
ui.downloadedView->setColumnWidth(1, startingWidth * 10);
ui.downloadedView->setColumnWidth(2, startingWidth * 10);
connect(ui.downloadedView, SIGNAL(clicked(QModelIndex)), diveImportedModel, SLOT(changeSelected(QModelIndex)));
QRect mainGeometry = parent->geometry();
int width = mainGeometry.width() * 0.8;
int height = mainGeometry.height() * 0.8;
resize(width, height);
progress_bar_text = "";