//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
//
// You should have received a copy of the GNU Lesser General Public
// License along with this library; if not, write to the Free Software
//
// You should have received a copy of the GNU Lesser General Public
// License along with this library; if not, write to the Free Software
-// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
ModuleBase_WidgetRadiobox::ModuleBase_WidgetRadiobox(QWidget* theParent,
const Config_WidgetAPI* theData)
: ModuleBase_PagedContainer(theParent, theData)
ModuleBase_WidgetRadiobox::ModuleBase_WidgetRadiobox(QWidget* theParent,
const Config_WidgetAPI* theData)
: ModuleBase_PagedContainer(theParent, theData)
connect(myGroup, SIGNAL(buttonToggled(int, bool)), SLOT(onPageChanged()));
}
connect(myGroup, SIGNAL(buttonToggled(int, bool)), SLOT(onPageChanged()));
}
int ModuleBase_WidgetRadiobox::addPage(ModuleBase_PageBase* thePage,
const QString& theName,
const QString& theCaseId,
int ModuleBase_WidgetRadiobox::addPage(ModuleBase_PageBase* thePage,
const QString& theName,
const QString& theCaseId,
- ModuleBase_PagedContainer::addPage(thePage, theName, theCaseId, theIcon);
+ ModuleBase_PagedContainer::addPage(thePage, theName, theCaseId, theIcon, theTooltip);
QWidget* aWgt = new QWidget(this);
QVBoxLayout* aLay = new QVBoxLayout(aWgt);
aLay->setContentsMargins(0, 0, 0, 0);
QRadioButton* aButton;
QWidget* aWgt = new QWidget(this);
QVBoxLayout* aLay = new QVBoxLayout(aWgt);
aLay->setContentsMargins(0, 0, 0, 0);
QRadioButton* aButton;
aLay->addStretch();
aLay->addWidget(aButton);
aLay->addStretch();
//QFrame* aFrame = dynamic_cast<QFrame*>(thePage);
QWidget* aPage = thePage->pageWidget();
aLay->addStretch();
aLay->addWidget(aButton);
aLay->addStretch();
//QFrame* aFrame = dynamic_cast<QFrame*>(thePage);
QWidget* aPage = thePage->pageWidget();
- myLayout->addRow(aWgt, aPage);
+ if (myVerticalAlignment) {
+ myLayout->addRow(aWgt);
+ myLayout->addRow(aPage);
+ } else
+ myLayout->addRow(aWgt, aPage);
myGroup->addButton(aButton, myGroup->buttons().count());
bool isDefault = theCaseId.toStdString() == getDefaultValue();
myGroup->addButton(aButton, myGroup->buttons().count());
bool isDefault = theCaseId.toStdString() == getDefaultValue();