Changeset - 285fe4e37252
[Not reviewed]
default
0 1 0
Hasan Yavuz Ă–ZDERYA - 11 years ago 2015-05-28 10:15:58
hy@ozderya.net
show messages on the status bar too
1 file changed with 1 insertions and 0 deletions:
0 comments (0 inline, 0 general)
mainwindow.cpp
Show inline comments
 
@@ -585,26 +585,27 @@ void MainWindow::onExportCsv()
 
            fileStream << '\n';
 

	
 
            for (unsigned int i = 0; i < numOfSamples; i++)
 
            {
 
                for (unsigned int ci = 0; ci < numOfChannels; ci++)
 
                {
 
                    fileStream << channelsData[ci][i];
 
                    if (ci != numOfChannels-1) fileStream << ",";
 
                }
 
                fileStream << '\n';
 
            }
 
        }
 
        else
 
        {
 
            qDebug() << "File open error during export: " << file.error();
 
        }
 
    }
 
}
 

	
 
void MainWindow::messageHandler(QtMsgType type,
 
                                const QMessageLogContext &context,
 
                                const QString &msg)
 
{
 
    ui->ptLog->appendPlainText(msg);
 
    ui->statusBar->showMessage(msg, 5000);
 
    std::cerr << msg.toStdString() << std::endl;
 
}
0 comments (0 inline, 0 general)