コード例 #1
0
ファイル: serverform.cpp プロジェクト: quinsmpang/Tools
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;
}
コード例 #2
0
ファイル: transferform.cpp プロジェクト: quinsmpang/Tools
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;
}
コード例 #3
0
ファイル: baseform.cpp プロジェクト: freebendy/sokit_fork
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);
}