Mercurial > hg > syntilista
changeset 98:3baea5b17dc9
Add some comments.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Tue, 13 Jun 2017 10:56:31 +0300 |
parents | 65ffedde7dec |
children | 7b8755801111 |
files | src/main.cpp |
diffstat | 1 files changed, 22 insertions(+), 9 deletions(-) [+] |
line wrap: on
line diff
--- a/src/main.cpp Thu Jun 08 13:31:08 2017 +0300 +++ b/src/main.cpp Tue Jun 13 10:56:31 2017 +0300 @@ -328,8 +328,12 @@ } +// +// Application main window destructor +// SyntilistaMainWindow::~SyntilistaMainWindow() { + // Save current settings and free resources saveSettings(); delete ui; @@ -338,6 +342,9 @@ } +// +// Helper function for showing messages in the statusbar/line +// void SyntilistaMainWindow::statusMsg(const QString &msg) { ui->statusbar->showMessage(msg); @@ -368,6 +375,9 @@ } +// +// Window scale / zoom changing +// void SyntilistaMainWindow::changeUIZoomIn() { setScale += 0.1f; @@ -389,6 +399,9 @@ } +// +// Slot for changed selection of person entry +// void SyntilistaMainWindow::selectedPersonChanged(const QModelIndex &curr, const QModelIndex &prev) { (void) prev; @@ -404,14 +417,6 @@ } -void SyntilistaMainWindow::updateSortOrder(int index, Qt::SortOrder order) -{ - peopleSortIndex = index; - peopleSortOrder = order; - updatePersonList(); -} - - void SyntilistaMainWindow::setActivePerson(qint64 id) { currPerson.id = id; @@ -467,8 +472,16 @@ // -// Widget slot handlers +// Slot for changing person list sort order // +void SyntilistaMainWindow::updateSortOrder(int index, Qt::SortOrder order) +{ + peopleSortIndex = index; + peopleSortOrder = order; + updatePersonList(); +} + + void SyntilistaMainWindow::on_button_Quit_clicked() { close();