Hi all
Please for support and help
Thanks in advance!
my list in .h file
QList < FilmDoc >
* pDocList;
void FilmApp::openDocumentFile (const char *file)
{
statusBar ()->message (tr ("Opening file..."));
QList <FilmDoc> doc
= *pDocList;
// if this might help function has to check if file is already opened
// and if yes then setFocus to opened view
for ( int i = 0; i < doc.size (); ++i ) {
if ( doc.contains ( doc& ) == file ){// this line generate err
FilmView * view = doc->firstView ();
view->setFocus ();
return;
}
}
...
}
my list in .h file
QList < FilmDoc > * pDocList;
void FilmApp::openDocumentFile (const char *file)
{
statusBar ()->message (tr ("Opening file..."));
QList <FilmDoc> doc = *pDocList;
// if this might help function has to check if file is already opened
// and if yes then setFocus to opened view
for ( int i = 0; i < doc.size (); ++i ) {
if ( doc.contains ( doc& ) == file ){// this line generate err
FilmView * view = doc->firstView ();
view->setFocus ();
return;
}
}
...
}
To copy to clipboard, switch view to plain text mode
Bookmarks