compile with qt3

This commit is contained in:
dockes 2009-10-15 15:50:27 +00:00
parent 0943836614
commit f61590c31d

View File

@ -585,7 +585,11 @@ bool Preview::makeDocCurrent(const string &fn, size_t sz,
/* Check if we already have this page */
for (int i = 0; i < pvTab->count(); i++) {
#if (QT_VERSION < 0x040000)
QWidget *tw = pvTab->page(i);
#else
QWidget *tw = pvTab->widget(i);
#endif
if (tw) {
PreviewTextEdit *edit =
dynamic_cast<PreviewTextEdit*>(tw->child("pvEdit"));