rem: int setupDialog::queryFile( QWidget *parent, const QString& filelabel, const QString &filename) { FUNCTIONSETUP;  if (filename.isNull()) return QueryNull; if (filename.length()<1) return QueryNull;  #ifdef DEBUG if (debug_level & UI_TEDIOUS) { kdDebug() << fname << ": Checking for existence of " << filelabel.latin1() << ' ' << filename.latin1() << endl; } #endif  QFileInfo info(filename); if (!info.exists()) { QString msg=filelabel.arg(filename); msg+='\n'; msg+=i18n("Really use this file?");  #ifdef DEBUG if (debug_level & UI_MAJOR) { kdDebug() << fname << ": " << msg.latin1() << endl; } #endif   int rc=KMessageBox::questionYesNo(parent, msg, i18n("Missing file?"));  #ifdef DEBUG if (debug_level) { kdDebug() << fname << ": User said " << rc << " about using " "nonexistent file." << endl; } #endif  return rc; }  return QueryFileExists; }
add: int queryFile( const QString& filelabel, const QString &filename) { return queryFile(this,filelabel,filename); };
context: /* static */ int setupDialog::queryFile(	QWidget *parent,	const QString& filelabel,	const QString &filename){	FUNCTIONSETUP;	if (filename.isNull()) return QueryNull;	if (filename.length()<1) return QueryNull;#ifdef DEBUG	if (debug_level & UI_TEDIOUS)	{		kdDebug() << fname << ": Checking for existence of "			<< filelabel.latin1() << ' ' << filename.latin1() << endl;	}#endif	QFileInfo info(filename);	if (!info.exists())	{		QString msg=filelabel.arg(filename);		msg+='\n';		msg+=i18n("Really use this file?");#ifdef DEBUG		if (debug_level & UI_MAJOR)		{			kdDebug() << fname << ": " << msg.latin1() << endl;		}#endif		int rc=KMessageBox::questionYesNo(parent,			msg,			i18n("Missing file?"));		#ifdef DEBUG		if (debug_level)		{			kdDebug() << fname << ": User said "				<< rc << " about using "				"nonexistent file." << endl;		}#endif		return rc;	}	return QueryFileExists;}