Mark datei_ifFileExists deprecated ...
... use QFileInfo::exists()
This commit is contained in:
parent
acc91e1262
commit
ec7da3cc45
@ -840,6 +840,9 @@ QByteArray datei_readFromFile(QString filename)
|
|||||||
return myBA;
|
return myBA;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* deprecated - use QFileInfo
|
||||||
|
*/
|
||||||
bool datei_ifFileExists(QString filename)
|
bool datei_ifFileExists(QString filename)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
1
datei.h
1
datei.h
@ -194,6 +194,7 @@ void datei_closeFile(QString filename);
|
|||||||
// read content of an exiting file:
|
// read content of an exiting file:
|
||||||
QByteArray datei_readFromFile(QString filename);
|
QByteArray datei_readFromFile(QString filename);
|
||||||
|
|
||||||
|
// deprecated - user QFileInfo
|
||||||
bool datei_ifFileExists(QString filename);
|
bool datei_ifFileExists(QString filename);
|
||||||
|
|
||||||
char datei_writeToFile(QString filename, QByteArray content);
|
char datei_writeToFile(QString filename, QByteArray content);
|
||||||
|
@ -132,7 +132,7 @@ void T_win13::Nav_next(void)
|
|||||||
void T_win13::slot_pb1(void)
|
void T_win13::slot_pb1(void)
|
||||||
{
|
{
|
||||||
showFile->clear();
|
showFile->clear();
|
||||||
if (datei_ifFileExists(FILENAME_CONFIG))
|
if (QFileInfo::exists(FILENAME_CONFIG))
|
||||||
{
|
{
|
||||||
loadedFile=datei_readFromFile(FILENAME_CONFIG);
|
loadedFile=datei_readFromFile(FILENAME_CONFIG);
|
||||||
showFile->append(loadedFile);
|
showFile->append(loadedFile);
|
||||||
@ -145,7 +145,7 @@ void T_win13::slot_pb1(void)
|
|||||||
void T_win13::slot_pb2(void)
|
void T_win13::slot_pb2(void)
|
||||||
{
|
{
|
||||||
showFile->clear();
|
showFile->clear();
|
||||||
if (datei_ifFileExists(FILENAME_DEVICE))
|
if (QFileInfo::exists(FILENAME_DEVICE))
|
||||||
{
|
{
|
||||||
loadedFile=datei_readFromFile(FILENAME_DEVICE);
|
loadedFile=datei_readFromFile(FILENAME_DEVICE);
|
||||||
showFile->append(loadedFile);
|
showFile->append(loadedFile);
|
||||||
@ -158,7 +158,7 @@ void T_win13::slot_pb2(void)
|
|||||||
void T_win13::slot_pb3(void)
|
void T_win13::slot_pb3(void)
|
||||||
{
|
{
|
||||||
showFile->clear();
|
showFile->clear();
|
||||||
if (datei_ifFileExists(FILENAME_CASH))
|
if (QFileInfo::exists(FILENAME_CASH))
|
||||||
{
|
{
|
||||||
loadedFile=datei_readFromFile(FILENAME_CASH);
|
loadedFile=datei_readFromFile(FILENAME_CASH);
|
||||||
showFile->append(loadedFile);
|
showFile->append(loadedFile);
|
||||||
@ -171,7 +171,7 @@ void T_win13::slot_pb3(void)
|
|||||||
void T_win13::slot_pb4(void)
|
void T_win13::slot_pb4(void)
|
||||||
{
|
{
|
||||||
showFile->clear();
|
showFile->clear();
|
||||||
if (datei_ifFileExists(FILENAME_PRINT))
|
if (QFileInfo::exists(FILENAME_PRINT))
|
||||||
{
|
{
|
||||||
loadedFile=datei_readFromFile(FILENAME_PRINT);
|
loadedFile=datei_readFromFile(FILENAME_PRINT);
|
||||||
showFile->append(loadedFile);
|
showFile->append(loadedFile);
|
||||||
|
Loading…
Reference in New Issue
Block a user