chore: remove useless code

This commit is contained in:
x-tools-author 2024-03-25 15:01:01 +08:00
parent d6cc256d10
commit 84e04b4878
2 changed files with 0 additions and 26 deletions

View File

@ -76,26 +76,6 @@ void xToolsSettings::setHdpiPolicy(int policy)
emit hdpiPolicyChanged();
}
int xToolsSettings::uiType()
{
int ret = value(mSettingsKey.uiType).toInt();
if ((ret < 0) || (ret > 1)) {
ret = UiTypeWidget;
}
return ret;
}
void xToolsSettings::setUiType(int type)
{
if ((type < 0) || (type > 1)) {
type = UiTypeWidget;
}
setValue(mSettingsKey.uiType, type);
emit uiTypeChanged();
}
QString xToolsSettings::appStyle()
{
return value(mSettingsKey.appStyle, SAK_STYLE_DEFAULT).toString();

View File

@ -24,12 +24,6 @@ class xToolsSettings : public QSettings
Q_PROPERTY(int palette READ palette WRITE setPalette NOTIFY paletteChanged)
Q_PROPERTY(QString customPalette READ customPalette WRITE setCustomPalette NOTIFY customPaletteChanged)
// clang-format on
public:
enum UiType {
UiTypeWidget,
UiTypeQml,
};
Q_ENUM(UiType)
private:
explicit xToolsSettings(QObject *parent = nullptr);