mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
CSV import. Add argument to method. Texts in drop down
This commit is contained in:
@@ -97,7 +97,7 @@ bool RifCsvUserDataParser::parseColumnInfo(const QString& cellSeparator)
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
QString RifCsvUserDataParser::previewText()
|
||||
QString RifCsvUserDataParser::previewText(int lineCount)
|
||||
{
|
||||
QTextStream *stream = openDataStream();
|
||||
|
||||
@@ -107,7 +107,7 @@ QString RifCsvUserDataParser::previewText()
|
||||
QTextStream outStream(&preview);
|
||||
int iLine = 0;
|
||||
|
||||
while (iLine < 30 + 1 && !stream->atEnd())
|
||||
while (iLine < lineCount && !stream->atEnd())
|
||||
{
|
||||
QString line = stream->readLine();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user