Commit 7e3f39d6 authored by Carsten Fuhrmann's avatar Carsten Fuhrmann

added icons

parent b892d126
......@@ -10,7 +10,7 @@ ChannelTree::ChannelTree(ChannelListWidget * widget, QWidget *parent)
setHeaderHidden(true);
setExpandsOnDoubleClick(false);
setStyleSheet("border-style:none; background-color:rgba(0,0,0,0); color:rgb(255,255,255);");
setStyleSheet("QTreeWidget{border-style:none; background-color:rgba(0,0,0,0); color:rgb(255,255,255);} QTreeWidget::item:selected{border-style:none; color:rgba(0,0,0,0);}");
setSizeAdjustPolicy(QAbstractScrollArea::AdjustToContents);
}
......
......@@ -23,6 +23,9 @@ OverlayController::OverlayController(const struct TS3Functions funcs, quint64 se
{
QDesktopWidget desktop;
m_channelIcon.addFile("plugins\\qtTsOverlay\\channel.png");
m_clientIcon.addFile("plugins\\qtTsOverlay\\client.png");
m_screenHeight = desktop.screenGeometry().height();
m_screenWidth = desktop.screenGeometry().width();
......@@ -243,7 +246,10 @@ void OverlayController::updateChannelList()
tmp.entry->setData(0, Qt::DisplayRole, tmp.name);
}
else
{
tmp.entry->setData(2, Qt::UserRole, channel);
tmp.entry->setIcon(0, m_channelIcon);
}
m_channelList.push_back(tmp);
i++;
......@@ -313,6 +319,7 @@ void OverlayController::updateClientList()
{
QTreeWidgetItem* tmp = new QTreeWidgetItem;
tmp->setData(0, Qt::DisplayRole, clientID2Name(m_SCHID, clientIDList[i]));
tmp->setIcon(0, m_clientIcon);
tmp->setData(1, Qt::UserRole, clientIDList[i]);
tmp->setData(2, Qt::UserRole, client);
m_clientList.push_back(tmp);
......
......@@ -9,6 +9,7 @@
#include <QVector>
#include <QLabel>
#include "ChannelListWidget.h"
#include <QIcon>
#define MAXLINES 5
......@@ -40,6 +41,9 @@ private:
int m_screenHeight;
int m_speakerOffset;
QIcon m_channelIcon;
QIcon m_clientIcon;
QLabel* m_debugWindow;
QVector<QWidget*> m_speakers;
QVector<QWidget*> m_msgLines;
......
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