diff --git a/win/Qt/Install.Qt b/win/Qt/Install.Qt index a92d13bf2..19a643e59 100644 --- a/win/Qt/Install.Qt +++ b/win/Qt/Install.Qt @@ -21,6 +21,10 @@ To use this code: interfaces (in which case be sure you have the right curses libraries etc. required for that interface). + If you are using Qt 2.1 or earlier, you will need to undefine + USER_SOUNDS as these versions of Qt do no include the necessary + library support. + 3. ../../src/Makefile ensure your QTDIR environment variable was set correctly when diff --git a/win/Qt/qt_win.cpp b/win/Qt/qt_win.cpp index 848a3d64c..5aba22bf3 100644 --- a/win/Qt/qt_win.cpp +++ b/win/Qt/qt_win.cpp @@ -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; }