Add tooltip for the new option

This commit is contained in:
Tomaz Canabrava 2021-12-09 14:12:00 +01:00 committed by Andrius Štikonas
parent 6b27467943
commit bfc445bd7c
1 changed files with 2 additions and 0 deletions

View File

@ -58,6 +58,8 @@ NewDialog::NewDialog(QWidget* parent, Device& device, Partition& unallocatedPart
// Hack on top of hack. The dialog is created via two inheritances.
auto *allowEveryone = new QCheckBox(i18n("Allow everyone to use this partition"));
allowEveryone->setToolTip(i18n("If you are creating a partition on a usb stick, leave this on"));
QBoxLayout *l = qobject_cast<QBoxLayout*>(layout());
int lCount = l->count();
l->insertWidget(lCount-1, allowEveryone);