Subversion Repositories public

Rev

Rev 88 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 88 Rev 232
Line 1... Line 1...
1
/***************************************************************************
1
/***************************************************************************
2
 *   Copyright (C) 2007 by Andreas Theofilu                               *
2
 *   Copyright (C) 2007 - 2009 by Andreas Theofilu                         *
3
 *   andreas@theosys.at                                               *
3
 *   andreas@theosys.at                                                    *
4
 *                                                                         *
4
 *                                                                         *
5
 *   This program is free software; you can redistribute it and/or modify  *
5
 *   This program is free software; you can redistribute it and/or modify  *
6
 *   it under the terms of the GNU General Public License as published by  *
6
 *   it under the terms of the GNU General Public License as published by  *
7
 *   the Free Software Foundation version 3 of the License.                *
7
 *   the Free Software Foundation version 3 of the License.                *
8
 *                                                                         *
8
 *                                                                         *
Line 58... Line 58...
58
	{
58
	{
59
	   if (spw.handle() != -1)
59
	   if (spw.handle() != -1)
60
	      spw.close();
60
	      spw.close();
61
 
61
 
62
	   fname = name;
62
	   fname = name;
63
	   spw.setName(QString(name));
63
	   spw.setFileName(QString(name));
64
 
64
 
65
	   if (spw.open(IO_ReadOnly) == false)
65
	   if (spw.open(QIODevice::ReadOnly) == false)
66
	      return -1;
66
	      return -1;
67
 
67
 
68
	   return spw.handle();
68
	   return spw.handle();
69
	}
69
	}
70
 
70