void lmcCore::startChat(QString* lpszUserId) { // return if a chat window is already open for this user for(int index = 0; index < chatWindows.count(); index++) if(!chatWindows[index]->groupMode && chatWindows[index]->peerIds.contains(*lpszUserId)) { showChatWindow(chatWindows[index], true); return; } createChatWindow(lpszUserId); showChatWindow(chatWindows.last(), true); }
void CustomMailPage::onUserJidReceived(const QString &AId, const Jid &AUserJid) { if (AId == FRequestId) { emit showChatWindow(AUserJid); close(); } }
Profile::Profile(QWidget *parent) : QMainWindow(parent), ui(new Ui::Profile) { ui->setupUi(this); QPixmap UserProfilePix("C:\\img\\damon.png"); ui->lbl_ProfilePic->setPixmap(UserProfilePix); QPixmap Slot1Pix("C:\\img\\david.png"); ui->lbl_FirstContactSlot->setPixmap(Slot1Pix); QPixmap Slot2Pix("C:\\img\\dom.png"); ui->lbl_SecondContactSlot->setPixmap(Slot2Pix); QPixmap Slot3Pix("C:\\img\\trevor.png"); ui->lbl_ThirdContactSlot->setPixmap(Slot3Pix); QPixmap Slot4Pix("C:\\img\\jesse.png"); ui->lbl_FourthContactSlot->setPixmap(Slot4Pix); connect(ui->pushButton_SignOut, SIGNAL(clicked()), SLOT(hide())); connect(ui->pushButton_SignOut, SIGNAL(clicked()), SIGNAL(showLoginWindow())); connect(ui->pushButton_AdvancedSettings, SIGNAL(clicked()), SLOT(hide())); connect(ui->pushButton_AdvancedSettings, SIGNAL(clicked()), SIGNAL(showSettingsWindow())); connect(ui->button_changePass, SIGNAL(clicked()), SIGNAL(showChangePassWindow())); connect(ui->btn_changepicture, SIGNAL(clicked()), SIGNAL(showChangePictureWindow())); connect(ui->btn_addContact, SIGNAL(clicked()), SIGNAL(showNewContactWindow())); connect(ui->pushButton_CS1, SIGNAL(clicked()), SLOT(hide())); connect(ui->pushButton_CS1, SIGNAL(clicked()), SIGNAL(showChatWindow())); connect(ui->pushButton_CS2, SIGNAL(clicked()), SLOT(hide())); connect(ui->pushButton_CS2, SIGNAL(clicked()), SIGNAL(showChatWindow())); }
Settings::Settings(QWidget *parent) : QMainWindow(parent), ui(new Ui::Settings) { ui->setupUi(this); connect(ui->pushButton_Profile, SIGNAL(clicked()), SLOT(hide())); connect(ui->pushButton_Profile, SIGNAL(clicked()), SIGNAL(showProfileWindow())); connect(ui->pushButton_chat, SIGNAL(clicked()), SLOT(hide())); connect(ui->pushButton_chat, SIGNAL(clicked()), SIGNAL(showChatWindow())); }
int LoginDialog::qt_metacall(QMetaObject::Call _c, int _id, void **_a) { _id = QWidget::qt_metacall(_c, _id, _a); if (_id < 0) return _id; if (_c == QMetaObject::InvokeMetaMethod) { switch (_id) { case 0: sendEnterMessage((*reinterpret_cast< QString(*)>(_a[1])),(*reinterpret_cast< QString(*)>(_a[2]))); break; case 1: showChatWindow(); break; case 2: enterSlot(); break; } _id -= 3; } return _id; }