mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
578e9c22af
commit
af3dd1e835
2 changed files with 83 additions and 91 deletions
|
@ -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 = "";
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue