#include "radiolistdialog.h"
#include <QRadioButton>
RadioListDialog::RadioListDialog() : ButtonSelectionDialog()
{
}

DialogBase *RadioListDialog::createWidget( const QString &text, const QString &listHeight, const QStringList &tags, const QStringList &labels, QList<bool> areChecked, const QStringList &helps, bool noTags )
{
    if( tags.size() != labels.size() )
        return 0;

    if( tags.size() != areChecked.size() )
        return 0;

    bool isNumber = false;
    int height = listHeight.toInt(&isNumber);

    RadioListDialog *dlg = new RadioListDialog;
    dlg->setupDialog<QRadioButton>(true, text, height, tags, labels, areChecked, helps, noTags );

    return dlg;
}

