minor refactor

This commit is contained in:
arm64v8a
2023-05-22 11:07:14 +09:00
parent 1b050dd3fb
commit c5122b77e4
98 changed files with 1173 additions and 1142 deletions

View File

@@ -1,9 +1,9 @@
#pragma once
#include "main/NekoRay.hpp"
#include "main/NekoGui.hpp"
#include "ProxyEntity.hpp"
namespace NekoRay {
namespace NekoGui {
class Group : public JsonStore {
public:
int id = -1;
@@ -11,7 +11,7 @@ namespace NekoRay {
QString name = "";
QString url = "";
QString info = "";
qint64 last_update = 0;
qint64 sub_last_update = 0;
// list ui
bool manually_column_width = false;
@@ -21,9 +21,9 @@ namespace NekoRay {
Group();
// 按 id 顺序
[[nodiscard]] QList<QSharedPointer<ProxyEntity>> Profiles() const;
[[nodiscard]] QList<std::shared_ptr<ProxyEntity>> Profiles() const;
// 按 显示 顺序
[[nodiscard]] QList<QSharedPointer<ProxyEntity>> ProfilesWithOrder() const;
[[nodiscard]] QList<std::shared_ptr<ProxyEntity>> ProfilesWithOrder() const;
};
} // namespace NekoRay
} // namespace NekoGui