Changeset 102728 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Dec 29, 2023 3:26:50 PM (15 months ago)
- svn:sync-xref-src-repo-rev:
- 160900
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/extensions/QIManagerDialog.cpp
r102571 r102728 174 174 { 175 175 /* Configure button-box: */ 176 m_pButtonBox->setStandardButtons( QDialogButtonBox::Reset 176 177 #ifdef VBOX_WS_WIN 177 m_pButtonBox->setStandardButtons(QDialogButtonBox::Reset | QDialogButtonBox::Save | QDialogButtonBox::Close | QDialogButtonBox::Help);178 | QDialogButtonBox::Save 178 179 #else 179 m_pButtonBox->setStandardButtons(QDialogButtonBox::Reset | QDialogButtonBox::Apply | QDialogButtonBox::Close | QDialogButtonBox::Help); 180 #endif 180 | QDialogButtonBox::Apply 181 #endif 182 | QDialogButtonBox::Close 183 | QDialogButtonBox::Help); 181 184 m_buttons[ButtonType_Reset] = m_pButtonBox->button(QDialogButtonBox::Reset); 182 185 #ifdef VBOX_WS_WIN … … 192 195 button(ButtonType_Help)->setShortcut(QKeySequence::HelpContents); 193 196 194 /* Hide 'Reset' and 'Apply'initially: */197 /* Hide some of buttons initially: */ 195 198 button(ButtonType_Reset)->hide(); 196 199 button(ButtonType_Apply)->hide(); 197 /* Disable 'Reset' and 'Apply'initially: */200 /* Disable some of buttons initially: */ 198 201 button(ButtonType_Reset)->setEnabled(false); 199 202 button(ButtonType_Apply)->setEnabled(false); 203 204 /* Configure connections: */ 200 205 connect(m_pButtonBox, &QIDialogButtonBox::rejected, this, &QIManagerDialog::close); 201 /* Connections to enable the context sensitive help: */ 202 connect(m_pButtonBox, &QDialogButtonBox::helpRequested, this, &QIManagerDialog::sltHandleHelpRequested); 206 connect(m_pButtonBox, &QIDialogButtonBox::helpRequested, this, &QIManagerDialog::sltHandleHelpRequested); 203 207 204 208 /* Configure button-box: */
Note:
See TracChangeset
for help on using the changeset viewer.