|
a/src/qtgui/preview_w.cpp |
|
b/src/qtgui/preview_w.cpp |
1 |
#ifndef lint
|
1 |
#ifndef lint
|
2 |
static char rcsid[] = "@(#$Id: preview_w.cpp,v 1.37 2008-10-03 08:09:35 dockes Exp $ (C) 2005 J.F.Dockes";
|
2 |
static char rcsid[] = "@(#$Id: preview_w.cpp,v 1.38 2008-10-03 16:02:07 dockes Exp $ (C) 2005 J.F.Dockes";
|
3 |
#endif
|
3 |
#endif
|
4 |
/*
|
4 |
/*
|
5 |
* This program is free software; you can redistribute it and/or modify
|
5 |
* This program is free software; you can redistribute it and/or modify
|
6 |
* it under the terms of the GNU General Public License as published by
|
6 |
* it under the terms of the GNU General Public License as published by
|
7 |
* the Free Software Foundation; either version 2 of the License, or
|
7 |
* the Free Software Foundation; either version 2 of the License, or
|
|
... |
|
... |
914 |
it != qrichlst.end(); it++, prog++, instep++) {
|
914 |
it != qrichlst.end(); it++, prog++, instep++) {
|
915 |
progress.setProgress(prog , prog <= nsteps-1 ? nsteps : prog+1);
|
915 |
progress.setProgress(prog , prog <= nsteps-1 ? nsteps : prog+1);
|
916 |
qApp->processEvents();
|
916 |
qApp->processEvents();
|
917 |
|
917 |
|
918 |
editor->append(*it);
|
918 |
editor->append(*it);
|
919 |
LOGDEB(("Preview:: loaded: [%s]\n",
|
919 |
|
920 |
string((const char *)(*it).utf8()).c_str()));
|
|
|
921 |
// Stay at top
|
920 |
// Stay at top
|
922 |
if (instep < 5) {
|
921 |
if (instep < 5) {
|
923 |
editor->setCursorPosition(0,0);
|
922 |
editor->setCursorPosition(0,0);
|
924 |
editor->ensureCursorVisible();
|
923 |
editor->ensureCursorVisible();
|
925 |
}
|
924 |
}
|