mirror of
https://github.com/AxioDL/amuse.git
synced 2025-12-09 13:37:47 +00:00
Massive fmtlib refactor
This commit is contained in:
@@ -105,7 +105,7 @@ CommandWidget::CommandWidget(QWidget* parent, amuse::SoundMacro::ICmd* cmd, amus
|
||||
QFont titleFont = m_titleLabel.font();
|
||||
titleFont.setWeight(QFont::Bold);
|
||||
m_titleLabel.setFont(titleFont);
|
||||
m_titleLabel.setForegroundRole(QPalette::Background);
|
||||
m_titleLabel.setForegroundRole(QPalette::Window);
|
||||
m_titleLabel.setContentsMargins(46, 0, 0, 0);
|
||||
m_titleLabel.setFixedHeight(20);
|
||||
m_numberText.setTextOption(QTextOption(Qt::AlignRight));
|
||||
@@ -351,7 +351,7 @@ public:
|
||||
case amuse::SoundMacro::CmdIntrospection::Field::Type::SoundMacroStep:
|
||||
case amuse::SoundMacro::CmdIntrospection::Field::Type::TableId:
|
||||
case amuse::SoundMacro::CmdIntrospection::Field::Type::SampleId:
|
||||
m_undoVal = amuse::AccessField<amuse::SoundMacroIdDNA<athena::Little>>(m_cmd, m_field).id;
|
||||
m_undoVal = amuse::AccessField<amuse::SoundMacroIdDNA<athena::Little>>(m_cmd, m_field).id.id;
|
||||
amuse::AccessField<amuse::SoundMacroIdDNA<athena::Little>>(m_cmd, m_field).id = uint16_t(m_redoVal);
|
||||
break;
|
||||
default:
|
||||
@@ -430,7 +430,7 @@ void CommandWidget::paintEvent(QPaintEvent* event) {
|
||||
QPoint points[] = {
|
||||
{1, 20}, {1, 99}, {width() - 1, 99}, {width() - 1, 1}, {20, 1}, {1, 20},
|
||||
};
|
||||
painter.setBrush(palette().brush(QPalette::Background));
|
||||
painter.setBrush(palette().brush(QPalette::Window));
|
||||
painter.drawPolygon(points, 6);
|
||||
painter.setPen(QPen(QColor(127, 127, 127), 2.0));
|
||||
painter.drawPolyline(points, 6);
|
||||
@@ -445,7 +445,7 @@ void CommandWidget::paintEvent(QPaintEvent* event) {
|
||||
rotate.rotate(-45.0).translate(-15, 8);
|
||||
painter.setTransform(rotate);
|
||||
painter.setFont(m_numberFont);
|
||||
painter.setPen(palette().color(QPalette::Background));
|
||||
painter.setPen(palette().color(QPalette::Window));
|
||||
painter.drawStaticText(0, 0, m_numberText);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user