mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-30 10:55:37 -04:00
Improve debug output in PartitionBarsView.
This commit is contained in:
parent
d6676b2245
commit
9e186190fc
1 changed files with 9 additions and 1 deletions
|
@ -22,6 +22,7 @@
|
|||
#include <core/ColorUtils.h>
|
||||
|
||||
#include <kpmcore/core/device.h>
|
||||
#include <kpmcore/core/partition.h>
|
||||
|
||||
#include <utils/CalamaresUtilsGui.h>
|
||||
#include <utils/Logger.h>
|
||||
|
@ -66,7 +67,14 @@ PartitionBarsView::PartitionBarsView( QWidget* parent )
|
|||
connect( this, &PartitionBarsView::clicked,
|
||||
this, [=]( const QModelIndex& index )
|
||||
{
|
||||
cDebug() << "Clicked row" << index.row();
|
||||
Partition* selectedPartition =
|
||||
(Partition *)( index.data( PartitionModel::PartitionPtrRole )
|
||||
.value< void* >() );
|
||||
cDebug() << "Clicked row" << index.row()
|
||||
<< "\npath: " << selectedPartition->partitionPath()
|
||||
<< "\nfirstSector:" << selectedPartition->firstSector()
|
||||
<< "\nlastSector: " << selectedPartition->lastSector();
|
||||
|
||||
} );
|
||||
setMouseTracking( true );
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue