Fix minor EBN issues
This commit is contained in:
parent
551b53ea9c
commit
dcc665cc27
|
@ -32,7 +32,7 @@ class QComboBox;
|
|||
class AdvancedPageWidget : public QWidget, public Ui::ConfigurePageAdvanced
|
||||
{
|
||||
public:
|
||||
AdvancedPageWidget(QWidget* parent);
|
||||
explicit AdvancedPageWidget(QWidget* parent);
|
||||
|
||||
public:
|
||||
QComboBox& comboBackend() {
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
class FileSystemColorsPageWidget : public QWidget, public Ui::ConfigurePageFileSystemColors
|
||||
{
|
||||
public:
|
||||
FileSystemColorsPageWidget(QWidget* parent);
|
||||
explicit FileSystemColorsPageWidget(QWidget* parent);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
@ -31,7 +31,7 @@ class QString;
|
|||
class GeneralPageWidget : public QWidget, public Ui::ConfigurePageGeneral
|
||||
{
|
||||
public:
|
||||
GeneralPageWidget(QWidget* parent);
|
||||
explicit GeneralPageWidget(QWidget* parent);
|
||||
|
||||
public:
|
||||
QComboBox& comboDefaultFileSystem() {
|
||||
|
|
|
@ -27,7 +27,7 @@
|
|||
class ApplyProgressDetailsWidget : public QWidget, public Ui::ApplyProgressDetailsWidgetBase
|
||||
{
|
||||
public:
|
||||
ApplyProgressDetailsWidget(QWidget* parent) : QWidget(parent) {
|
||||
explicit ApplyProgressDetailsWidget(QWidget* parent) : QWidget(parent) {
|
||||
setupUi(this);
|
||||
}
|
||||
|
||||
|
|
|
@ -27,7 +27,7 @@
|
|||
class ApplyProgressDialogWidget : public QWidget, public Ui::ApplyProgressDialogWidgetBase
|
||||
{
|
||||
public:
|
||||
ApplyProgressDialogWidget(QWidget* parent);
|
||||
explicit ApplyProgressDialogWidget(QWidget* parent);
|
||||
|
||||
public:
|
||||
QTreeWidget& treeTasks() {
|
||||
|
|
|
@ -28,7 +28,7 @@
|
|||
class CreatePartitionTableWidget : public QWidget, public Ui::CreatePartitionTableWidgetBase
|
||||
{
|
||||
public:
|
||||
CreatePartitionTableWidget(QWidget* parent);
|
||||
explicit CreatePartitionTableWidget(QWidget* parent);
|
||||
|
||||
public:
|
||||
QRadioButton& radioMSDOS() {
|
||||
|
|
|
@ -71,7 +71,7 @@ void CreateVolumeGroupDialog::setupDialog()
|
|||
if (toBeDeleted)
|
||||
continue;
|
||||
|
||||
if (!p.isLuks() && p.vgName() == QString() && !LvmDevice::s_DirtyPVs.contains(p.partition()))
|
||||
if (!p.isLuks() && p.vgName().isEmpty() && !LvmDevice::s_DirtyPVs.contains(p.partition()))
|
||||
dialogWidget().listPV().addPartition(*p.partition(), false);
|
||||
}
|
||||
|
||||
|
|
|
@ -29,7 +29,7 @@ class PartTableWidget;
|
|||
class DevicePropsWidget : public QWidget, public Ui::DevicePropsWidgetBase
|
||||
{
|
||||
public:
|
||||
DevicePropsWidget(QWidget* parent);
|
||||
explicit DevicePropsWidget(QWidget* parent);
|
||||
|
||||
public:
|
||||
PartTableWidget& partTableWidget() {
|
||||
|
|
|
@ -38,7 +38,7 @@ class FileSystemSupportDialog : public QDialog
|
|||
Q_DISABLE_COPY(FileSystemSupportDialog)
|
||||
|
||||
public:
|
||||
FileSystemSupportDialog(QWidget* parent);
|
||||
explicit FileSystemSupportDialog(QWidget* parent);
|
||||
~FileSystemSupportDialog();
|
||||
|
||||
public:
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
class FileSystemSupportDialogWidget : public QWidget, public Ui::FileSystemSupportDialogWidgetBase
|
||||
{
|
||||
public:
|
||||
FileSystemSupportDialogWidget(QWidget* parent);
|
||||
explicit FileSystemSupportDialogWidget(QWidget* parent);
|
||||
|
||||
public:
|
||||
QTreeWidget& tree() {
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
class FormattedSpinBox : public QDoubleSpinBox
|
||||
{
|
||||
public:
|
||||
FormattedSpinBox(QWidget* parent = nullptr) : QDoubleSpinBox(parent) {}
|
||||
explicit FormattedSpinBox(QWidget* parent = nullptr) : QDoubleSpinBox(parent) {}
|
||||
|
||||
public:
|
||||
QString textFromValue(double value) const override;
|
||||
|
|
|
@ -39,7 +39,7 @@ class InfoPane : public QWidget
|
|||
Q_DISABLE_COPY(InfoPane)
|
||||
|
||||
public:
|
||||
InfoPane(QWidget* parent = nullptr);
|
||||
explicit InfoPane(QWidget* parent = nullptr);
|
||||
|
||||
public:
|
||||
void showPartition(Qt::DockWidgetArea area, const Partition& p);
|
||||
|
|
|
@ -38,7 +38,7 @@ class ListDevices : public QWidget, public Ui::ListDevicesBase
|
|||
Q_DISABLE_COPY(ListDevices)
|
||||
|
||||
public:
|
||||
ListDevices(QWidget* parent = nullptr);
|
||||
explicit ListDevices(QWidget* parent = nullptr);
|
||||
|
||||
Q_SIGNALS:
|
||||
void selectionChanged(const QString& device_node);
|
||||
|
|
|
@ -38,7 +38,7 @@ class ListOperations : public QWidget, public Ui::ListOperationsBase
|
|||
Q_DISABLE_COPY(ListOperations)
|
||||
|
||||
public:
|
||||
ListOperations(QWidget* parent = nullptr);
|
||||
explicit ListOperations(QWidget* parent = nullptr);
|
||||
|
||||
public:
|
||||
void setActionCollection(KActionCollection* coll) {
|
||||
|
|
|
@ -46,7 +46,7 @@ class ListPhysicalVolumes : public QWidget, public Ui::ListPhysicalVolumesBase
|
|||
Q_DISABLE_COPY(ListPhysicalVolumes)
|
||||
|
||||
public:
|
||||
ListPhysicalVolumes(QWidget* parent = nullptr);
|
||||
explicit ListPhysicalVolumes(QWidget* parent = nullptr);
|
||||
|
||||
void addPartition(const Partition& p, bool checked);
|
||||
|
||||
|
|
|
@ -45,7 +45,7 @@ class PartitionManagerWidget : public QWidget, Ui::PartitionManagerWidgetBase
|
|||
Q_DISABLE_COPY(PartitionManagerWidget)
|
||||
|
||||
public:
|
||||
PartitionManagerWidget(QWidget* parent = nullptr);
|
||||
explicit PartitionManagerWidget(QWidget* parent = nullptr);
|
||||
virtual ~PartitionManagerWidget();
|
||||
|
||||
Q_SIGNALS:
|
||||
|
|
|
@ -30,7 +30,7 @@
|
|||
class PartPropsWidget : public QWidget, public Ui::PartPropsWidgetBase
|
||||
{
|
||||
public:
|
||||
PartPropsWidget(QWidget* parent) : QWidget(parent) {
|
||||
explicit PartPropsWidget(QWidget* parent) : QWidget(parent) {
|
||||
setupUi(this);
|
||||
|
||||
m_PartWidget->setFileSystemColorCode(GuiHelpers::fileSystemColorCodesFromSettings());
|
||||
|
|
|
@ -38,7 +38,7 @@ class PartTableWidget : public PartWidgetBase
|
|||
Q_DISABLE_COPY(PartTableWidget)
|
||||
|
||||
public:
|
||||
PartTableWidget(QWidget* parent);
|
||||
explicit PartTableWidget(QWidget* parent);
|
||||
qint32 borderWidth() const override {
|
||||
return 0; /**< @return border width */
|
||||
}
|
||||
|
|
|
@ -73,7 +73,7 @@ void ResizeVolumeGroupDialog::setupDialog()
|
|||
continue;
|
||||
if (p.vgName() == device()->name())
|
||||
dialogWidget().listPV().addPartition(*p.partition(), true);
|
||||
else if (p.vgName() == QString() && !LvmDevice::s_DirtyPVs.contains(p.partition())) // TODO: Remove LVM PVs in current VG
|
||||
else if (p.vgName().isEmpty() && !LvmDevice::s_DirtyPVs.contains(p.partition())) // TODO: Remove LVM PVs in current VG
|
||||
dialogWidget().listPV().addPartition(*p.partition(), false);
|
||||
}
|
||||
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
class ScanProgressDialog : public QProgressDialog
|
||||
{
|
||||
public:
|
||||
ScanProgressDialog(QWidget* parent);
|
||||
explicit ScanProgressDialog(QWidget* parent);
|
||||
|
||||
void setProgress(int p) {
|
||||
setValue(p);
|
||||
|
|
|
@ -29,7 +29,7 @@
|
|||
class SizeDetailsWidget : public QWidget, public Ui::SizeDetailsWidgetBase
|
||||
{
|
||||
public:
|
||||
SizeDetailsWidget(QWidget* parent);
|
||||
explicit SizeDetailsWidget(QWidget* parent);
|
||||
|
||||
public:
|
||||
QDoubleSpinBox& spinFirstSector() {
|
||||
|
|
|
@ -30,7 +30,7 @@ class QPoint;
|
|||
class SmartDialogWidget : public QWidget, public Ui::SmartDialogWidgetBase
|
||||
{
|
||||
public:
|
||||
SmartDialogWidget(QWidget* parent);
|
||||
explicit SmartDialogWidget(QWidget* parent);
|
||||
~SmartDialogWidget();
|
||||
|
||||
public:
|
||||
|
|
|
@ -35,7 +35,7 @@ class TreeLog: public QWidget, public Ui::TreeLogBase
|
|||
Q_DISABLE_COPY(TreeLog)
|
||||
|
||||
public:
|
||||
TreeLog(QWidget* parent = nullptr);
|
||||
explicit TreeLog(QWidget* parent = nullptr);
|
||||
~TreeLog();
|
||||
|
||||
public:
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
class VolumeGroupWidget : public QWidget, public Ui::VolumeGroupWidgetBase
|
||||
{
|
||||
public:
|
||||
VolumeGroupWidget(QWidget* parent) :
|
||||
explicit VolumeGroupWidget(QWidget* parent) :
|
||||
QWidget(parent), Ui::VolumeGroupWidgetBase()
|
||||
{
|
||||
setupUi(this);
|
||||
|
|
Loading…
Reference in New Issue