Commit 3643dae2 authored by Mariusz Glebocki's avatar Mariusz Glebocki Committed by Kurt Hindenburg
Browse files

TerminalHeaderBar: Put icon on the left

parent 11608cdf
...@@ -61,6 +61,8 @@ TerminalHeaderBar::TerminalHeaderBar(QWidget *parent) ...@@ -61,6 +61,8 @@ TerminalHeaderBar::TerminalHeaderBar(QWidget *parent)
m_terminalTitle->setFont(QApplication::font()); m_terminalTitle->setFont(QApplication::font());
m_terminalIcon = new QLabel(this); m_terminalIcon = new QLabel(this);
m_terminalIcon->setAlignment(Qt::AlignCenter);
m_terminalIcon->setFixedSize(m_toggleExpandedMode->sizeHint());
m_terminalActivity = new QLabel(this); m_terminalActivity = new QLabel(this);
m_boxLayout = new QBoxLayout(QBoxLayout::LeftToRight); m_boxLayout = new QBoxLayout(QBoxLayout::LeftToRight);
...@@ -68,11 +70,11 @@ TerminalHeaderBar::TerminalHeaderBar(QWidget *parent) ...@@ -68,11 +70,11 @@ TerminalHeaderBar::TerminalHeaderBar(QWidget *parent)
m_boxLayout->setContentsMargins(0, 0, 0, 0); m_boxLayout->setContentsMargins(0, 0, 0, 0);
// Layout Setup // Layout Setup
m_boxLayout->addStretch();
m_boxLayout->addWidget(m_terminalIcon); m_boxLayout->addWidget(m_terminalIcon);
m_boxLayout->addWidget(m_terminalTitle);
m_boxLayout->addWidget(m_terminalActivity); m_boxLayout->addWidget(m_terminalActivity);
m_boxLayout->addStretch(); m_boxLayout->addStretch();
m_boxLayout->addWidget(m_terminalTitle);
m_boxLayout->addStretch();
m_boxLayout->addWidget(m_toggleExpandedMode); m_boxLayout->addWidget(m_toggleExpandedMode);
m_boxLayout->addWidget(m_closeBtn); m_boxLayout->addWidget(m_closeBtn);
setLayout(m_boxLayout); setLayout(m_boxLayout);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment