Commit 52fb4e27 authored by Carsten Fuhrmann's avatar Carsten Fuhrmann

adjust channel list WindowTransparentForInput

bug:
size changes the widget but not the tree
parent 8a63ca0f
......@@ -40,9 +40,14 @@ OverlayController::OverlayController(const struct TS3Functions funcs, quint64 se
m_debugWindow->show();
m_SCHID = serverConnectionHandlerID;
m_tree = new QTreeWidget;
m_treeWidget = new QWidget;
m_tree = new QTreeWidget(m_treeWidget);
m_tree->setHeaderHidden(true);
m_tree->setExpandsOnDoubleClick(false);
m_treeWidget->setAttribute(Qt::WA_TranslucentBackground);
m_treeWidget->setWindowFlags(Qt::WindowStaysOnTopHint | Qt::Tool);
}
OverlayController::~OverlayController()
......@@ -56,7 +61,7 @@ OverlayController::~OverlayController()
m_msgLines.clear();
delete m_debugWindow;
delete m_tree;
delete m_treeWidget;
}
void OverlayController::deleteChatLine(QWidget * line)
......@@ -205,7 +210,7 @@ void OverlayController::reset()
void OverlayController::updateChannelList()
{
if (m_tree->isVisible())
if (m_treeWidget->isVisible())
displayChannelList();
}
......@@ -292,5 +297,7 @@ void OverlayController::displayChannelList()
m_tree->expandAll();
connect(m_tree, &QTreeWidget::itemDoubleClicked, this, &OverlayController::treeItemClicked);
m_tree->show();
m_tree->adjustSize();
m_treeWidget->adjustSize();
m_treeWidget->show();
}
......@@ -35,6 +35,7 @@ private:
QVector<QWidget*> m_speakers;
QVector<QWidget*> m_msgLines;
QTreeWidget* m_tree;
QWidget* m_treeWidget;
private:
void deleteChatLine(QWidget* line);
......
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