Updated translations + bugfixes
This commit is contained in:
1 parent
1759adf25a
commit
f66fc1db26
20 files changed
+157
-158
No files matched your search
@@ -172,7 +172,7 @@ namespace domain {
|
||||
if(memoryReference != nullopt) {
|
||||
if(memoryInstances.count(*memoryReference) == 0) {
|
||||
context.attributes["memoryReference"] = domain::Value::fromString(memoryReference.value());
|
||||
auto message = populateMessage("There isn't a memory instance '{memoryReference}'", context);
|
||||
auto message = populateMessage("Ne postoji memorijska komponenta '{memoryReference}'", context);
|
||||
errors.emplace_back(component.get(), nullptr, Action::ERROR, message);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,7 +1,13 @@
|
||||
#include "display.h"
|
||||
|
||||
#include <QBrush>
|
||||
#include <QPen>
|
||||
|
||||
namespace domain {
|
||||
|
||||
QBrush busBrush(QColor::fromRgb(200, 200, 200));
|
||||
QPen busPen(QColor::fromRgb(200, 200, 200));
|
||||
|
||||
Display::Display(std::vector<ui::Item> items) : items(items) {}
|
||||
|
||||
void Display::render(QGraphicsItemGroup *group) {
|
||||
@@ -39,11 +45,16 @@ namespace domain {
|
||||
}
|
||||
|
||||
void ui::Bus::render(QGraphicsItemGroup *group, int size) {
|
||||
int _w = w, _h = h;
|
||||
if (orientation == HORIZONTAL) {
|
||||
group->addToGroup(new QGraphicsRectItem(x, y, size, h));
|
||||
_w = size;
|
||||
} else {
|
||||
group->addToGroup(new QGraphicsRectItem(x, y, w, size));
|
||||
_h = size;
|
||||
}
|
||||
auto rect = new QGraphicsRectItem(x, y, _w, _h);
|
||||
rect->setBrush(busBrush);
|
||||
rect->setPen(busPen);
|
||||
group->addToGroup(rect);
|
||||
}
|
||||
|
||||
int ui::Bus::getDefaultSize() {
|
||||
|
||||
Reference in new issue
Block a user