[partition] Convert ReplaceWidget to use enum
Add a tag-class parameter, to demonstrate that the ReplaceWidget class is never used.
This commit is contained in:
parent
8c8f2a14b6
commit
8b29acfc59
@ -32,11 +32,12 @@
|
||||
using CalamaresUtils::Partition::untranslatedFS;
|
||||
using CalamaresUtils::Partition::userVisibleFS;
|
||||
|
||||
ReplaceWidget::ReplaceWidget( PartitionCoreModule* core, QComboBox* devicesComboBox, QWidget* parent )
|
||||
ReplaceWidget::ReplaceWidget( Nurble n, Config *config, PartitionCoreModule* core, QComboBox* devicesComboBox, QWidget* parent )
|
||||
: QWidget( parent )
|
||||
, m_ui( new Ui_ReplaceWidget )
|
||||
, m_core( core )
|
||||
, m_isEfi( false )
|
||||
, m_luksFsType( config->luksFileSystemType())
|
||||
{
|
||||
m_ui->setupUi( this );
|
||||
|
||||
|
@ -12,21 +12,27 @@
|
||||
#ifndef REPLACEWIDGET_H
|
||||
#define REPLACEWIDGET_H
|
||||
|
||||
#include "Config.h"
|
||||
|
||||
#include "utils/CalamaresUtilsGui.h"
|
||||
|
||||
#include <QScopedPointer>
|
||||
#include <QWidget>
|
||||
|
||||
class Ui_ReplaceWidget;
|
||||
class QComboBox;
|
||||
class Config;
|
||||
class PartitionCoreModule;
|
||||
class Partition;
|
||||
class Ui_ReplaceWidget;
|
||||
|
||||
class QComboBox;
|
||||
|
||||
struct TotallyBogus {};
|
||||
|
||||
class ReplaceWidget : public QWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit ReplaceWidget( PartitionCoreModule* core, QComboBox* devicesComboBox, QWidget* parent = nullptr );
|
||||
explicit ReplaceWidget( TotallyBogus n, Config *config, PartitionCoreModule* core, QComboBox* devicesComboBox, QWidget* parent = nullptr );
|
||||
virtual ~ReplaceWidget() override;
|
||||
|
||||
bool isNextEnabled() const;
|
||||
@ -52,6 +58,7 @@ private:
|
||||
bool m_nextEnabled;
|
||||
|
||||
bool m_isEfi;
|
||||
Config::LuksGeneration m_luksFsType;
|
||||
|
||||
void updateFromCurrentDevice( QComboBox* devicesComboBox );
|
||||
void onPartitionViewActivated();
|
||||
|
Loading…
Reference in New Issue
Block a user