Skip to content

Commit

Permalink
AdjustedDefaultSize
Browse files Browse the repository at this point in the history
Adjusted the default size of the two data tables to try and limit the screen jumping as indicated in Groups.io post when screen is at minimum width.
  • Loading branch information
aa5sh committed Dec 8, 2024
1 parent 94e55cd commit 9e93e40
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions ui/NewContactWidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -491,6 +491,8 @@ void NewContactWidget::setDxccInfo(const DxccEntity &curr)
updateCoordinates(dxccEntity.latlon[0], dxccEntity.latlon[1], COORD_DXCC);
ui->dxccTableWidget->setDxcc(dxccEntity.dxcc, BandPlan::freq2Band(ui->freqTXEdit->value()));
ui->stationTableWidget->setDxCallsign(ui->callsignEdit->text(), BandPlan::freq2Band(ui->freqTXEdit->value()));
ui->dxccTableWidget->setColumnWidth(0,65);
ui->stationTableWidget->setColumnWidth(0,65);
uiDynamic->contEdit->setCurrentText(dxccEntity.cont);
ui->flagView->setPixmap((!dxccEntity.flag.isEmpty() ) ? QPixmap(QString(":/flags/64/%1.png").arg(dxccEntity.flag))
: QPixmap() );
Expand Down Expand Up @@ -940,6 +942,8 @@ void NewContactWidget::updateTXBand(double freq)
updateDxccStatus();
ui->dxccTableWidget->setDxcc(dxccEntity.dxcc, BandPlan::freq2Band(ui->freqTXEdit->value()));
ui->stationTableWidget->setDxCallsign(ui->callsignEdit->text(), BandPlan::freq2Band(ui->freqTXEdit->value()));
ui->dxccTableWidget->setColumnWidth(0,65);
ui->stationTableWidget->setColumnWidth(0,65);
}

void NewContactWidget::updateRXBand(double freq)
Expand Down
4 changes: 2 additions & 2 deletions ui/NewContactWidget.ui
Original file line number Diff line number Diff line change
Expand Up @@ -1433,7 +1433,7 @@
<number>20</number>
</attribute>
<attribute name="horizontalHeaderDefaultSectionSize">
<number>65</number>
<number>45</number>
</attribute>
<attribute name="horizontalHeaderStretchLastSection">
<bool>false</bool>
Expand Down Expand Up @@ -1480,7 +1480,7 @@
<number>20</number>
</attribute>
<attribute name="horizontalHeaderDefaultSectionSize">
<number>65</number>
<number>45</number>
</attribute>
<attribute name="verticalHeaderMinimumSectionSize">
<number>21</number>
Expand Down

0 comments on commit 9e93e40

Please sign in to comment.