Changeset 79798 in vbox for trunk/src/VBox
- Timestamp:
- Jul 15, 2019 6:56:56 PM (5 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/extensions/QIStyledItemDelegate.cpp
r76553 r79798 45 45 46 46 /* Watch for editor data commits, redirect to listeners: */ 47 if (m_fWatchForEditorDataCommits) 47 if ( m_fWatchForEditorDataCommits 48 && pEditor->property("has_sigCommitData").toBool()) 48 49 connect(pEditor, SIGNAL(sigCommitData(QWidget *)), this, SIGNAL(commitData(QWidget *))); 49 50 50 51 /* Watch for editor Enter key triggering, redirect to listeners: */ 51 if (m_fWatchForEditorEnterKeyTriggering) 52 if ( m_fWatchForEditorEnterKeyTriggering 53 && pEditor->property("has_sigEnterKeyTriggered").toBool()) 52 54 connect(pEditor, SIGNAL(sigEnterKeyTriggered()), this, SIGNAL(sigEditorEnterKeyTriggered())); 53 55 -
trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIAddDiskEncryptionPasswordDialog.cpp
r79365 r79798 215 215 void UIPasswordEditor::prepare() 216 216 { 217 /* Make sure QIStyledDelegate aware of us: */ 218 setProperty("has_sigCommitData", true); 219 setProperty("has_sigEnterKeyTriggered", true); 217 220 /* Set echo mode: */ 218 221 setEchoMode(QLineEdit::Password); -
trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIFormEditorWidget.cpp
r79720 r79798 202 202 Q_PROPERTY(TextData text READ text WRITE setText USER true); 203 203 204 signals:205 206 /** Notifies listener about data should be committed. */207 void sigCommitData(QWidget *pThis);208 209 204 public: 210 205 … … 276 271 Q_OBJECT; 277 272 Q_PROPERTY(RangedIntegerData rangedInteger READ rangedInteger WRITE setRangedInteger USER true); 278 279 signals:280 281 /** Notifies listener about data should be committed. */282 void sigCommitData(QWidget *pThis);283 273 284 274 public: … … 604 594 : QComboBox(pParent) 605 595 { 596 /* Make sure QIStyledDelegate aware of us: */ 597 setProperty("has_sigCommitData", true); 598 /* Configure connections: */ 606 599 connect(this, static_cast<void(ChoiceEditor::*)(int)>(&ChoiceEditor::currentIndexChanged), 607 600 this, &ChoiceEditor::sltCurrentIndexChanged); -
trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIHostComboEditor.cpp
r79365 r79798 473 473 void UIHostComboEditor::prepare() 474 474 { 475 /* Make sure QIStyledDelegate aware of us: */ 476 setProperty("has_sigCommitData", true); 475 477 /* Configure self: */ 476 478 setAutoFillBackground(true); -
trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIHotKeyEditor.cpp
r76606 r79798 127 127 , m_fSequenceTaken(false) 128 128 { 129 /* Make sure QIStyledDelegate aware of us: */ 130 setProperty("has_sigCommitData", true); 129 131 /* Configure self: */ 130 132 setAutoFillBackground(true);
Note:
See TracChangeset
for help on using the changeset viewer.