# HG changeset patch # User Matti Hamalainen # Date 1491608521 -10800 # Node ID d7a2a48ebe244a26dcc7f3c45a893b66a7d22697 # Parent 423d2383a605a04f20e3cc470d2cdb062b5ca401 Add a separate "About" button, don't use the logo as one. Change logo widget back to QLabel. diff -r 423d2383a605 -r d7a2a48ebe24 main.cpp --- a/main.cpp Sat Apr 08 02:16:48 2017 +0300 +++ b/main.cpp Sat Apr 08 02:42:01 2017 +0300 @@ -224,8 +224,8 @@ arg(tr(APP_VERSION))); QPixmap logoImage(":/img/logo.png"); - ui->button_LogoImage->setIcon(QIcon(logoImage)); - ui->button_LogoImage->setIconSize(logoImage.rect().size()); + ui->button_LogoImage->setPixmap(logoImage); + ui->button_LogoImage->setAlignment(Qt::AlignCenter); ui->edit_Amount->setValidator(new QDoubleValidator(0, 1000, 2, this)); setCommonStyleSheet(this); @@ -420,7 +420,7 @@ } -void SyntilistaMainWindow::on_button_LogoImage_clicked() +void SyntilistaMainWindow::on_button_About_clicked() { QMessageBox::about( this, diff -r 423d2383a605 -r d7a2a48ebe24 main.h --- a/main.h Sat Apr 08 02:16:48 2017 +0300 +++ b/main.h Sat Apr 08 02:42:01 2017 +0300 @@ -127,7 +127,7 @@ void on_button_Quit_clicked(); - void on_button_LogoImage_clicked(); + void on_button_About_clicked(); void on_button_AddDebt_clicked(); diff -r 423d2383a605 -r d7a2a48ebe24 mainwindow.ui --- a/mainwindow.ui Sat Apr 08 02:16:48 2017 +0300 +++ b/mainwindow.ui Sat Apr 08 02:42:01 2017 +0300 @@ -227,13 +227,10 @@ - + - - true - @@ -255,6 +252,26 @@ QLayout::SetMinimumSize + + + ? + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + Poistu ohjelmasta @@ -276,7 +293,7 @@ button_Quit - +