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 themeChanged(const QString &theme);
|
||||
void settingChanged(const QString &key, const QVariant &value);
|
||||
|
||||
|
||||
// Categories
|
||||
void categoryAddRequested(const Category &cat);
|
||||
void categoryEditRequested(const Category &cat);
|
||||
void categoryDeleteRequested(qint64 categoryId);
|
||||
|
||||
|
||||
// Rules
|
||||
void ruleAddRequested(const Rule &rule);
|
||||
void ruleEditRequested(const Rule &rule);
|
||||
void ruleDeleteRequested(qint64 ruleId);
|
||||
|
||||
|
||||
// Templates
|
||||
void templateAddRequested(const Template &tmpl);
|
||||
void templateEditRequested(const Template &tmpl);
|
||||
void templateDeleteRequested(qint64 templateId);
|
||||
|
||||
|
||||
// Signatures
|
||||
void signatureAddRequested(const Signature &sig);
|
||||
void signatureEditRequested(const Signature &sig);
|
||||
@@ -69,26 +69,26 @@ private slots:
|
||||
void onEditClicked();
|
||||
void onDeleteClicked();
|
||||
void onAccountSelectionChanged();
|
||||
|
||||
|
||||
// Categories
|
||||
void onCategorySelectionChanged();
|
||||
void onCategoryAddClicked();
|
||||
void onCategoryEditClicked();
|
||||
void onCategoryDeleteClicked();
|
||||
|
||||
|
||||
// Rules
|
||||
void onRuleSelectionChanged();
|
||||
void onRuleAddClicked();
|
||||
void onRuleEditClicked();
|
||||
void onRuleDeleteClicked();
|
||||
void onRuleToggleEnabled();
|
||||
|
||||
|
||||
// Templates
|
||||
void onTemplateSelectionChanged();
|
||||
void onTemplateAddClicked();
|
||||
void onTemplateEditClicked();
|
||||
void onTemplateDeleteClicked();
|
||||
|
||||
|
||||
// Signatures
|
||||
void onSignatureSelectionChanged();
|
||||
void onSignatureAddClicked();
|
||||
@@ -105,20 +105,20 @@ private:
|
||||
QWidget* createRulesTab();
|
||||
QWidget* createTemplatesTab();
|
||||
QWidget* createSignaturesTab();
|
||||
|
||||
|
||||
// Category helpers
|
||||
void loadCategories();
|
||||
void refreshCategoryTree();
|
||||
QTreeWidgetItem* createCategoryTreeItem(const Category &cat, QTreeWidgetItem *parent = nullptr);
|
||||
|
||||
|
||||
// Rule helpers
|
||||
void loadRules();
|
||||
QString ruleToString(const Rule &rule) const;
|
||||
|
||||
|
||||
// Template helpers
|
||||
void loadTemplates();
|
||||
QString templateToString(const Template &tmpl) const;
|
||||
|
||||
|
||||
// Signature helpers
|
||||
void loadSignatures();
|
||||
QString signatureToString(const Signature &sig) const;
|
||||
@@ -131,28 +131,25 @@ private:
|
||||
QPushButton *m_addBtn;
|
||||
QPushButton *m_deleteBtn;
|
||||
|
||||
AccountService *m_accountService;
|
||||
int m_selectedAccountId;
|
||||
|
||||
// Categories
|
||||
QTreeWidget *m_categoryTree;
|
||||
QPushButton *m_categoryAddBtn;
|
||||
QPushButton *m_categoryEditBtn;
|
||||
QPushButton *m_categoryDeleteBtn;
|
||||
|
||||
|
||||
// Rules
|
||||
QListWidget *m_ruleList;
|
||||
QPushButton *m_ruleAddBtn;
|
||||
QPushButton *m_ruleEditBtn;
|
||||
QPushButton *m_ruleDeleteBtn;
|
||||
QPushButton *m_ruleToggleBtn;
|
||||
|
||||
|
||||
// Templates
|
||||
QListWidget *m_templateList;
|
||||
QPushButton *m_templateAddBtn;
|
||||
QPushButton *m_templateEditBtn;
|
||||
QPushButton *m_templateDeleteBtn;
|
||||
|
||||
|
||||
// Signatures
|
||||
QListWidget *m_signatureList;
|
||||
QPushButton *m_signatureAddBtn;
|
||||
|
||||
Reference in New Issue
Block a user