mirror of
https://github.com/rizinorg/cutter.git
synced 2024-12-20 20:06:12 +00:00
Make HexdumpWidget more resizable
This commit is contained in:
parent
e115cbc9e9
commit
4a8352169b
@ -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
Loading…
Reference in New Issue
Block a user