- EmailListModel: QAbstractListModel with canFetchMore/fetchMore
* Batch loading (default 50 emails per fetch)
* Total count query for scrollbar
* TotalCountChanged signal
* Paginated DB queries: findAllPaginated, findByFolderIdPaginated
* Count queries: countAll, countByFolderId
- MailItemDao: new paginated methods
* findAllPaginated(offset, limit, filters...)
* findByFolderIdPaginated(folderId, offset, limit, filters...)
* countAll(filters...), countByFolderId(folderId, filters...)
- MailListView: scroll-triggered fetchMore
* Connects verticalScrollBar valueChanged on both TreeView and ListView
* Triggers fetchMore at 90% scroll threshold
* onRowsInserted updates EmailTreeModel when new emails arrive
* Works in both normal (tree) and compact (list) views
- EmailTreeModel: hierarchical model for grouped email view (QTreeView)
- DateGroupProxyModel: proxy model for date-based grouping logic
- MailListView: migrated from QTableView to QTreeView with grouping support
- ReaderView: subject frame with shadow, avatar moved to header, body inside header
- MainWindow: frameless with rounded corners, 1px border, edge resize, no status bar
- Stability fixes for grouping mode switch:
* Proper tree cleanup (no double-delete of root)
* Bounds checking on all array accesses
* Null pointer checks in index/parent/data methods
* Date validity checks before grouping
* Index validation before accessing m_emails
- ReaderView: complete rewrite with CSS styling, headers, attachments, zoom, find, dark mode, image blocking
- Categories: DAO + UI tree widget with colors, nested categories, assignment
- Rules engine: DAO + evaluation + actions (move, mark read, flag, delete, category, forward)
- Templates: DAO + editor + manager with variables support
- Signatures: DAO + manager + auto-per-account + manual selector in compose
- ComposeView: signature combo, template selector, auto-signature on new email
- MainWindow: frameless with rounded corners, 1px border, resize from edges, no status bar
- Database: new tables (Category, MailCategory, Rule, Template, Signature) with indexes
- Changed EmailListModel from QAbstractListModel to QAbstractTableModel
- Added columnCount() returning 3 columns (Subject, Sender, Date)
- Added headerData() for column headers (Asunto, De, Fecha)
- Modified data() to handle Qt::DisplayRole per column index
- Updated MailListView::setModel() to use column indices instead of role-based column hiding
- Added proper column resize modes (Stretch for Subject/Sender, ResizeToContents for Date)
- Default sort by Date column descending