mirror of
https://github.com/Dark98/threeSD.git
synced 2026-07-04 16:49:05 +00:00
UI fixes
This commit is contained in:
@@ -27,7 +27,8 @@ void DPIAwareDialog::showEvent(QShowEvent* event) {
|
|||||||
#ifdef __APPLE__
|
#ifdef __APPLE__
|
||||||
// Note: macOS implements system level virtualization, so there's no need to connect here.
|
// Note: macOS implements system level virtualization, so there's no need to connect here.
|
||||||
// but we still need to call SetContentSizes() at least once to set up the UI
|
// but we still need to call SetContentSizes() at least once to set up the UI
|
||||||
resize(original_width, original_height);
|
// macOS style has more padding. Make the dialog larger for compensation.
|
||||||
|
resize(original_width * 1.25, original_height * 1.25);
|
||||||
SetContentSizes();
|
SetContentSizes();
|
||||||
#else
|
#else
|
||||||
resized = false;
|
resized = false;
|
||||||
|
|||||||
@@ -460,6 +460,7 @@ void ImportDialog::RepopulateContent() {
|
|||||||
|
|
||||||
ui->main->setSortingEnabled(true);
|
ui->main->setSortingEnabled(true);
|
||||||
connect(ui->main, &QTreeWidget::itemChanged, this, &ImportDialog::OnItemChanged);
|
connect(ui->main, &QTreeWidget::itemChanged, this, &ImportDialog::OnItemChanged);
|
||||||
|
UpdateSizeDisplay();
|
||||||
}
|
}
|
||||||
|
|
||||||
void ImportDialog::UpdateSizeDisplay() {
|
void ImportDialog::UpdateSizeDisplay() {
|
||||||
|
|||||||
Reference in New Issue
Block a user