mirror of
https://github.com/cmclark00/retro-imager.git
synced 2025-05-18 07:55:21 +01:00
Qt/QML edition
This commit is contained in:
commit
d7b361ba44
2168 changed files with 721948 additions and 0 deletions
17
drivelistitem.cpp
Normal file
17
drivelistitem.cpp
Normal file
|
@ -0,0 +1,17 @@
|
|||
/*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
* Copyright (C) 2020 Raspberry Pi (Trading) Limited
|
||||
*/
|
||||
|
||||
#include "drivelistitem.h"
|
||||
|
||||
DriveListItem::DriveListItem(QString device, QString description, quint64 size, bool isUsb, bool isScsi, QStringList mountpoints, QObject *parent)
|
||||
: QObject(parent), _device(device), _description(description), _mountpoints(mountpoints), _size(size), _isUsb(isUsb), _isScsi(isScsi)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
int DriveListItem::sizeInGb()
|
||||
{
|
||||
return _size / 1000000000;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue