|
Документ взят из кэша поисковой машины. Адрес
оригинального документа
: http://astro.uni-altai.ru/~aw/stellarium/api/classShortcutLineEdit.html
Дата изменения: Unknown Дата индексирования: Fri Feb 28 07:37:17 2014 Кодировка: Поисковые слова: http www.astronomy.ru forum index.php topic 4644.0.html |
![]() |
Stellarium 0.12.3
|
Specialised GUI control for entering keyboard shortcut combinations. More...
#include <ShortcutLineEdit.hpp>
Public Slots | |
| void | clear () |
| Clear contents and stored keys. More... | |
| void | backspace () |
| Remove the last key from the key sequence. More... | |
| void | setContents (QKeySequence ks) |
| Emits contentsChanged() if the new sequence is not the same. More... | |
Signals | |
| void | focusChanged (bool focus) |
| Needed for enabling/disabling buttons in ShortcutsDialog. More... | |
| void | contentsChanged () |
Public Member Functions | |
| ShortcutLineEdit (QWidget *parent=0) | |
| QKeySequence | getKeySequence () |
| bool | isEmpty () const |
Protected Member Functions | |
| void | keyPressEvent (QKeyEvent *e) |
| void | focusInEvent (QFocusEvent *e) |
| void | focusOutEvent (QFocusEvent *e) |
Specialised GUI control for entering keyboard shortcut combinations.
Allows Emacs-style key sequences (for example "Ctrl+E, Ctrl+2") no longer than four combinations. See the documentation of QKeySequence for details.
When ShortcutLineEdit receives the focus, its whole contents get selected. On a key press, if any of the contents are selected, the new key replaces all the previous contents. Otherwise, it's appended to the sequence.
Definition at line 35 of file ShortcutLineEdit.hpp.
|
slot |
Remove the last key from the key sequence.
|
slot |
Clear contents and stored keys.
|
signal |
Needed for enabling/disabling buttons in ShortcutsDialog.
| [out] | focus | false if the widget has the focus, true otherwise. |
|
slot |
Emits contentsChanged() if the new sequence is not the same.
1.8.3.1