mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-12-17 14:11:14 +01:00
2021-02-06 Fred Gleason <fredg@paravelsystems.com>
* Removed 'Q3TextStream' dependencies from 'RDProfile'. Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
@@ -21030,3 +21030,5 @@
|
|||||||
* Removed 'Q3TextStream' dependencies from rmlsend(1).
|
* Removed 'Q3TextStream' dependencies from rmlsend(1).
|
||||||
2021-02-06 Fred Gleason <fredg@paravelsystems.com>
|
2021-02-06 Fred Gleason <fredg@paravelsystems.com>
|
||||||
* Removed 'Q3SocketDevice' dependencies from rdsoftkeys(1).
|
* Removed 'Q3SocketDevice' dependencies from rdsoftkeys(1).
|
||||||
|
2021-02-06 Fred Gleason <fredg@paravelsystems.com>
|
||||||
|
* Removed 'Q3TextStream' dependencies from 'RDProfile'.
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
//
|
//
|
||||||
// A class to read an ini formatted configuration file.
|
// A class to read an ini formatted configuration file.
|
||||||
//
|
//
|
||||||
// (C) Copyright 2002-2018 Fred Gleason <fredg@paravelsystems.com>
|
// (C) Copyright 2002-2021 Fred Gleason <fredg@paravelsystems.com>
|
||||||
//
|
//
|
||||||
// This program is free software; you can redistribute it and/or modify
|
// This program is free software; you can redistribute it and/or modify
|
||||||
// it under the terms of the GNU Library General Public License
|
// it under the terms of the GNU Library General Public License
|
||||||
@@ -18,9 +18,9 @@
|
|||||||
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
//
|
//
|
||||||
|
|
||||||
#include <qfile.h>
|
#include <QFile>
|
||||||
#include <qstringlist.h>
|
#include <QStringList>
|
||||||
#include <q3textstream.h>
|
#include <QTextStream>
|
||||||
|
|
||||||
#include "rdprofile.h"
|
#include "rdprofile.h"
|
||||||
|
|
||||||
@@ -137,8 +137,8 @@ bool RDProfile::setSource(const QString &filename)
|
|||||||
delete file;
|
delete file;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
Q3TextStream *text=new Q3TextStream(file);
|
QTextStream *text=new QTextStream(file);
|
||||||
QString line=text->readLine().stripWhiteSpace();
|
QString line=text->readLine().trimmed();
|
||||||
while(!line.isNull()) {
|
while(!line.isNull()) {
|
||||||
if((line.left(1)!=";")&&(line.left(1)!="#")) {
|
if((line.left(1)!=";")&&(line.left(1)!="#")) {
|
||||||
if((line.left(1)=="[")&&(line.right(1)=="]")) {
|
if((line.left(1)=="[")&&(line.right(1)=="]")) {
|
||||||
|
|||||||
Reference in New Issue
Block a user