mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-20 06:45:27 +00:00
Dive d/l selection UI: brute force size optimizations
This is horrible, but it gets something in place and hopefully we can clean this up soon. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
3854495832
commit
32824e8db8
2 changed files with 16 additions and 0 deletions
|
@ -55,6 +55,16 @@ DownloadFromDCWidget::DownloadFromDCWidget(QWidget *parent, Qt::WindowFlags f) :
|
|||
ui.progressBar->setMaximum(100);
|
||||
diveImportedModel = new DiveImportedModel(this);
|
||||
ui.downloadedView->setModel(diveImportedModel);
|
||||
ui.downloadedView->setSelectionBehavior(QAbstractItemView::SelectRows);
|
||||
ui.downloadedView->setSelectionMode(QAbstractItemView::SingleSelection);
|
||||
int startingWidth = defaultModelFont().pointSize();
|
||||
ui.downloadedView->setColumnWidth(0, startingWidth * 20);
|
||||
ui.downloadedView->setColumnWidth(1, startingWidth * 15);
|
||||
ui.downloadedView->setColumnWidth(2, startingWidth * 10);
|
||||
QRect mainGeometry = parent->geometry();
|
||||
int width = mainGeometry.width() * 0.8;
|
||||
int height = mainGeometry.height() * 0.8;
|
||||
resize(width, height);
|
||||
|
||||
progress_bar_text = "";
|
||||
|
||||
|
|
|
@ -165,6 +165,12 @@
|
|||
<property name="title">
|
||||
<string>Downloaded Dives</string>
|
||||
</property>
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="MinimumExpanding" vsizetype="MinimumExpanding">
|
||||
<horstretch>1</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<layout class="QHBoxLayout" name="downloadedViewLayout">
|
||||
<item>
|
||||
<widget class="QTableView" name="downloadedView"/>
|
||||
|
|
Loading…
Add table
Reference in a new issue