Commit 6f579a07 authored by Matthias Möller's avatar Matthias Möller
Browse files

- replaced deprecated qt4 functions

- removed some unnecessary qt headers

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@17078 383ad7c9-94d9-4d36-a494-682f7c89f535
parent a72f2161
......@@ -39,7 +39,7 @@ int FilePolyLinePlugin::loadObject(QString _filename)
PolyLineObject* pol(0);
if(PluginFunctions::getObject( id, pol))
{
pol->line()->load(_filename.toAscii());
pol->line()->load(_filename.toLatin1());
pol->setFromFileName(_filename);
......@@ -60,12 +60,12 @@ bool FilePolyLinePlugin::saveObject(int _id, QString _filename)
if( pol)
{
std::cerr << "call Line Function\n";
std::cerr << (const char*) _filename.toAscii() << std::endl;
std::cerr << (const char*) _filename.toLatin1() << std::endl;
obj->setName(_filename.section(OpenFlipper::Options::dirSeparator(),-1));
obj->setPath(_filename.section(OpenFlipper::Options::dirSeparator(),0,-2) );
pol->line()->save((const char*) _filename.toAscii());
pol->line()->save((const char*) _filename.toLatin1());
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment