TerminalHeaderBar: Put icon on the left

wilder-portage
Mariusz Glebocki 7 years ago committed by Kurt Hindenburg
parent 11608cdf19
commit 3643dae2b3
  1. 6
      src/TerminalHeaderBar.cpp

@ -61,6 +61,8 @@ TerminalHeaderBar::TerminalHeaderBar(QWidget *parent)
m_terminalTitle->setFont(QApplication::font());
m_terminalIcon = new QLabel(this);
m_terminalIcon->setAlignment(Qt::AlignCenter);
m_terminalIcon->setFixedSize(m_toggleExpandedMode->sizeHint());
m_terminalActivity = new QLabel(this);
m_boxLayout = new QBoxLayout(QBoxLayout::LeftToRight);
@ -68,11 +70,11 @@ TerminalHeaderBar::TerminalHeaderBar(QWidget *parent)
m_boxLayout->setContentsMargins(0, 0, 0, 0);
// Layout Setup
m_boxLayout->addStretch();
m_boxLayout->addWidget(m_terminalIcon);
m_boxLayout->addWidget(m_terminalTitle);
m_boxLayout->addWidget(m_terminalActivity);
m_boxLayout->addStretch();
m_boxLayout->addWidget(m_terminalTitle);
m_boxLayout->addStretch();
m_boxLayout->addWidget(m_toggleExpandedMode);
m_boxLayout->addWidget(m_closeBtn);
setLayout(m_boxLayout);

Loading…
Cancel
Save