Add QT_STRICT_ITERATORS, QT_NO_URL_CAST_FROM_STRING, QT_NO_SIGNALS_SLOTS_KEYWORDS

parent 5fee84b1
......@@ -88,6 +88,9 @@ add_definitions(
-DQT_NO_CAST_TO_ASCII
-DQT_NO_CAST_FROM_ASCII
-DQT_NO_CAST_FROM_BYTEARRAY
-DQT_STRICT_ITERATORS
-DQT_NO_URL_CAST_FROM_STRING
-DQT_NO_SIGNALS_SLOTS_KEYWORDS
)
# helper libs
......
......@@ -262,12 +262,12 @@ void OktetaMainWindow::readProperties( const KConfigGroup& configGroup )
DocumentManager* const documentManager = mProgram->documentManager();
DocumentSyncManager* const syncManager = documentManager->syncManager();
DocumentCreateManager* const createManager = documentManager->createManager();
foreach( const QUrl& url, urls )
foreach( const QString& url, urls )
{
if( url.isEmpty() )
createManager->createNew();
else
syncManager->load( url );
syncManager->load( QUrl(url, QUrl::TolerantMode) );
// TODO: set view to offset
// if( offset != -1 )
}
......
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