comparison ui/mainwindow.cpp @ 732:d39b5b65366e

(UI) Updated png icons in correct sizes.
author Emanuel Schuetze <emanuel@intevation.de>
date Thu, 03 Jul 2014 16:15:02 +0200
parents b0929968562a
children 5f0fca113ff4
comparison
equal deleted inserted replaced
731:0bb54205c55a 732:d39b5b65366e
467 mButtonGroup = new QButtonGroup; 467 mButtonGroup = new QButtonGroup;
468 468
469 TextOverlayButton *updatesButton = new TextOverlayButton; 469 TextOverlayButton *updatesButton = new TextOverlayButton;
470 updatesButton->setToolButtonStyle(Qt::ToolButtonTextUnderIcon); 470 updatesButton->setToolButtonStyle(Qt::ToolButtonTextUnderIcon);
471 updatesButton->setIcon(QIcon(":/img/view-refresh.png")); 471 updatesButton->setIcon(QIcon(":/img/view-refresh.png"));
472 updatesButton->setIconSize(QSize(40, 40)); 472 updatesButton->setIconSize(QSize(48, 48));
473 updatesButton->setText(tr("Updates")); 473 updatesButton->setText(tr("Updates"));
474 updatesButton->setFixedWidth(120); 474 updatesButton->setFixedWidth(120);
475 updatesButton->setFixedHeight(80); 475 updatesButton->setFixedHeight(90);
476 updatesButton->setCheckable(true); 476 updatesButton->setCheckable(true);
477 updatesButton->setChecked(true); 477 updatesButton->setChecked(true);
478 478
479 connect(this, SIGNAL(changesChanged(const QString&)), 479 connect(this, SIGNAL(changesChanged(const QString&)),
480 updatesButton, SLOT(setOverlay(const QString&))); 480 updatesButton, SLOT(setOverlay(const QString&)));
481 481
482 QToolButton *allInstallButton = new QToolButton; 482 QToolButton *allInstallButton = new QToolButton;
483 allInstallButton->setToolButtonStyle(Qt::ToolButtonTextUnderIcon); 483 allInstallButton->setToolButtonStyle(Qt::ToolButtonTextUnderIcon);
484 allInstallButton->setIcon(QIcon(":/img/document-encrypt.png")); 484 allInstallButton->setIcon(QIcon(":/img/document-encrypt.png"));
485 allInstallButton->setIconSize(QSize(40, 40)); 485 allInstallButton->setIconSize(QSize(48, 48));
486 allInstallButton->setText(tr("Trusted\ncertificates")); 486 allInstallButton->setText(tr("Trusted\ncertificates"));
487 allInstallButton->setFixedWidth(120); 487 allInstallButton->setFixedWidth(120);
488 allInstallButton->setFixedHeight(80); 488 allInstallButton->setFixedHeight(90);
489 allInstallButton->setCheckable(true); 489 allInstallButton->setCheckable(true);
490 490
491 QToolButton *allRemoveButton = new QToolButton; 491 QToolButton *allRemoveButton = new QToolButton;
492 allRemoveButton->setToolButtonStyle(Qt::ToolButtonTextUnderIcon); 492 allRemoveButton->setToolButtonStyle(Qt::ToolButtonTextUnderIcon);
493 allRemoveButton->setIcon(QIcon(":/img/dialog-warning.png")); 493 allRemoveButton->setIcon(QIcon(":/img/dialog-warning.png"));
494 allRemoveButton->setIconSize(QSize(40, 40)); 494 allRemoveButton->setIconSize(QSize(48, 48));
495 allRemoveButton->setText(tr("Revoked\ncertificates")); 495 allRemoveButton->setText(tr("Revoked\ncertificates"));
496 allRemoveButton->setFixedWidth(120); 496 allRemoveButton->setFixedWidth(120);
497 allRemoveButton->setFixedHeight(80); 497 allRemoveButton->setFixedHeight(90);
498 allRemoveButton->setCheckable(true); 498 allRemoveButton->setCheckable(true);
499 499
500 QToolButton *infoButton = new QToolButton; 500 QToolButton *infoButton = new QToolButton;
501 infoButton->setToolButtonStyle(Qt::ToolButtonTextUnderIcon); 501 infoButton->setToolButtonStyle(Qt::ToolButtonTextUnderIcon);
502 infoButton->setIcon(QIcon(":/img/dialog-information.png")); 502 infoButton->setIcon(QIcon(":/img/dialog-information.png"));
503 infoButton->setIconSize(QSize(40, 40)); 503 infoButton->setIconSize(QSize(48, 48));
504 infoButton->setText(tr("Information\nand help")); 504 infoButton->setText(tr("Information\nand help"));
505 infoButton->setFixedWidth(120); 505 infoButton->setFixedWidth(120);
506 infoButton->setFixedHeight(80); 506 infoButton->setFixedHeight(90);
507 infoButton->setCheckable(true); 507 infoButton->setCheckable(true);
508 508
509 mButtonGroup->addButton(updatesButton); 509 mButtonGroup->addButton(updatesButton);
510 mButtonGroup->addButton(allInstallButton); 510 mButtonGroup->addButton(allInstallButton);
511 mButtonGroup->addButton(allRemoveButton); 511 mButtonGroup->addButton(allRemoveButton);
582 if (is_admin()) { 582 if (is_admin()) {
583 QIcon uacShield = QApplication::style()->standardIcon(QStyle::SP_VistaShield); 583 QIcon uacShield = QApplication::style()->standardIcon(QStyle::SP_VistaShield);
584 mInstallButton->setIcon(uacShield); 584 mInstallButton->setIcon(uacShield);
585 } 585 }
586 #else 586 #else
587 mInstallButton->setIcon(QIcon(":/img/view-refresh.png")); 587 mInstallButton->setIcon(QIcon(":/img/view-refresh_16px.png"));
588 #endif 588 #endif
589 connect(mQuitButton, SIGNAL(clicked()), this, SLOT(closeApp())); 589 connect(mQuitButton, SIGNAL(clicked()), this, SLOT(closeApp()));
590 connect(mInstallButton, SIGNAL(clicked()), this, SLOT(checkAndInstallCerts())); 590 connect(mInstallButton, SIGNAL(clicked()), this, SLOT(checkAndInstallCerts()));
591 591
592 // addWidget(*Widget, row, column, rowspan, colspan) 592 // addWidget(*Widget, row, column, rowspan, colspan)

http://wald.intevation.org/projects/trustbridge/