Make HexdumpWidget more resizable

This commit is contained in:
Florian Märkl 2018-03-05 15:10:17 +01:00
parent e115cbc9e9
commit 4a8352169b
2 changed files with 595 additions and 603 deletions

View File

@ -37,6 +37,8 @@ HexdumpWidget::HexdumpWidget(QWidget *parent, Qt::WindowFlags flags) :
margin = static_cast<int>(ui->hexASCIIText->document()->documentMargin()); margin = static_cast<int>(ui->hexASCIIText->document()->documentMargin());
ui->asciiHeaderLabel->setContentsMargins(margin, 0, margin, 0); ui->asciiHeaderLabel->setContentsMargins(margin, 0, margin, 0);
ui->splitter->setCollapsible(0, false); // Only Sidebar should collapse
setupFonts(); setupFonts();
colorsUpdatedSlot(); colorsUpdatedSlot();
@ -1122,5 +1124,5 @@ void HexdumpWidget::updateWidths()
ui->hexOffsetText->setFixedWidth(ui->hexOffsetText->document()->size().width()); ui->hexOffsetText->setFixedWidth(ui->hexOffsetText->document()->size().width());
ui->hexASCIIText->document()->adjustSize(); ui->hexASCIIText->document()->adjustSize();
ui->hexASCIIText->setFixedWidth(ui->hexASCIIText->document()->size().width()); ui->hexASCIIText->setMinimumWidth(ui->hexASCIIText->document()->size().width());
} }

File diff suppressed because it is too large Load Diff