{
QList<QWidget*> aMyControls = getControls();
foreach(QWidget* eachControl, aMyControls) {
- if (myIsObligatory) {
eachControl->setFocusPolicy(Qt::StrongFocus);
eachControl->installEventFilter(this);
- }
- else {
- eachControl->setFocusPolicy(Qt::NoFocus);
- }
}
}
myStack->addWidget( thePage );
QToolButton* aButton = new QToolButton( myButtonsFrame );
+ aButton->setFocusPolicy(Qt::StrongFocus);
aButton->setCheckable( true );
aButton->setIcon( theIcon );
aButton->setIconSize( theIcon.size() );
if (!aValidators->isCase(aCurrentWidget->feature(), aCurrentWidget->attributeID()))
continue; // this attribute is not participated in the current case
+ if (!aCurrentWidget->isObligatory())
+ continue; // not obligatory widgets are not activated automatically
if (aCurrentWidget->focusTo()) {
return;
}
activateWidget(NULL);
}
-
+//#define DEBUG_TAB
#ifdef DEBUG_TAB
void findDirectChildren(QWidget* theParent, QList<QWidget*>& theWidgets, const bool theDebug)
{