[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.
main
Adriaan de Groot 4 years ago
parent d0276fd25f
commit 43c172f54d

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

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

Loading…
Cancel
Save