cutter/src/common/SettingsUpgrade.h

24 lines
665 B
C
Raw Normal View History

#ifndef COMMON_SETTINGS_UPGRADE_H
#define COMMON_SETTINGS_UPGRADE_H
#include <QSettings>
#include <core/Cutter.h>
namespace Cutter {
2021-01-24 14:50:13 +00:00
void initializeSettings();
/**
* @brief Check if Cutter should offer importing settings from version that can't be directly updated.
* @return True if this is first time running Cutter and r2 based Cutter <= 1.12 settings exist.
*/
bool shouldOfferSettingImport();
/**
* @brief Ask user if Cutter should import settings from pre-rizin Cutter.
*
* This function assume that QApplication isn't running yet.
*/
void showSettingImportDialog(int &argc, char **argv);
2021-01-24 14:50:13 +00:00
void migrateThemes();
}
#endif // COMMON_SETTINGS_UPGRADE_H