aboutsummaryrefslogtreecommitdiffstats
path: root/qt-ui/downloadfromdivecomputer.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2015-01-13 21:20:32 +1300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-01-13 21:58:28 +1300
commitaf3dd1e8350b900ea44deff581d6e7e733bd4f5b (patch)
treece3a5c56f6f8b5b92dba9c29da8f4be8ab066d63 /qt-ui/downloadfromdivecomputer.cpp
parent578e9c22af7277430a0f8a3bd684ea22d91612fd (diff)
downloadsubsurface-af3dd1e8350b900ea44deff581d6e7e733bd4f5b.tar.gz
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>
Diffstat (limited to 'qt-ui/downloadfromdivecomputer.cpp')
-rw-r--r--qt-ui/downloadfromdivecomputer.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/qt-ui/downloadfromdivecomputer.cpp b/qt-ui/downloadfromdivecomputer.cpp
index 10a3a20b8..ef59c1804 100644
--- a/qt-ui/downloadfromdivecomputer.cpp
+++ b/qt-ui/downloadfromdivecomputer.cpp
@@ -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 = "";