PopupDistantChatDialog::PopupDistantChatDialog(QWidget *parent, Qt::WFlags flags) : PopupChatDialog(parent,flags) { _tunnel_check_timer = new QTimer; _tunnel_check_timer->setInterval(1000) ; QObject::connect(_tunnel_check_timer,SIGNAL(timeout()),this,SLOT(checkTunnel())) ; _tunnel_check_timer->start() ; _status_label = new QLabel ; addChatBarWidget(_status_label) ; checkTunnel() ; }
PaintChatPopupChatDialog::PaintChatPopupChatDialog(QWidget *parent) : PopupChatDialog(parent) { paintChatWindow=new PaintChatWindow(); paintChatWindow->hide(); paintChatWindowToggleButton = new QPushButton ; paintChatWindowToggleButton->setMinimumSize(QSize(28,28)) ; paintChatWindowToggleButton->setMaximumSize(QSize(28,28)) ; paintChatWindowToggleButton->setText(QString()) ; paintChatWindowToggleButton->setToolTip(tr("PaintChat")); QIcon icon ; icon.addPixmap(QPixmap(":/images/colors.png")); paintChatWindowToggleButton->setIcon(icon); connect(paintChatWindowToggleButton,SIGNAL(clicked()),this,SLOT(togglePaintChatWindow())); addChatBarWidget(paintChatWindowToggleButton); }