--- s10k/CommonUtils/util.h 2017/10/05 17:48:32 1073 +++ s10k/CommonUtils/util.h 2019/02/16 17:23:09 1109 @@ -1,5 +1,5 @@ /** - * Copyright (C) 2017 - Fábio Bento (random-guy) + * Copyright (C) 2017 - 2018 Fábio Bento (fabiobento512) * * This library is distributed under the MIT License. See notice at the end * of this file. @@ -64,7 +64,7 @@ QString fileHash(const QString &fileName QString getAppPath(); -bool backupFile(QString file); +bool backupFile(const QString &file, QString newFilename=""); } @@ -95,15 +95,11 @@ const char* boolToCstr(bool currentBoole #ifdef QT_GUI_LIB namespace Dialogs { -void showInfo(const QString &message); +void showInfo(const QString &message, const bool richText = false); -void showRichInfo(const QString &message); +void showWarning(const QString &message, const bool richText = false); -void showWarning(const QString &message); - -void showError(const QString &message); - -void showRichError(const QString &message); +void showError(const QString &message, const bool richText = false); bool showQuestion(QWidget * parent, QString message, QMessageBox::StandardButton standardButton=QMessageBox::NoButton); @@ -150,6 +146,7 @@ QRect getScreenResolution(); #ifdef QT_GUI_LIB namespace StatusBar { +void showInfo(QStatusBar * const statusBar, const QString &message); void showError(QStatusBar * const statusBar, const QString &message); void showSuccess(QStatusBar * const statusBar,const QString &message); @@ -161,7 +158,7 @@ void showSuccess(QStatusBar * const sta #endif // UTIL_H /** - * Copyright (c) 2017 - Fábio Bento (random-guy) + * Copyright (c) 2017 - 2018 Fábio Bento (fabiobento512) * * Permission is hereby granted, free of charge, to any person * obtaining a copy of this software and associated documentation