isHidden() is not in Qt 2.1. It's only *really*

needed in Qt 3 (it make multi-head displays work better). This patch make
that explicit.
This commit is contained in:
warwick
2002-01-13 01:08:41 +00:00
parent 15e5fc1a95
commit b31f25cc25

View File

@@ -2028,8 +2028,12 @@ void NetHackQtLabelledIcon::setFont(const QFont& f)
}
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()
@@ -4546,7 +4550,14 @@ winid NetHackQtBind::qt_create_nhwindow(int type)
}
// 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;
}