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:
@@ -2028,8 +2028,12 @@ void NetHackQtLabelledIcon::setFont(const QFont& f)
|
|||||||
}
|
}
|
||||||
void NetHackQtLabelledIcon::show()
|
void NetHackQtLabelledIcon::show()
|
||||||
{
|
{
|
||||||
// Note: use of isHidden does not work with Qt 2.1
|
#if QT_VERSION >= 300
|
||||||
if (!isVisible()) highlight(hl_bad);
|
if (isHidden())
|
||||||
|
#else
|
||||||
|
if (!isVisible())
|
||||||
|
#endif
|
||||||
|
highlight(hl_bad);
|
||||||
QWidget::show();
|
QWidget::show();
|
||||||
}
|
}
|
||||||
void NetHackQtLabelledIcon::highlightWhenChanging()
|
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
|
// 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;
|
delete splash;
|
||||||
splash = 0;
|
splash = 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user