#include "mainwindow.h"
#include "ui_mainwindow.h"
MainWindow::MainWindow(QWidget *parent)
: QMainWindow(parent)
, ui(new Ui::MainWindow)
{
ui->setupUi(this);
ui->groupBox_2->hide();
ui->groupBox_3->hide();
layout()->setSizeConstraint(QLayout::SetFixedSize);
setColumnRange('A','Z');
}
void MainWindow::setColumnRange(QChar first, QChar last)
{
ui->comboBox->clear();
ui->comboBox_3->clear();
ui->comboBox_5->clear();
ui->comboBox_3->addItem(tr("None"));
ui->comboBox_5->addItem(tr("None"));
ui->comboBox->setMinimumSize( ui->comboBox_3->sizeHint());
QChar ch=first;
while(ch<=last)
{
ui->comboBox->addItem(QString(ch));
ui->comboBox_3->addItem(QString(ch));
ui->comboBox_5->addItem(QString(ch));
ch=ch.unicode()+1;
}
}
MainWindow::~MainWindow()
{
delete ui;
}