void Kalkulator::on_Inne_clicked()
{
przycisk= ui->Inne;
przycisk->setCheckable(true);
pierwszy= ui->lineEdit_7;
drugi=ui->lineEdit_8;
trzeci=ui->lineEdit_9;
czwarty=ui->lineEdit_10;
piaty=ui->lineEdit_11;
wybor=ui->comboBox;
jeden=ui->label_10;
dwa=ui->label_11;
trzy=ui->label_12;
cztery=ui->label_13;
piec=ui->label_14;
connect(przycisk,SIGNAL(toggled(bool)), pierwszy, SLOT(setVisible(bool)));
connect(przycisk,SIGNAL(toggled(bool)), drugi, SLOT(setVisible(bool)));
connect(przycisk,SIGNAL(toggled(bool)), trzeci, SLOT(setVisible(bool)));
connect(przycisk,SIGNAL(toggled(bool)), czwarty, SLOT(setVisible(bool)));
connect(przycisk,SIGNAL(toggled(bool)), piaty, SLOT(setVisible(bool)));
connect(przycisk,SIGNAL(toggled(bool)), wybor, SLOT(setVisible(bool)));
connect(przycisk,SIGNAL(toggled(bool)), jeden, SLOT(setVisible(bool)));
connect(przycisk,SIGNAL(toggled(bool)), dwa, SLOT(setVisible(bool)));
connect(przycisk,SIGNAL(toggled(bool)), trzy, SLOT(setVisible(bool)));
connect(przycisk,SIGNAL(toggled(bool)), cztery, SLOT(setVisible(bool)));
connect(przycisk,SIGNAL(toggled(bool)), piec, SLOT(setVisible(bool)));
pierwszy->hide();
drugi->hide();
trzeci->hide();
czwarty->hide();
piaty->hide();
wybor->hide();
jeden->hide();
dwa->hide();
trzy->hide();
cztery->hide();
piec->hide();
}
void Kalkulator::on_Inne_clicked()
{
przycisk= ui->Inne;
przycisk->setCheckable(true);
pierwszy= ui->lineEdit_7;
drugi=ui->lineEdit_8;
trzeci=ui->lineEdit_9;
czwarty=ui->lineEdit_10;
piaty=ui->lineEdit_11;
wybor=ui->comboBox;
jeden=ui->label_10;
dwa=ui->label_11;
trzy=ui->label_12;
cztery=ui->label_13;
piec=ui->label_14;
connect(przycisk,SIGNAL(toggled(bool)), pierwszy, SLOT(setVisible(bool)));
connect(przycisk,SIGNAL(toggled(bool)), drugi, SLOT(setVisible(bool)));
connect(przycisk,SIGNAL(toggled(bool)), trzeci, SLOT(setVisible(bool)));
connect(przycisk,SIGNAL(toggled(bool)), czwarty, SLOT(setVisible(bool)));
connect(przycisk,SIGNAL(toggled(bool)), piaty, SLOT(setVisible(bool)));
connect(przycisk,SIGNAL(toggled(bool)), wybor, SLOT(setVisible(bool)));
connect(przycisk,SIGNAL(toggled(bool)), jeden, SLOT(setVisible(bool)));
connect(przycisk,SIGNAL(toggled(bool)), dwa, SLOT(setVisible(bool)));
connect(przycisk,SIGNAL(toggled(bool)), trzy, SLOT(setVisible(bool)));
connect(przycisk,SIGNAL(toggled(bool)), cztery, SLOT(setVisible(bool)));
connect(przycisk,SIGNAL(toggled(bool)), piec, SLOT(setVisible(bool)));
pierwszy->hide();
drugi->hide();
trzeci->hide();
czwarty->hide();
piaty->hide();
wybor->hide();
jeden->hide();
dwa->hide();
trzy->hide();
cztery->hide();
piec->hide();
}
To copy to clipboard, switch view to plain text mode
Bookmarks