Actualizaciones varias: mejoras en cuenta, sincronización, UI
This commit is contained in:
+18
-2
@@ -12,6 +12,7 @@
|
||||
#include <QRadioButton>
|
||||
#include <QButtonGroup>
|
||||
#include <QVariant>
|
||||
#include "services/accountservice.h"
|
||||
|
||||
class SettingsView : public QWidget {
|
||||
Q_OBJECT
|
||||
@@ -20,13 +21,22 @@ public:
|
||||
explicit SettingsView(QWidget *parent = nullptr);
|
||||
~SettingsView() override = default;
|
||||
|
||||
void setAccountService(AccountService *service);
|
||||
|
||||
signals:
|
||||
void accountAddRequested();
|
||||
void accountEditRequested(int accountIndex);
|
||||
void accountDeleteRequested(int accountIndex);
|
||||
void accountEditRequested(int accountId);
|
||||
void accountDeleteRequested(int accountId);
|
||||
void themeChanged(const QString &theme);
|
||||
void settingChanged(const QString &key, const QVariant &value);
|
||||
|
||||
private slots:
|
||||
void onAccountListChanged();
|
||||
void loadAccounts();
|
||||
void onEditClicked();
|
||||
void onDeleteClicked();
|
||||
void onAccountSelectionChanged();
|
||||
|
||||
private:
|
||||
void setupUI();
|
||||
QWidget* createAccountsTab();
|
||||
@@ -37,4 +47,10 @@ private:
|
||||
QListWidget *m_accountList;
|
||||
QComboBox *m_syncIntervalCombo;
|
||||
QButtonGroup *m_themeGroup;
|
||||
QPushButton *m_editBtn;
|
||||
QPushButton *m_addBtn;
|
||||
QPushButton *m_deleteBtn;
|
||||
|
||||
AccountService *m_accountService;
|
||||
int m_selectedAccountId;
|
||||
};
|
||||
Reference in New Issue
Block a user