예제 #1
0
void JsonForm::on_toggleMonitorClipboard_toggled(bool checked)
{
    if (checked)
    {
        connect (QApplication::clipboard(), SIGNAL(dataChanged()),
                 this, SLOT(on_pasteButton_clicked()));
    }
    else
    {
        disconnect (QApplication::clipboard(), SIGNAL(dataChanged()),
                    this, SLOT(on_pasteButton_clicked()));
    }
}
예제 #2
0
int SendCoinsEntry::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QFrame::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: removeEntry((*reinterpret_cast< SendCoinsEntry*(*)>(_a[1]))); break;
        case 1: setRemoveEnabled((*reinterpret_cast< bool(*)>(_a[1]))); break;
        case 2: clear(); break;
        case 3: on_deleteButton_clicked(); break;
        case 4: on_payTo_textChanged((*reinterpret_cast< const QString(*)>(_a[1]))); break;
        case 5: on_addressBookButton_clicked(); break;
        case 6: on_pasteButton_clicked(); break;
        case 7: updateDisplayUnit(); break;
        default: ;
        }
        _id -= 8;
    }
    return _id;
}
예제 #3
0
void JsonForm::showEvent(QShowEvent *)
{
    on_pasteButton_clicked();
}