Skip to content

Instantly share code, notes, and snippets.

@lettergram
Created March 19, 2015 00:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lettergram/74a3011319730796007e to your computer and use it in GitHub Desktop.
Save lettergram/74a3011319730796007e to your computer and use it in GitHub Desktop.
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