Changeset 79636 in vbox
- Timestamp:
- Jul 9, 2019 8:57:20 AM (6 years ago)
- svn:sync-xref-src-repo-rev:
- 131938
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/softkeyboard/UISoftKeyboard.cpp
r79596 r79636 1039 1039 m_pEditorLayout->addWidget(m_pGoBackButton, 0, 0, 1, 1); 1040 1040 connect(m_pGoBackButton, &QToolButton::clicked, this, &UILayoutEditor::sigGoBackButton); 1041 pTitleLayout->addWidget(m_pGoBackButton);1042 pTitleLayout->addStretch(2);1043 1041 m_pTitleLabel = new QLabel; 1044 1042 pTitleLayout->addWidget(m_pTitleLabel); 1043 pTitleLayout->addStretch(2); 1044 pTitleLayout->addWidget(m_pGoBackButton); 1045 1045 m_pEditorLayout->addLayout(pTitleLayout, 0, 0, 1, 2); 1046 1046 … … 1285 1285 m_pCloseButton->setAutoRaise(true); 1286 1286 connect(m_pCloseButton, &QToolButton::clicked, this, &UILayoutSelector::sigCloseLayoutList); 1287 pTitleLayout->addWidget(m_pCloseButton);1288 pTitleLayout->addStretch(2);1289 1287 m_pTitleLabel = new QLabel; 1290 1288 pTitleLayout->addWidget(m_pTitleLabel); 1289 pTitleLayout->addStretch(2); 1290 pTitleLayout->addWidget(m_pCloseButton); 1291 1291 pLayout->addLayout(pTitleLayout); 1292 1292 … … 2630 2630 /* If no pyhsical layout with the UUID the keyboard layout refers is found then cancel loading the keyboard layout: */ 2631 2631 if (!pPhysicalLayout) 2632 { 2633 m_layouts.removeLast(); 2634 return false; 2635 } 2636 /* Make sure we have unique layout UUIDs: */ 2637 int iCount = 0; 2638 foreach (const UISoftKeyboardLayout &layout, m_layouts) 2639 { 2640 if (layout.uid() == newLayout.uid()) 2641 ++iCount; 2642 } 2643 if (iCount > 1) 2632 2644 { 2633 2645 m_layouts.removeLast(); … … 3118 3130 setLayout(pLayout); 3119 3131 3132 m_pMessageLabel = new QLabel; 3133 pLayout->addWidget(m_pMessageLabel); 3134 3120 3135 m_pLayoutListButton = new QToolButton; 3121 3136 if (m_pLayoutListButton) … … 3142 3157 } 3143 3158 3144 m_pMessageLabel = new QLabel;3145 pLayout->addWidget(m_pMessageLabel);3146 3159 retranslateUi(); 3147 3160 } … … 3243 3256 m_pCloseButton->setAutoRaise(true); 3244 3257 connect(m_pCloseButton, &QToolButton::clicked, this, &UISoftKeyboardSettingsWidget::sigCloseSettingsWidget); 3245 pTitleLayout->addWidget(m_pCloseButton);3246 pTitleLayout->addStretch(2);3247 3258 m_pTitleLabel = new QLabel; 3248 3259 pTitleLayout->addWidget(m_pTitleLabel); 3260 pTitleLayout->addStretch(2); 3261 pTitleLayout->addWidget(m_pCloseButton); 3249 3262 pSettingsLayout->addLayout(pTitleLayout, 0, 0, 1, 2); 3250 3263
Note:
See TracChangeset
for help on using the changeset viewer.