# HG changeset patch # User Matti Hamalainen # Date 1499331892 -10800 # Node ID f0db8267911b4d63b30de0a4bc18f5cf64399de0 # Parent 404d567edaab5f58bb9048aa12f2e5d24dfaedaf Add comments. diff -r 404d567edaab -r f0db8267911b src/main.cpp --- 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;