Added antialiasing
This commit is contained in:
parent
6dfe86335d
commit
e6bbaabde4
|
@ -95,7 +95,7 @@ namespace display {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else if(!pinConnections.empty()) {
|
||||||
auto pinConnection = pinConnections[0];
|
auto pinConnection = pinConnections[0];
|
||||||
if(auto busConnection = dynamic_cast<domain::BusConnectionInstance*>(pinConnection)) {
|
if(auto busConnection = dynamic_cast<domain::BusConnectionInstance*>(pinConnection)) {
|
||||||
menu.addSection(QString::fromStdString(busConnection->bus->name));
|
menu.addSection(QString::fromStdString(busConnection->bus->name));
|
||||||
|
|
|
@ -13,6 +13,8 @@ namespace display {
|
||||||
Schema::Schema() {
|
Schema::Schema() {
|
||||||
schema = nullptr;
|
schema = nullptr;
|
||||||
library = std::nullopt;
|
library = std::nullopt;
|
||||||
|
setRenderHint(QPainter::Antialiasing);
|
||||||
|
setAlignment(Qt::AlignCenter);
|
||||||
this->setScene(&scene);
|
this->setScene(&scene);
|
||||||
this->setAcceptDrops(true);
|
this->setAcceptDrops(true);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue