Esempio n. 1
0
bool ServerForm::initHotkeys()
{
	bindFocus(m_ui.cmbTcpAddr, Qt::Key_Escape);
	bindClick(m_ui.btnTcp,  Qt::CTRL + Qt::Key_T);
	bindClick(m_ui.btnUdp,  Qt::CTRL + Qt::Key_U);

	return true;
}
Esempio n. 2
0
bool TransferForm::initHotkeys()
{
	bindFocus(m_ui.cmbSrcAddr, Qt::Key_Escape);
	bindClick(m_ui.btnTrigger,  Qt::CTRL + Qt::Key_S);
	bindSelect(m_ui.cmbType, 0, Qt::CTRL + Qt::Key_T);
	bindSelect(m_ui.cmbType, 1, Qt::CTRL + Qt::Key_U);

	return true;
}
Esempio n. 3
0
void BaseForm::bindBuffer(qint32 id, QLineEdit* e, QToolButton* s, QComboBox* d)
{
    s->setProperty(PROP_EDIT, qVariantFromValue((void*)e));
    s->setProperty(PROP_DIRT, qVariantFromValue((void*)d));

    connect(s, SIGNAL(released()), this, SLOT(send()));

    bindClick(s, Qt::Key_0 + id + Qt::CTRL);
    bindFocus(e, Qt::Key_0 + id + Qt::ALT);
    bindFocus(d, Qt::Key_0 + id + Qt::CTRL + Qt::SHIFT);
}