bool ImportExport::MD5CheckPage::pageNeeded( const ImportSettings& settings) { if ( countOfMD5Matches(settings) != 0 && clashes(settings).anyClashes() ) return true; return false; }
void Desk::advance (void) { // start at top _pos = QPoint (POS_leftmargin, POS_topmargin); File *f; // put the pos level with the bottom most item // also find the rightmost item foreach (f, _files) { if (f->pos ().y () >= _pos.y ()) { if (f->pos ().y () > _pos.y ()) { _pos.setY (f->pos ().y ()); _pos.setX (POS_leftmargin); } while (_pos.y () == f->pos ().y () && _pos.x () < f->pos ().x ()) advanceOne (); } } // now keep advancing pos until it doesn't clash with an existing item for (int i = 0; i < 1000 && clashes (_pos); i++) advanceOne (); /* _pos.setX (_pos.x () + POS_xstep); if (_pos.x () >= _rightMargin) { _pos.setX (0); _pos.setY (_pos.y () + POS_ystep); } */ }