Qt 2.1 support again

Fix the Qt code so it compiles wth Qt 2.1 again (Install.Qt still claims
the code works on Qt 2.0 and above).  One or more of the changes made this
week broke compilation on my RedHat Linux 6.2 system.  Qt 2.1 is still the
most recent Qt shipped by RedHat for this version.
This commit is contained in:
cohrs
2002-01-12 07:56:49 +00:00
parent cba72d9cf0
commit cebf048c50
2 changed files with 8 additions and 2 deletions

View File

@@ -2028,7 +2028,8 @@ void NetHackQtLabelledIcon::setFont(const QFont& f)
}
void NetHackQtLabelledIcon::show()
{
if (isHidden()) highlight(hl_bad);
// Note: use of isHidden does not work with Qt 2.1
if (!isVisible()) highlight(hl_bad);
QWidget::show();
}
void NetHackQtLabelledIcon::highlightWhenChanging()
@@ -4538,7 +4539,8 @@ winid NetHackQtBind::qt_create_nhwindow(int type)
window=new NetHackQtTextWindow(keybuffer);
}
if ( splash && !main->isHidden() ) {
// Note: use of isHidden does not work with Qt 2.1
if (splash && main->isVisible()) {
delete splash;
splash = 0;
}