Skip to content

Commit

Permalink
Padding adjustment
Browse files Browse the repository at this point in the history
  • Loading branch information
jdpurcell committed Oct 21, 2023
1 parent 4915ea4 commit 24842d3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/qvoptionsdialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -528,6 +528,7 @@ void QVOptionsDialog::constrainImagePositionCheckboxStateChanged(int state)
void QVOptionsDialog::populateCategories()
{
const int iconSize = 24;
const int listRightPadding = 3;
auto addItem = [&](const QChar &iconChar, const QString &text) {
ui->categoryList->addItem(new QListWidgetItem(qvApp->iconFromFont("Material Icons Outlined", iconChar, iconSize, devicePixelRatioF()), text));
};
Expand All @@ -538,7 +539,7 @@ void QVOptionsDialog::populateCategories()
addItem(u'\ue429', tr("Miscellaneous"));
addItem(u'\ue312', tr("Shortcuts"));
addItem(u'\ue323', tr("Mouse"));
ui->categoryList->setFixedWidth(ui->categoryList->sizeHintForColumn(0) + ui->categoryList->frameWidth() + 2);
ui->categoryList->setFixedWidth(ui->categoryList->sizeHintForColumn(0) + ui->categoryList->frameWidth() + listRightPadding);
}

void QVOptionsDialog::populateLanguages()
Expand Down

0 comments on commit 24842d3

Please sign in to comment.