Add "Encrypt" checkBox to partition widget.
Also replace occurrences of NULL with nullptr.
This commit is contained in:
parent
0c780279ae
commit
b0b2eccc23
|
@ -81,6 +81,11 @@ public:
|
||||||
return *m_ComboFileSystem;
|
return *m_ComboFileSystem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QCheckBox& checkBoxEncrypt() {
|
||||||
|
Q_ASSERT(m_CheckBoxEncrypt);
|
||||||
|
return *m_CheckBoxEncrypt;
|
||||||
|
}
|
||||||
|
|
||||||
QLabel& textLabel() {
|
QLabel& textLabel() {
|
||||||
Q_ASSERT(m_LabelTextLabel);
|
Q_ASSERT(m_LabelTextLabel);
|
||||||
return *m_LabelTextLabel;
|
return *m_LabelTextLabel;
|
||||||
|
@ -100,27 +105,29 @@ public:
|
||||||
|
|
||||||
void hideRole() {
|
void hideRole() {
|
||||||
delete m_LabelRole;
|
delete m_LabelRole;
|
||||||
m_LabelRole = NULL;
|
m_LabelRole = nullptr;
|
||||||
delete m_RadioPrimary;
|
delete m_RadioPrimary;
|
||||||
m_RadioPrimary = NULL;
|
m_RadioPrimary = nullptr;
|
||||||
delete m_RadioExtended;
|
delete m_RadioExtended;
|
||||||
m_RadioExtended = NULL;
|
m_RadioExtended = nullptr;
|
||||||
delete m_RadioLogical;
|
delete m_RadioLogical;
|
||||||
m_RadioLogical = NULL;
|
m_RadioLogical = nullptr;
|
||||||
}
|
}
|
||||||
void hideFileSystem() {
|
void hideFileSystem() {
|
||||||
delete m_LabelFileSystem;
|
delete m_LabelFileSystem;
|
||||||
m_LabelFileSystem = NULL;
|
m_LabelFileSystem = nullptr;
|
||||||
delete m_ComboFileSystem;
|
delete m_ComboFileSystem;
|
||||||
m_ComboFileSystem = NULL;
|
m_ComboFileSystem = nullptr;
|
||||||
|
delete m_CheckBoxEncrypt;
|
||||||
|
m_CheckBoxEncrypt = nullptr;
|
||||||
}
|
}
|
||||||
void hideLabel() {
|
void hideLabel() {
|
||||||
delete m_LabelTextLabel;
|
delete m_LabelTextLabel;
|
||||||
m_LabelTextLabel = NULL;
|
m_LabelTextLabel = nullptr;
|
||||||
delete m_EditLabel;
|
delete m_EditLabel;
|
||||||
m_EditLabel = NULL;
|
m_EditLabel = nullptr;
|
||||||
delete m_LabelTextNoSetLabel;
|
delete m_LabelTextNoSetLabel;
|
||||||
m_LabelTextNoSetLabel = NULL;
|
m_LabelTextNoSetLabel = nullptr;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -6,27 +6,11 @@
|
||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>478</width>
|
<width>653</width>
|
||||||
<height>347</height>
|
<height>655</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QGridLayout" name="gridLayout">
|
<layout class="QGridLayout" name="gridLayout">
|
||||||
<item row="0" column="0" colspan="2">
|
|
||||||
<widget class="PartResizerWidget" name="m_PartResizerWidget" native="true">
|
|
||||||
<property name="minimumSize">
|
|
||||||
<size>
|
|
||||||
<width>400</width>
|
|
||||||
<height>60</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
<property name="maximumSize">
|
|
||||||
<size>
|
|
||||||
<width>16777215</width>
|
|
||||||
<height>60</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="1" column="0" colspan="2">
|
<item row="1" column="0" colspan="2">
|
||||||
<spacer name="verticalSpacer">
|
<spacer name="verticalSpacer">
|
||||||
<property name="orientation">
|
<property name="orientation">
|
||||||
|
@ -43,6 +27,22 @@
|
||||||
</property>
|
</property>
|
||||||
</spacer>
|
</spacer>
|
||||||
</item>
|
</item>
|
||||||
|
<item row="0" column="0" colspan="2">
|
||||||
|
<widget class="PartResizerWidget" name="m_PartResizerWidget" native="true">
|
||||||
|
<property name="minimumSize">
|
||||||
|
<size>
|
||||||
|
<width>400</width>
|
||||||
|
<height>60</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
<property name="maximumSize">
|
||||||
|
<size>
|
||||||
|
<width>16777215</width>
|
||||||
|
<height>60</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
<item row="2" column="0">
|
<item row="2" column="0">
|
||||||
<widget class="QLabel" name="m_LabelRole">
|
<widget class="QLabel" name="m_LabelRole">
|
||||||
<property name="sizePolicy">
|
<property name="sizePolicy">
|
||||||
|
@ -106,10 +106,7 @@
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="3" column="1">
|
<item row="5" column="0">
|
||||||
<widget class="QComboBox" name="m_ComboFileSystem"/>
|
|
||||||
</item>
|
|
||||||
<item row="4" column="0">
|
|
||||||
<widget class="QLabel" name="m_LabelTextLabel">
|
<widget class="QLabel" name="m_LabelTextLabel">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string comment="@label">Label:</string>
|
<string comment="@label">Label:</string>
|
||||||
|
@ -122,7 +119,7 @@
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="4" column="1">
|
<item row="5" column="1">
|
||||||
<layout class="QVBoxLayout" name="verticalLayout">
|
<layout class="QVBoxLayout" name="verticalLayout">
|
||||||
<item>
|
<item>
|
||||||
<widget class="QLineEdit" name="m_EditLabel"/>
|
<widget class="QLineEdit" name="m_EditLabel"/>
|
||||||
|
@ -139,7 +136,7 @@
|
||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</item>
|
</item>
|
||||||
<item row="5" column="0">
|
<item row="6" column="0">
|
||||||
<widget class="QLabel" name="label_4">
|
<widget class="QLabel" name="label_4">
|
||||||
<property name="sizePolicy">
|
<property name="sizePolicy">
|
||||||
<sizepolicy hsizetype="Preferred" vsizetype="Expanding">
|
<sizepolicy hsizetype="Preferred" vsizetype="Expanding">
|
||||||
|
@ -155,14 +152,14 @@
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="5" column="1">
|
<item row="6" column="1">
|
||||||
<widget class="QLabel" name="m_LabelMinSize">
|
<widget class="QLabel" name="m_LabelMinSize">
|
||||||
<property name="textInteractionFlags">
|
<property name="textInteractionFlags">
|
||||||
<set>Qt::LinksAccessibleByMouse|Qt::TextSelectableByKeyboard|Qt::TextSelectableByMouse</set>
|
<set>Qt::LinksAccessibleByMouse|Qt::TextSelectableByKeyboard|Qt::TextSelectableByMouse</set>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="6" column="0">
|
<item row="7" column="0">
|
||||||
<widget class="QLabel" name="label_5">
|
<widget class="QLabel" name="label_5">
|
||||||
<property name="sizePolicy">
|
<property name="sizePolicy">
|
||||||
<sizepolicy hsizetype="Preferred" vsizetype="Expanding">
|
<sizepolicy hsizetype="Preferred" vsizetype="Expanding">
|
||||||
|
@ -178,14 +175,14 @@
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="6" column="1">
|
<item row="7" column="1">
|
||||||
<widget class="QLabel" name="m_LabelMaxSize">
|
<widget class="QLabel" name="m_LabelMaxSize">
|
||||||
<property name="textInteractionFlags">
|
<property name="textInteractionFlags">
|
||||||
<set>Qt::LinksAccessibleByMouse|Qt::TextSelectableByKeyboard|Qt::TextSelectableByMouse</set>
|
<set>Qt::LinksAccessibleByMouse|Qt::TextSelectableByKeyboard|Qt::TextSelectableByMouse</set>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="7" column="0">
|
<item row="8" column="0">
|
||||||
<widget class="QLabel" name="label">
|
<widget class="QLabel" name="label">
|
||||||
<property name="sizePolicy">
|
<property name="sizePolicy">
|
||||||
<sizepolicy hsizetype="Preferred" vsizetype="Expanding">
|
<sizepolicy hsizetype="Preferred" vsizetype="Expanding">
|
||||||
|
@ -204,7 +201,7 @@
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="7" column="1">
|
<item row="8" column="1">
|
||||||
<widget class="FormattedSpinBox" name="m_SpinFreeBefore">
|
<widget class="FormattedSpinBox" name="m_SpinFreeBefore">
|
||||||
<property name="sizePolicy">
|
<property name="sizePolicy">
|
||||||
<sizepolicy hsizetype="Minimum" vsizetype="Fixed">
|
<sizepolicy hsizetype="Minimum" vsizetype="Fixed">
|
||||||
|
@ -220,7 +217,7 @@
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="8" column="0">
|
<item row="9" column="0">
|
||||||
<widget class="QLabel" name="label_2">
|
<widget class="QLabel" name="label_2">
|
||||||
<property name="sizePolicy">
|
<property name="sizePolicy">
|
||||||
<sizepolicy hsizetype="Preferred" vsizetype="Expanding">
|
<sizepolicy hsizetype="Preferred" vsizetype="Expanding">
|
||||||
|
@ -239,7 +236,7 @@
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="8" column="1">
|
<item row="9" column="1">
|
||||||
<widget class="FormattedSpinBox" name="m_SpinCapacity">
|
<widget class="FormattedSpinBox" name="m_SpinCapacity">
|
||||||
<property name="minimum">
|
<property name="minimum">
|
||||||
<double>0.000000000000000</double>
|
<double>0.000000000000000</double>
|
||||||
|
@ -249,7 +246,7 @@
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="9" column="0">
|
<item row="10" column="0">
|
||||||
<widget class="QLabel" name="label_3">
|
<widget class="QLabel" name="label_3">
|
||||||
<property name="sizePolicy">
|
<property name="sizePolicy">
|
||||||
<sizepolicy hsizetype="Preferred" vsizetype="Expanding">
|
<sizepolicy hsizetype="Preferred" vsizetype="Expanding">
|
||||||
|
@ -268,7 +265,7 @@
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="9" column="1">
|
<item row="10" column="1">
|
||||||
<widget class="FormattedSpinBox" name="m_SpinFreeAfter">
|
<widget class="FormattedSpinBox" name="m_SpinFreeAfter">
|
||||||
<property name="minimum">
|
<property name="minimum">
|
||||||
<double>0.000000000000000</double>
|
<double>0.000000000000000</double>
|
||||||
|
@ -278,7 +275,7 @@
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="10" column="0" colspan="2">
|
<item row="11" column="0" colspan="2">
|
||||||
<spacer name="verticalSpacer_2">
|
<spacer name="verticalSpacer_2">
|
||||||
<property name="orientation">
|
<property name="orientation">
|
||||||
<enum>Qt::Vertical</enum>
|
<enum>Qt::Vertical</enum>
|
||||||
|
@ -294,6 +291,23 @@
|
||||||
</property>
|
</property>
|
||||||
</spacer>
|
</spacer>
|
||||||
</item>
|
</item>
|
||||||
|
<item row="3" column="1">
|
||||||
|
<layout class="QVBoxLayout" name="verticalLayout_2">
|
||||||
|
<item>
|
||||||
|
<widget class="QComboBox" name="m_ComboFileSystem"/>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QCheckBox" name="m_CheckBoxEncrypt">
|
||||||
|
<property name="toolTip">
|
||||||
|
<string>Set up encryption for this filesystem with LUKS. You will be asked to provide a passphrase.</string>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>Encrypt with LUKS</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
<customwidgets>
|
<customwidgets>
|
||||||
|
@ -313,7 +327,6 @@
|
||||||
<tabstop>m_RadioPrimary</tabstop>
|
<tabstop>m_RadioPrimary</tabstop>
|
||||||
<tabstop>m_RadioExtended</tabstop>
|
<tabstop>m_RadioExtended</tabstop>
|
||||||
<tabstop>m_RadioLogical</tabstop>
|
<tabstop>m_RadioLogical</tabstop>
|
||||||
<tabstop>m_ComboFileSystem</tabstop>
|
|
||||||
<tabstop>m_EditLabel</tabstop>
|
<tabstop>m_EditLabel</tabstop>
|
||||||
<tabstop>m_SpinFreeBefore</tabstop>
|
<tabstop>m_SpinFreeBefore</tabstop>
|
||||||
<tabstop>m_SpinCapacity</tabstop>
|
<tabstop>m_SpinCapacity</tabstop>
|
||||||
|
|
Loading…
Reference in New Issue