示例#1
0
bool GlobalHotkey::registerHotkey(const QString &hk)
{
	return registerHotkey(QKeySequence(hk));
}
示例#2
0
bool GlobalHotkey::registerHotkey(const QKeySequence &hk)
{
	if (hk.count() != 1)
		return false;
	return registerHotkey(hk[0]);
}
示例#3
0
/** ***************************************************************************/
bool HotkeyManager::registerHotkey(const QString &hk) {
	return registerHotkey(QKeySequence(hk));
}