void MainWindow::voiceFraze(){ QPushButton *button = qobject_cast<QPushButton*>(sender()); if(button != NULL) {
C++ (Qt) if (button != nullptr)
C++ (Qt) if (button)
C++ (Qt)void MainWindow::voiceFraze(){ if (QPushButton* button = qobject_cast<QPushButton*>(sender())) {
C++ (Qt)void MainWindow::voiceFraze(){ if (auto button = qobject_cast<QPushButton*>(sender())) {