needed in Qt 3 (it make multi-head displays work better). This patch make
that explicit.
}
void NetHackQtLabelledIcon::show()
{
- // Note: use of isHidden does not work with Qt 2.1
- if (!isVisible()) highlight(hl_bad);
+#if QT_VERSION >= 300
+ if (isHidden())
+#else
+ if (!isVisible())
+#endif
+ highlight(hl_bad);
QWidget::show();
}
void NetHackQtLabelledIcon::highlightWhenChanging()
}
// Note: use of isHidden does not work with Qt 2.1
- if (splash && main->isVisible()) {
+ if ( splash
+#if QT_VERSION >= 300
+ && !main->isHidden()
+#else
+ && main->isVisible()
+#endif
+ )
+ {
delete splash;
splash = 0;
}