Mark datei_ifFileExists deprecated ...

... use QFileInfo::exists()
This commit is contained in:
Siegfried Siegert 2024-06-05 10:41:15 +02:00
parent acc91e1262
commit ec7da3cc45
Signed by untrusted user: SiegfriedSiegert
GPG Key ID: 68371E015E8F0B03
3 changed files with 8 additions and 4 deletions

View File

@ -840,6 +840,9 @@ QByteArray datei_readFromFile(QString filename)
return myBA;
}
/*
* deprecated - use QFileInfo
*/
bool datei_ifFileExists(QString filename)
{

View File

@ -194,6 +194,7 @@ void datei_closeFile(QString filename);
// read content of an exiting file:
QByteArray datei_readFromFile(QString filename);
// deprecated - user QFileInfo
bool datei_ifFileExists(QString filename);
char datei_writeToFile(QString filename, QByteArray content);

View File

@ -132,7 +132,7 @@ void T_win13::Nav_next(void)
void T_win13::slot_pb1(void)
{
showFile->clear();
if (datei_ifFileExists(FILENAME_CONFIG))
if (QFileInfo::exists(FILENAME_CONFIG))
{
loadedFile=datei_readFromFile(FILENAME_CONFIG);
showFile->append(loadedFile);
@ -145,7 +145,7 @@ void T_win13::slot_pb1(void)
void T_win13::slot_pb2(void)
{
showFile->clear();
if (datei_ifFileExists(FILENAME_DEVICE))
if (QFileInfo::exists(FILENAME_DEVICE))
{
loadedFile=datei_readFromFile(FILENAME_DEVICE);
showFile->append(loadedFile);
@ -158,7 +158,7 @@ void T_win13::slot_pb2(void)
void T_win13::slot_pb3(void)
{
showFile->clear();
if (datei_ifFileExists(FILENAME_CASH))
if (QFileInfo::exists(FILENAME_CASH))
{
loadedFile=datei_readFromFile(FILENAME_CASH);
showFile->append(loadedFile);
@ -171,7 +171,7 @@ void T_win13::slot_pb3(void)
void T_win13::slot_pb4(void)
{
showFile->clear();
if (datei_ifFileExists(FILENAME_PRINT))
if (QFileInfo::exists(FILENAME_PRINT))
{
loadedFile=datei_readFromFile(FILENAME_PRINT);
showFile->append(loadedFile);