Warning fixage (init list order, lossy cast, Q_UNUSED).
This commit is contained in:
parent
c1e535a8e8
commit
90c06bd733
@ -68,20 +68,20 @@
|
|||||||
*/
|
*/
|
||||||
ChoicePage::ChoicePage( QWidget* parent )
|
ChoicePage::ChoicePage( QWidget* parent )
|
||||||
: QWidget( parent )
|
: QWidget( parent )
|
||||||
, m_choice( NoChoice )
|
|
||||||
, m_nextEnabled( false )
|
, m_nextEnabled( false )
|
||||||
, m_core( nullptr )
|
, m_core( nullptr )
|
||||||
|
, m_choice( NoChoice )
|
||||||
|
, m_isEfi( false )
|
||||||
, m_grp( nullptr )
|
, m_grp( nullptr )
|
||||||
, m_alongsideButton( nullptr )
|
, m_alongsideButton( nullptr )
|
||||||
, m_eraseButton( nullptr )
|
, m_eraseButton( nullptr )
|
||||||
, m_replaceButton( nullptr )
|
, m_replaceButton( nullptr )
|
||||||
, m_somethingElseButton( nullptr )
|
, m_somethingElseButton( nullptr )
|
||||||
, m_deviceInfoWidget( nullptr )
|
, m_deviceInfoWidget( nullptr )
|
||||||
, m_lastSelectedDeviceIndex( -1 )
|
|
||||||
, m_isEfi( false )
|
|
||||||
, m_beforePartitionBarsView( nullptr )
|
, m_beforePartitionBarsView( nullptr )
|
||||||
, m_beforePartitionLabelsView( nullptr )
|
, m_beforePartitionLabelsView( nullptr )
|
||||||
, m_bootloaderComboBox( nullptr )
|
, m_bootloaderComboBox( nullptr )
|
||||||
|
, m_lastSelectedDeviceIndex( -1 )
|
||||||
{
|
{
|
||||||
setupUi( this );
|
setupUi( this );
|
||||||
|
|
||||||
@ -468,7 +468,7 @@ ChoicePage::doAlongsideSetupSplitter( const QModelIndex& current,
|
|||||||
->value( "requiredStorageGB" )
|
->value( "requiredStorageGB" )
|
||||||
.toDouble();
|
.toDouble();
|
||||||
|
|
||||||
qint64 requiredStorageB = ( requiredStorageGB + 0.1 + 2.0 ) * 1024 * 1024 * 1024;
|
qint64 requiredStorageB = qRound64( requiredStorageGB + 0.1 + 2.0 ) * 1024 * 1024 * 1024;
|
||||||
|
|
||||||
m_afterPartitionSplitterWidget->setSplitPartition(
|
m_afterPartitionSplitterWidget->setSplitPartition(
|
||||||
part->partitionPath(),
|
part->partitionPath(),
|
||||||
@ -877,8 +877,11 @@ ChoicePage::updateActionChoicePreview( ChoicePage::Choice choice )
|
|||||||
layout->addWidget( sizeLabel );
|
layout->addWidget( sizeLabel );
|
||||||
sizeLabel->setWordWrap( true );
|
sizeLabel->setWordWrap( true );
|
||||||
connect( m_afterPartitionSplitterWidget, &PartitionSplitterWidget::partitionResized,
|
connect( m_afterPartitionSplitterWidget, &PartitionSplitterWidget::partitionResized,
|
||||||
this, [ this, sizeLabel ]( const QString& path, qint64 size, qint64 sizeNext )
|
this, [ this, sizeLabel ]( const QString& path,
|
||||||
|
qint64 size,
|
||||||
|
qint64 sizeNext )
|
||||||
{
|
{
|
||||||
|
Q_UNUSED( path )
|
||||||
sizeLabel->setText( tr( "%1 will be shrunk to %2MB and a new "
|
sizeLabel->setText( tr( "%1 will be shrunk to %2MB and a new "
|
||||||
"%3MB partition will be created for %4." )
|
"%3MB partition will be created for %4." )
|
||||||
.arg( m_beforePartitionBarsView->selectionModel()->currentIndex().data().toString() )
|
.arg( m_beforePartitionBarsView->selectionModel()->currentIndex().data().toString() )
|
||||||
|
Loading…
Reference in New Issue
Block a user