fix: duplicate member declarations in SettingsView header
- Removed duplicate m_accountService and m_selectedAccountId declarations - Fixed indentation in private section (removed extra spaces) - All member variables now declared once with proper initialization
This commit is contained in:
+15
-18
@@ -42,22 +42,22 @@ signals:
|
|||||||
void accountDeleteRequested(int accountId);
|
void accountDeleteRequested(int accountId);
|
||||||
void themeChanged(const QString &theme);
|
void themeChanged(const QString &theme);
|
||||||
void settingChanged(const QString &key, const QVariant &value);
|
void settingChanged(const QString &key, const QVariant &value);
|
||||||
|
|
||||||
// Categories
|
// Categories
|
||||||
void categoryAddRequested(const Category &cat);
|
void categoryAddRequested(const Category &cat);
|
||||||
void categoryEditRequested(const Category &cat);
|
void categoryEditRequested(const Category &cat);
|
||||||
void categoryDeleteRequested(qint64 categoryId);
|
void categoryDeleteRequested(qint64 categoryId);
|
||||||
|
|
||||||
// Rules
|
// Rules
|
||||||
void ruleAddRequested(const Rule &rule);
|
void ruleAddRequested(const Rule &rule);
|
||||||
void ruleEditRequested(const Rule &rule);
|
void ruleEditRequested(const Rule &rule);
|
||||||
void ruleDeleteRequested(qint64 ruleId);
|
void ruleDeleteRequested(qint64 ruleId);
|
||||||
|
|
||||||
// Templates
|
// Templates
|
||||||
void templateAddRequested(const Template &tmpl);
|
void templateAddRequested(const Template &tmpl);
|
||||||
void templateEditRequested(const Template &tmpl);
|
void templateEditRequested(const Template &tmpl);
|
||||||
void templateDeleteRequested(qint64 templateId);
|
void templateDeleteRequested(qint64 templateId);
|
||||||
|
|
||||||
// Signatures
|
// Signatures
|
||||||
void signatureAddRequested(const Signature &sig);
|
void signatureAddRequested(const Signature &sig);
|
||||||
void signatureEditRequested(const Signature &sig);
|
void signatureEditRequested(const Signature &sig);
|
||||||
@@ -69,26 +69,26 @@ private slots:
|
|||||||
void onEditClicked();
|
void onEditClicked();
|
||||||
void onDeleteClicked();
|
void onDeleteClicked();
|
||||||
void onAccountSelectionChanged();
|
void onAccountSelectionChanged();
|
||||||
|
|
||||||
// Categories
|
// Categories
|
||||||
void onCategorySelectionChanged();
|
void onCategorySelectionChanged();
|
||||||
void onCategoryAddClicked();
|
void onCategoryAddClicked();
|
||||||
void onCategoryEditClicked();
|
void onCategoryEditClicked();
|
||||||
void onCategoryDeleteClicked();
|
void onCategoryDeleteClicked();
|
||||||
|
|
||||||
// Rules
|
// Rules
|
||||||
void onRuleSelectionChanged();
|
void onRuleSelectionChanged();
|
||||||
void onRuleAddClicked();
|
void onRuleAddClicked();
|
||||||
void onRuleEditClicked();
|
void onRuleEditClicked();
|
||||||
void onRuleDeleteClicked();
|
void onRuleDeleteClicked();
|
||||||
void onRuleToggleEnabled();
|
void onRuleToggleEnabled();
|
||||||
|
|
||||||
// Templates
|
// Templates
|
||||||
void onTemplateSelectionChanged();
|
void onTemplateSelectionChanged();
|
||||||
void onTemplateAddClicked();
|
void onTemplateAddClicked();
|
||||||
void onTemplateEditClicked();
|
void onTemplateEditClicked();
|
||||||
void onTemplateDeleteClicked();
|
void onTemplateDeleteClicked();
|
||||||
|
|
||||||
// Signatures
|
// Signatures
|
||||||
void onSignatureSelectionChanged();
|
void onSignatureSelectionChanged();
|
||||||
void onSignatureAddClicked();
|
void onSignatureAddClicked();
|
||||||
@@ -105,20 +105,20 @@ private:
|
|||||||
QWidget* createRulesTab();
|
QWidget* createRulesTab();
|
||||||
QWidget* createTemplatesTab();
|
QWidget* createTemplatesTab();
|
||||||
QWidget* createSignaturesTab();
|
QWidget* createSignaturesTab();
|
||||||
|
|
||||||
// Category helpers
|
// Category helpers
|
||||||
void loadCategories();
|
void loadCategories();
|
||||||
void refreshCategoryTree();
|
void refreshCategoryTree();
|
||||||
QTreeWidgetItem* createCategoryTreeItem(const Category &cat, QTreeWidgetItem *parent = nullptr);
|
QTreeWidgetItem* createCategoryTreeItem(const Category &cat, QTreeWidgetItem *parent = nullptr);
|
||||||
|
|
||||||
// Rule helpers
|
// Rule helpers
|
||||||
void loadRules();
|
void loadRules();
|
||||||
QString ruleToString(const Rule &rule) const;
|
QString ruleToString(const Rule &rule) const;
|
||||||
|
|
||||||
// Template helpers
|
// Template helpers
|
||||||
void loadTemplates();
|
void loadTemplates();
|
||||||
QString templateToString(const Template &tmpl) const;
|
QString templateToString(const Template &tmpl) const;
|
||||||
|
|
||||||
// Signature helpers
|
// Signature helpers
|
||||||
void loadSignatures();
|
void loadSignatures();
|
||||||
QString signatureToString(const Signature &sig) const;
|
QString signatureToString(const Signature &sig) const;
|
||||||
@@ -131,28 +131,25 @@ private:
|
|||||||
QPushButton *m_addBtn;
|
QPushButton *m_addBtn;
|
||||||
QPushButton *m_deleteBtn;
|
QPushButton *m_deleteBtn;
|
||||||
|
|
||||||
AccountService *m_accountService;
|
|
||||||
int m_selectedAccountId;
|
|
||||||
|
|
||||||
// Categories
|
// Categories
|
||||||
QTreeWidget *m_categoryTree;
|
QTreeWidget *m_categoryTree;
|
||||||
QPushButton *m_categoryAddBtn;
|
QPushButton *m_categoryAddBtn;
|
||||||
QPushButton *m_categoryEditBtn;
|
QPushButton *m_categoryEditBtn;
|
||||||
QPushButton *m_categoryDeleteBtn;
|
QPushButton *m_categoryDeleteBtn;
|
||||||
|
|
||||||
// Rules
|
// Rules
|
||||||
QListWidget *m_ruleList;
|
QListWidget *m_ruleList;
|
||||||
QPushButton *m_ruleAddBtn;
|
QPushButton *m_ruleAddBtn;
|
||||||
QPushButton *m_ruleEditBtn;
|
QPushButton *m_ruleEditBtn;
|
||||||
QPushButton *m_ruleDeleteBtn;
|
QPushButton *m_ruleDeleteBtn;
|
||||||
QPushButton *m_ruleToggleBtn;
|
QPushButton *m_ruleToggleBtn;
|
||||||
|
|
||||||
// Templates
|
// Templates
|
||||||
QListWidget *m_templateList;
|
QListWidget *m_templateList;
|
||||||
QPushButton *m_templateAddBtn;
|
QPushButton *m_templateAddBtn;
|
||||||
QPushButton *m_templateEditBtn;
|
QPushButton *m_templateEditBtn;
|
||||||
QPushButton *m_templateDeleteBtn;
|
QPushButton *m_templateDeleteBtn;
|
||||||
|
|
||||||
// Signatures
|
// Signatures
|
||||||
QListWidget *m_signatureList;
|
QListWidget *m_signatureList;
|
||||||
QPushButton *m_signatureAddBtn;
|
QPushButton *m_signatureAddBtn;
|
||||||
|
|||||||
Reference in New Issue
Block a user