Mercurial > hg > syntilista
changeset 122:f0db8267911b
Add comments.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Thu, 06 Jul 2017 12:04:52 +0300 |
parents | 404d567edaab |
children | e76d85ea87ac |
files | src/main.cpp |
diffstat | 1 files changed, 8 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/main.cpp Thu Jul 06 10:53:07 2017 +0300 +++ b/src/main.cpp Thu Jul 06 12:04:52 2017 +0300 @@ -264,12 +264,13 @@ // Read config readSettings(); - // Setup other UI things + // Setup application icon and window title setWindowIcon(QIcon(QPixmap(":/img/icon-64.png"))); setWindowTitle(tr("%1 versio %3"). arg(tr(APP_NAME)). arg(tr(APP_VERSION))); + // Setup large logo in the main window QPixmap logoImage(":/img/logo.png"); ui->button_LogoImage->setPixmap(logoImage); ui->button_LogoImage->setAlignment(Qt::AlignCenter); @@ -368,6 +369,9 @@ } +// +// Restoring and saving of current settings +// void SyntilistaMainWindow::readSettings() { QSettings settings(APP_VENDOR, APP_ID); @@ -434,6 +438,9 @@ } +// +// Set currently active person to given SQL id +// void SyntilistaMainWindow::setActivePerson(qint64 id) { currPerson.id = id;