|
|
|
|
@ -44,6 +44,10 @@ ChannelGUI::ChannelGUI(QWidget *parent) :
@@ -44,6 +44,10 @@ ChannelGUI::ChannelGUI(QWidget *parent) :
|
|
|
|
|
{ |
|
|
|
|
qDebug("ChannelGUI::ChannelGUI"); |
|
|
|
|
setWindowFlags(windowFlags() | Qt::FramelessWindowHint); |
|
|
|
|
setObjectName("ChannelGUI"); |
|
|
|
|
setStyleSheet(QString(tr("#ChannelGUI { border: 1px solid %1; background-color: %2; }") |
|
|
|
|
.arg(palette().highlight().color().darker(115).name())) |
|
|
|
|
.arg(palette().dark().color().darker(115).name())); |
|
|
|
|
|
|
|
|
|
m_indexLabel = new QLabel(); |
|
|
|
|
m_indexLabel->setFixedSize(50, 16); |
|
|
|
|
@ -124,8 +128,8 @@ ChannelGUI::ChannelGUI(QWidget *parent) :
@@ -124,8 +128,8 @@ ChannelGUI::ChannelGUI(QWidget *parent) :
|
|
|
|
|
m_statusLabel->setToolTip("Channel status"); |
|
|
|
|
|
|
|
|
|
m_layouts = new QVBoxLayout(); |
|
|
|
|
m_layouts->setContentsMargins(m_resizer.m_gripSize, 4, m_resizer.m_gripSize, 4); |
|
|
|
|
m_layouts->setSpacing(2); |
|
|
|
|
m_layouts->setContentsMargins(m_resizer.m_gripSize, m_resizer.m_gripSize, m_resizer.m_gripSize, m_resizer.m_gripSize); |
|
|
|
|
m_layouts->setSpacing(0); |
|
|
|
|
|
|
|
|
|
m_topLayout = new QHBoxLayout(); |
|
|
|
|
m_topLayout->setContentsMargins(0, 0, 0, 0); |
|
|
|
|
@ -152,6 +156,7 @@ ChannelGUI::ChannelGUI(QWidget *parent) :
@@ -152,6 +156,7 @@ ChannelGUI::ChannelGUI(QWidget *parent) :
|
|
|
|
|
m_bottomLayout->addWidget(m_statusLabel); |
|
|
|
|
m_sizeGripBottomRight = new QSizeGrip(this); |
|
|
|
|
m_sizeGripBottomRight->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed); |
|
|
|
|
m_sizeGripBottomRight->setFixedHeight(20); |
|
|
|
|
// m_bottomLayout->addStretch(1);
|
|
|
|
|
m_bottomLayout->addWidget(m_sizeGripBottomRight, 0, Qt::AlignBottom | Qt::AlignRight); |
|
|
|
|
|
|
|
|
|
@ -318,6 +323,7 @@ void ChannelGUI::shrinkWindow()
@@ -318,6 +323,7 @@ void ChannelGUI::shrinkWindow()
|
|
|
|
|
{ |
|
|
|
|
qDebug("ChannelGUI::shrinkWindow"); |
|
|
|
|
adjustSize(); |
|
|
|
|
resize(width(), m_rollupContents->height() + getAdditionalHeight()); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void ChannelGUI::setTitle(const QString& title) |
|
|
|
|
|