Skip to content

Commit

Permalink
Update renderinstancewidget.cpp
Browse files Browse the repository at this point in the history
Update UI.

Ref: #220
  • Loading branch information
rodlie committed Aug 15, 2024
1 parent 3d051cf commit 20ae18b
Showing 1 changed file with 14 additions and 9 deletions.
23 changes: 14 additions & 9 deletions src/app/GUI/RenderWidgets/renderinstancewidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,8 @@ void RenderInstanceWidget::iniGUI()
//renderSettingsLabelWidget->setObjectName("darkWidget");
QVBoxLayout *renderSettingsLayout = new QVBoxLayout(renderSettingsLabelWidget);

mRenderSettingsButton = new QPushButton(tr("Scene ..."));
mRenderSettingsButton = new QPushButton(QIcon::fromTheme("sequence"),
tr("Scene Properties"));
mRenderSettingsButton->setFocusPolicy(Qt::NoFocus);
mRenderSettingsButton->setObjectName("renderSettings");
mRenderSettingsButton->setSizePolicy(QSizePolicy::Preferred,
Expand All @@ -121,12 +122,15 @@ void RenderInstanceWidget::iniGUI()
QVBoxLayout *outputSettingsLayout = new QVBoxLayout(outputSettingsLabelWidget);

mOutputSettingsProfilesButton = new OutputProfilesListButton(this);
mOutputSettingsProfilesButton->setObjectName("FlatButton");
//mOutputSettingsProfilesButton->setObjectName("FlatButton");
mOutputSettingsProfilesButton->setFocusPolicy(Qt::NoFocus);
mOutputSettingsProfilesButton->setSizePolicy(QSizePolicy::Expanding,
QSizePolicy::Preferred);
connect(mOutputSettingsProfilesButton, &OutputProfilesListButton::profileSelected,
this, &RenderInstanceWidget::outputSettingsProfileSelected);

mOutputSettingsButton = new QPushButton(tr("Output ..."));
mOutputSettingsButton = new QPushButton(QIcon::fromTheme("file_movie"),
tr("Edit Profile"));
mOutputSettingsButton->setFocusPolicy(Qt::NoFocus);
mOutputSettingsButton->setSizePolicy(QSizePolicy::Expanding,
QSizePolicy::Preferred);
Expand All @@ -143,10 +147,10 @@ void RenderInstanceWidget::iniGUI()
outputSettingsLayout->addWidget(outputSettingsOptWidget);
outputSettingsLayout->addWidget(mOutputSettingsDisplayWidget);

mOutputDestinationButton = new QPushButton(QIcon::fromTheme("dots"),
mOutputDestinationButton = new QPushButton(QIcon::fromTheme("disk_drive"),
QString(),
this);
mOutputDestinationButton->setObjectName("FlatButton");
//mOutputDestinationButton->setObjectName("FlatButton");
mOutputDestinationButton->setFocusPolicy(Qt::NoFocus);
mOutputDestinationButton->setToolTip(tr("Select output file"));
connect(mOutputDestinationButton, &QPushButton::pressed,
Expand All @@ -155,7 +159,7 @@ void RenderInstanceWidget::iniGUI()
mPlayButton = new QPushButton(QIcon::fromTheme("play"),
QString(),
this);
mPlayButton->setObjectName("FlatButton");
//mPlayButton->setObjectName("FlatButton");
mPlayButton->setFocusPolicy(Qt::NoFocus);
mPlayButton->setToolTip(tr("Open in default application"));
connect(mPlayButton, &QPushButton::pressed,
Expand All @@ -178,8 +182,8 @@ void RenderInstanceWidget::iniGUI()
Q_UNUSED(size)
mRenderSettingsButton->setFixedHeight(eSizesUI::button);
mOutputSettingsButton->setFixedHeight(eSizesUI::button);
mOutputSettingsProfilesButton->setFixedSize(QSize(eSizesUI::button, eSizesUI::button));
mOutputDestinationButton->setFixedSize(QSize(eSizesUI::button, eSizesUI::button));
mOutputSettingsProfilesButton->setFixedHeight(eSizesUI::button);
mOutputDestinationButton->setFixedHeight(eSizesUI::button);
mPlayButton->setFixedSize(QSize(eSizesUI::button, eSizesUI::button));
mOutputDestinationLineEdit->setFixedHeight(eSizesUI::button);
});
Expand Down Expand Up @@ -451,7 +455,8 @@ void RenderInstanceWidget::updateRenderSettings()
OutputProfilesListButton::OutputProfilesListButton(RenderInstanceWidget *parent) :
QPushButton(parent) {
mParentWidget = parent;
setIcon(QIcon::fromTheme("dots"));
setText(tr("Profiles"));
setIcon(QIcon::fromTheme("file_movie"));
setToolTip(tr("Select output profile"));
}

Expand Down

0 comments on commit 20ae18b

Please sign in to comment.