33 QHBoxLayout* layout =
new QHBoxLayout();
36 QGridLayout* frameLayout =
new QGridLayout();
47 mFrameSlider->setStyleSheet(
"border-top-right-radius: 0px; border-bottom-right-radius: 0px;");
52 QHBoxLayout* operationLayout =
new QHBoxLayout();
57 mStartSim->setStyleSheet(
"padding: 6px;");
58 mNextStep->setStyleSheet(
"padding: 6px;");
59 mResetSim->setStyleSheet(
"padding: 6px;");
61 mStartSim->setShortcut(QKeySequence(Qt::Key_Space));
63 mStartIcon =
new QPixmap(QString::fromStdString(getAssetPath() +
"icon/ToolBarIco/AnimationSlider/Start.png"));
64 mPauseIcon =
new QPixmap(QString::fromStdString(getAssetPath() +
"icon/ToolBarIco/AnimationSlider/Pause.png"));
65 mResetIcon =
new QPixmap(QString::fromStdString(getAssetPath() +
"icon/ToolBarIco/AnimationSlider/Reset.png"));
66 mFinishIcon =
new QPixmap(QString::fromStdString(getAssetPath() +
"icon/ToolBarIco/AnimationSlider/Finish.png"));
67 mNextStepIcon =
new QPixmap(QString::fromStdString(getAssetPath() +
"icon/ToolBarIco/AnimationSlider/NextFrame.png"));
83 mPersistent->setToolTip(
"Run the simulation permanently");
90 operationLayout->setSpacing(0);
94 layout->addLayout(frameLayout, 10);
96 layout->addLayout(operationLayout, 1);
97 layout->setSpacing(0);
194 Label->setScaledContents(
true);
195 Label->setStyleSheet(
"background: transparent;");
196 Label->setPixmap(*Icon);
197 Label->setFixedSize(size,size);
199 QHBoxLayout* iconLayout =
new QHBoxLayout();
200 iconLayout->addWidget(Label);
201 iconLayout->setSizeConstraint(QLayout::SetFixedSize);
202 iconLayout->setContentsMargins(0, 0, 0, 0);
203 btn->setLayout(iconLayout);