mirror of
https://github.com/x-tools-author/x-tools.git
synced 2025-09-15 15:28:40 +08:00
chore: remove useless code
This commit is contained in:
parent
d6cc256d10
commit
84e04b4878
@ -76,26 +76,6 @@ void xToolsSettings::setHdpiPolicy(int policy)
|
|||||||
emit hdpiPolicyChanged();
|
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()
|
QString xToolsSettings::appStyle()
|
||||||
{
|
{
|
||||||
return value(mSettingsKey.appStyle, SAK_STYLE_DEFAULT).toString();
|
return value(mSettingsKey.appStyle, SAK_STYLE_DEFAULT).toString();
|
||||||
|
|||||||
@ -24,12 +24,6 @@ class xToolsSettings : public QSettings
|
|||||||
Q_PROPERTY(int palette READ palette WRITE setPalette NOTIFY paletteChanged)
|
Q_PROPERTY(int palette READ palette WRITE setPalette NOTIFY paletteChanged)
|
||||||
Q_PROPERTY(QString customPalette READ customPalette WRITE setCustomPalette NOTIFY customPaletteChanged)
|
Q_PROPERTY(QString customPalette READ customPalette WRITE setCustomPalette NOTIFY customPaletteChanged)
|
||||||
// clang-format on
|
// clang-format on
|
||||||
public:
|
|
||||||
enum UiType {
|
|
||||||
UiTypeWidget,
|
|
||||||
UiTypeQml,
|
|
||||||
};
|
|
||||||
Q_ENUM(UiType)
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
explicit xToolsSettings(QObject *parent = nullptr);
|
explicit xToolsSettings(QObject *parent = nullptr);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user