Ejemplo n.º 1
0
int MainWindow::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QMainWindow::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: on_btnCancel_clicked(); break;
        case 1: on_btnOk_clicked(); break;
        case 2: OnRbxClick(); break;
        default: ;
        }
        _id -= 3;
    }
    return _id;
}
Ejemplo n.º 2
0
void dlgRemoteIp::on_btnPing_clicked()
{
    QString strContent;
    bool status = pingIp(toIp(),strContent);

    if(status)
    {
        on_btnOk_clicked();
    }
    if(!txtPing->isVisible())
        this->setGeometry(this->geometry().adjusted(-5,-70,0,0));
    txtPing->setVisible(true);
    txtPing->clear();
    txtPing->setReadOnly(true);

    txtPing->setText(strContent);
}