Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
searchWord(){
if(this->end_search < this->start_search){
int temp = this->start_search;
this->start_search = this->end_search;
this->end_search = temp;
}
this->start_search /= (this->fontsize / 2);
this->end_search /= (this->fontsize / 2);
QString line;
for(int i = 0; i < LINESPERPAGE; i++){
line = stream.readLine(85);
if(this->ypos / (this->fontsize + 3) == i){
errorAdjustment(line);
break;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment