void ClientMapTagItem::freshLook() { // if(m_IsNormal) // { // // // } // else // { // // // } m_ClientNameItem->setPlainText(m_Client->getName()); setupToolTip(); }
ClientMapTagItem::ClientMapTagItem(boost::shared_ptr<SingleClient>client, QGraphicsItem *parent): QGraphicsItemGroup(parent), m_Client(client), m_IsNormal(true), m_Direction(1), m_NormalIcon(":/image/clienttag.png"), m_WarningIcon(":/image/warning.png") { setupItems(); setupSignals(); setupToolTip(); setupPos(); if(m_Client.get() != NULL) { // QTimer* timer = new QTimer(this); // timer->setInterval(2000); // connect(timer, SIGNAL(timeout()), this, SLOT(flashMe())); // timer->start(); onUnnormalStateChanged(m_Client->isNormal()?0:1); } }
ThumbnailWidget::ThumbnailWidget(Page * page) : page_(page), pixmap_(NULL), label_(NULL), indicator_(NULL), drag_progress_(false), hightlighted_(false) { setFlag(QGraphicsItem::ItemClipsToShape); setFlag(QGraphicsItem::ItemClipsChildrenToShape); setAcceptDrops(true); setupPixmap(); setupLabel(); setupToolTip(); setupIndicator(); connect(page, SIGNAL(rotated(int)), SLOT(handlePageRotate())); connect(page, SIGNAL(changed()), SLOT(updatePageIndicators())); connect(page, SIGNAL(exported()), SLOT(updatePageIndicators())); connect(page, SIGNAL(thumbChanged()), SLOT(setupPixmap())); updatePageIndicators(); }