VirtualBox

Changeset 8478

Show
Ignore:
Timestamp:
04/29/08 21:20:12 (9 months ago)
Author:
vboxsync
Message:

FE/Qt: Network UI: Make the line editor of the editable combobox read-only to disable modifications by the user. The combobox itself remains "editable" to allow for setting text missing in the drop-down list.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/VBox/Frontends/VirtualBox/ui/VBoxVMNetworkSettings.ui.h

    r8474 r8478  
    5959    /* disable unused interface name UI */ 
    6060    grbTAP->setHidden (true); 
     61    /* Make the line editor of the editable combobox read-only to disable 
     62     * modifications by the user. The combobox itself remains "editable" to 
     63     * allow for setting text missing in the drop-down list. */ 
     64    cbHostInterfaceName->lineEdit()->setReadOnly (true); 
     65 
    6166    connect (grbEnabled, SIGNAL (toggled (bool)), 
    6267             this, SLOT (grbEnabledToggled (bool))); 
     
    117122        cbHostInterfaceName->insertStringList (aList); 
    118123    else 
    119         cbHostInterfaceName->insertItem (aNillItem); 
     124        cbHostInterfaceName->setCurrentText (aNillItem); 
    120125 
    121126    if (currentListItemName.isEmpty() || currentListItemName == aNillItem) 

© 2008 Sun Microsystems, Inc.
ContactPrivacy policy