Tidying
This commit is contained in:
@@ -11,6 +11,9 @@
|
|||||||
|
|
||||||
namespace Bloom::DebugServer::Gdb
|
namespace Bloom::DebugServer::Gdb
|
||||||
{
|
{
|
||||||
|
/**
|
||||||
|
* GDB target descriptor.
|
||||||
|
*/
|
||||||
struct TargetDescriptor
|
struct TargetDescriptor
|
||||||
{
|
{
|
||||||
Targets::TargetDescriptor targetDescriptor;
|
Targets::TargetDescriptor targetDescriptor;
|
||||||
|
|||||||
@@ -4,6 +4,11 @@
|
|||||||
|
|
||||||
namespace Bloom::DebugServer
|
namespace Bloom::DebugServer
|
||||||
{
|
{
|
||||||
|
/**
|
||||||
|
* Every debug server must implement this interface.
|
||||||
|
*
|
||||||
|
* See documentation in src/DebugServer/README.md for more.
|
||||||
|
*/
|
||||||
class ServerInterface
|
class ServerInterface
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|||||||
@@ -71,9 +71,9 @@ namespace Bloom
|
|||||||
*/
|
*/
|
||||||
static inline std::string compiledResourcesPath() {
|
static inline std::string compiledResourcesPath() {
|
||||||
#ifdef BLOOM_COMPILED_RESOURCES_PATH_OVERRIDE
|
#ifdef BLOOM_COMPILED_RESOURCES_PATH_OVERRIDE
|
||||||
return std::string(BLOOM_COMPILED_RESOURCES_PATH_OVERRIDE);
|
return {BLOOM_COMPILED_RESOURCES_PATH_OVERRIDE};
|
||||||
#else
|
#else
|
||||||
return std::string(":/compiled");
|
return {":/compiled"};
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -87,9 +87,9 @@ namespace Bloom
|
|||||||
*/
|
*/
|
||||||
static inline std::string homeDomainName() {
|
static inline std::string homeDomainName() {
|
||||||
#ifdef BLOOM_HOME_DOMAIN_NAME_OVERRIDE
|
#ifdef BLOOM_HOME_DOMAIN_NAME_OVERRIDE
|
||||||
return std::string(BLOOM_HOME_DOMAIN_NAME_OVERRIDE);
|
return {BLOOM_HOME_DOMAIN_NAME_OVERRIDE};
|
||||||
#else
|
#else
|
||||||
return std::string("https://bloom.oscillate.io");
|
return {"https://bloom.oscillate.io"};
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -6,8 +6,6 @@ namespace Bloom::Widgets
|
|||||||
const std::map<std::size_t, std::vector<ByteItem*>>& byteItemsByRowIndex
|
const std::map<std::size_t, std::vector<ByteItem*>>& byteItemsByRowIndex
|
||||||
) {
|
) {
|
||||||
static constexpr int leftMargin = 10;
|
static constexpr int leftMargin = 10;
|
||||||
static const auto margins = QMargins(0, 10, 0, 0);
|
|
||||||
|
|
||||||
const auto newRowCount = byteItemsByRowIndex.size();
|
const auto newRowCount = byteItemsByRowIndex.size();
|
||||||
const auto layoutItemMaxIndex = static_cast<int>(this->addressItemsByRowIndex.size() - 1);
|
const auto layoutItemMaxIndex = static_cast<int>(this->addressItemsByRowIndex.size() - 1);
|
||||||
|
|
||||||
|
|||||||
@@ -15,17 +15,17 @@ namespace Bloom::Widgets
|
|||||||
static constexpr int WIDTH = 75;
|
static constexpr int WIDTH = 75;
|
||||||
static constexpr int HEIGHT = ByteItem::HEIGHT;
|
static constexpr int HEIGHT = ByteItem::HEIGHT;
|
||||||
|
|
||||||
ByteAddressItem(QGraphicsItem* parent): QGraphicsItem(parent) {};
|
explicit ByteAddressItem(QGraphicsItem* parent): QGraphicsItem(parent) {};
|
||||||
|
|
||||||
void setAddressHex(const QString& address);
|
void setAddressHex(const QString& address);
|
||||||
|
|
||||||
[[nodiscard]] QRectF boundingRect() const override {
|
[[nodiscard]] QRectF boundingRect() const override {
|
||||||
return QRectF(
|
return {
|
||||||
0,
|
0,
|
||||||
0,
|
0,
|
||||||
ByteAddressItem::WIDTH,
|
ByteAddressItem::WIDTH,
|
||||||
ByteAddressItem::HEIGHT
|
ByteAddressItem::HEIGHT
|
||||||
);
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
void paint(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget) override;
|
void paint(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget) override;
|
||||||
|
|||||||
Reference in New Issue
Block a user