VirtualBox

Ignore:
Timestamp:
Sep 2, 2008 11:11:58 AM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
35866
Message:

Fe/Qt4: Fix Hard Disk UI issues: restoring edit-state of HD attachment table when getting focus, re-activating table (alt-tab), fixing F2 key functionality.

Location:
trunk/src/VBox/Frontends/VirtualBox4/include
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox4/include/VBoxSettingsUtils.h

    r10468 r11968  
    219219        emit currentChanged (aCurrent);
    220220    }
     221
     222    void focusInEvent (QFocusEvent *aEvent)
     223    {
     224        /* Restore edit-mode on focus in. */
     225        QTableView::focusInEvent (aEvent);
     226        if (model()->flags (currentIndex()) & Qt::ItemIsEditable)
     227            edit (currentIndex());
     228    }
    221229};
    222230
  • trunk/src/VBox/Frontends/VirtualBox4/include/VBoxVMSettingsHD.h

    r11186 r11968  
    196196private:
    197197
     198    void keyPressEvent (QKeyEvent *aEvent);
    198199    void populate (const HDSltValue &aIncluding);
    199200
     
    228229
    229230private:
     231
     232    void keyPressEvent (QKeyEvent *aEvent);
    230233
    231234    static HDVdiEditor *mInstance;
     
    326329    QAction *mDelAction;
    327330    QAction *mVdmAction;
     331    bool mWasTableSelected;
    328332};
    329333
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