fix a bug
--HG-- branch : develop
This commit is contained in:
parent
1b7dd14f54
commit
a58da6c323
|
@ -267,12 +267,8 @@ void VWidgetGroups::FillTable(const QMap<quint32, QPair<QString, bool> > &groups
|
||||||
|
|
||||||
QTableWidgetItem *item = new QTableWidgetItem();
|
QTableWidgetItem *item = new QTableWidgetItem();
|
||||||
item->setTextAlignment(Qt::AlignHCenter);
|
item->setTextAlignment(Qt::AlignHCenter);
|
||||||
quint32 id = item->data(Qt::UserRole).toUInt();
|
(data.second) ? item->setIcon(QIcon("://icon/16x16/open_eye.png"))
|
||||||
if (data.second)
|
: item->setIcon(QIcon("://icon/16x16/closed_eye.png"));
|
||||||
{
|
|
||||||
SetIconValue(id, true, item);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
item->setData(Qt::UserRole, i.key());
|
item->setData(Qt::UserRole, i.key());
|
||||||
|
|
||||||
|
|
|
@ -33,6 +33,9 @@
|
||||||
#include <QTableWidgetItem>
|
#include <QTableWidgetItem>
|
||||||
#include "../ifc/xml/vabstractpattern.h"
|
#include "../ifc/xml/vabstractpattern.h"
|
||||||
|
|
||||||
|
class QTableWidgetItem;
|
||||||
|
void SetIconValue(quint32, bool visible, QTableWidgetItem *item);
|
||||||
|
|
||||||
namespace Ui
|
namespace Ui
|
||||||
{
|
{
|
||||||
class VWidgetGroups;
|
class VWidgetGroups;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user