3 IdWidget::IdWidget(tpSession *tp)
7 setAttribute(Qt::WA_TranslucentBackground);
8 QObject::connect(this, SIGNAL(clicked()), this, SLOT(changeState()));
9 QObject::connect(tp, SIGNAL(privacyUpdated(bool)), this, SLOT(setButtonState(bool)));
10 pHidden = new QPixmap(":/icons/hidden.png");
11 pShown = new QPixmap(":/icons/shown.png");
14 void IdWidget::setButtonState(bool showId)
17 this->showId = showId;
29 QSize iconSize(pixmap->width(), pixmap->height());
30 setIconSize(iconSize);
34 void IdWidget::changeState()
37 tp->setPrivacy(false);