[partition] Tighten up types

Don't return the generic Abstract model for bootloader, but
the subclass pointer, so that consumers can use the convenience
API on the subclass.
This commit is contained in:
Adriaan de Groot 2021-05-25 13:23:28 +02:00
parent d0276fd25f
commit 43c172f54d
2 changed files with 2 additions and 2 deletions

View File

@ -340,7 +340,7 @@ PartitionCoreModule::deviceModel() const
return m_deviceModel;
}
QAbstractItemModel*
BootLoaderModel*
PartitionCoreModule::bootLoaderModel() const
{
return m_bootLoaderModel;

View File

@ -122,7 +122,7 @@ public:
* The single BootLoaderModel instance belongs to the PCM.
* @return the BootLoaderModel.
*/
QAbstractItemModel* bootLoaderModel() const;
BootLoaderModel* bootLoaderModel() const;
void createPartitionTable( Device* device, PartitionTable::TableType type );