VirtualBox

Ignore:
Timestamp:
Feb 12, 2013 12:37:35 PM (12 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
83741
Message:

FE/Qt: 6065: Renaming UIKeySequence => UIHotKey.

Location:
trunk/src/VBox/Frontends/VirtualBox/src/widgets
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIHotKeyEditor.cpp

    r44589 r44650  
    300300}
    301301
    302 UIKeySequence UIHotKeyEditor::sequence() const
     302UIHotKey UIHotKeyEditor::hotKey() const
    303303{
    304304    return m_pLineEdit->text();
    305305}
    306306
    307 void UIHotKeyEditor::setSequence(const UIKeySequence &sequence)
    308 {
    309     m_pLineEdit->setText(sequence.toString());
     307void UIHotKeyEditor::setHotKey(const UIHotKey &hotKey)
     308{
     309    m_pLineEdit->setText(hotKey.toString());
    310310}
    311311
  • trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIHotKeyEditor.h

    r44562 r44650  
    3030
    3131/* A string wrapper for hot-key sequence: */
    32 class UIKeySequence
     32class UIHotKey
    3333{
    3434public:
    3535
    3636    /* Constructors: */
    37     UIKeySequence(const QString &strSequence = QString()) : m_strSequence(strSequence) {}
    38     UIKeySequence(const UIKeySequence &other) : m_strSequence(other.toString()) {}
     37    UIHotKey(const QString &strSequence = QString()) : m_strSequence(strSequence) {}
     38    UIHotKey(const UIHotKey &other) : m_strSequence(other.toString()) {}
    3939
    4040    /* API: Conversion stuff: */
     
    4646    QString m_strSequence;
    4747};
    48 Q_DECLARE_METATYPE(UIKeySequence);
     48Q_DECLARE_METATYPE(UIHotKey);
    4949
    5050/* A widget wrapper for real hot-key editor: */
     
    5252{
    5353    Q_OBJECT;
    54     Q_PROPERTY(UIKeySequence sequence READ sequence WRITE setSequence USER true);
     54    Q_PROPERTY(UIHotKey hotKey READ hotKey WRITE setHotKey USER true);
    5555
    5656public:
     
    7979
    8080    /* API: Editor stuff: */
    81     UIKeySequence sequence() const;
    82     void setSequence(const UIKeySequence &sequence);
     81    UIHotKey hotKey() const;
     82    void setHotKey(const UIHotKey &hotKey);
    8383
    8484    /* Variables: */
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette