Mercurial > trustbridge
comparison ui/mainwindow.cpp @ 673:e8bc1215904e
(UI) Changed some icons.
author | Emanuel Schuetze <emanuel@intevation.de> |
---|---|
date | Fri, 27 Jun 2014 11:51:53 +0200 |
parents | 7147550ee15d |
children | 69def231f5ac |
comparison
equal
deleted
inserted
replaced
672:376978e9cc61 | 673:e8bc1215904e |
---|---|
459 mButtonGroup = new QButtonGroup; | 459 mButtonGroup = new QButtonGroup; |
460 | 460 |
461 QToolButton *updatesButton = new QToolButton; | 461 QToolButton *updatesButton = new QToolButton; |
462 updatesButton->setToolButtonStyle(Qt::ToolButtonTextUnderIcon); | 462 updatesButton->setToolButtonStyle(Qt::ToolButtonTextUnderIcon); |
463 updatesButton->setIcon(QIcon(":/img/view-refresh.png")); | 463 updatesButton->setIcon(QIcon(":/img/view-refresh.png")); |
464 updatesButton->setIconSize(QSize(32, 32)); | 464 updatesButton->setIconSize(QSize(40, 40)); |
465 updatesButton->setText(tr("Updates")); | 465 updatesButton->setText(tr("Updates")); |
466 updatesButton->setFixedWidth(120); | 466 updatesButton->setFixedWidth(120); |
467 updatesButton->setFixedHeight(75); | 467 updatesButton->setFixedHeight(80); |
468 updatesButton->setCheckable(true); | 468 updatesButton->setCheckable(true); |
469 updatesButton->setChecked(true); | 469 updatesButton->setChecked(true); |
470 | 470 |
471 QToolButton *allInstallButton = new QToolButton; | 471 QToolButton *allInstallButton = new QToolButton; |
472 allInstallButton->setToolButtonStyle(Qt::ToolButtonTextUnderIcon); | 472 allInstallButton->setToolButtonStyle(Qt::ToolButtonTextUnderIcon); |
473 allInstallButton->setIcon(QIcon(":/img/document-encrypt.png")); | 473 allInstallButton->setIcon(QIcon(":/img/document-encrypt.png")); |
474 allInstallButton->setIconSize(QSize(32, 32)); | 474 allInstallButton->setIconSize(QSize(40, 40)); |
475 allInstallButton->setText(tr("Trusted\ncertificates")); | 475 allInstallButton->setText(tr("Trusted\ncertificates")); |
476 allInstallButton->setFixedWidth(120); | 476 allInstallButton->setFixedWidth(120); |
477 allInstallButton->setFixedHeight(75); | 477 allInstallButton->setFixedHeight(80); |
478 allInstallButton->setCheckable(true); | 478 allInstallButton->setCheckable(true); |
479 | 479 |
480 QToolButton *allRemoveButton = new QToolButton; | 480 QToolButton *allRemoveButton = new QToolButton; |
481 allRemoveButton->setToolButtonStyle(Qt::ToolButtonTextUnderIcon); | 481 allRemoveButton->setToolButtonStyle(Qt::ToolButtonTextUnderIcon); |
482 allRemoveButton->setIcon(QIcon(":/img/task-attempt.png")); | 482 allRemoveButton->setIcon(QIcon(":/img/dialog-warning.png")); |
483 allRemoveButton->setIconSize(QSize(32, 32)); | 483 allRemoveButton->setIconSize(QSize(40, 40)); |
484 allRemoveButton->setText(tr("Revoked\ncertificates")); | 484 allRemoveButton->setText(tr("Revoked\ncertificates")); |
485 allRemoveButton->setFixedWidth(120); | 485 allRemoveButton->setFixedWidth(120); |
486 allRemoveButton->setFixedHeight(75); | 486 allRemoveButton->setFixedHeight(80); |
487 allRemoveButton->setCheckable(true); | 487 allRemoveButton->setCheckable(true); |
488 | 488 |
489 QToolButton *infoButton = new QToolButton; | 489 QToolButton *infoButton = new QToolButton; |
490 infoButton->setToolButtonStyle(Qt::ToolButtonTextUnderIcon); | 490 infoButton->setToolButtonStyle(Qt::ToolButtonTextUnderIcon); |
491 infoButton->setIcon(QIcon(":/img/dialog-information.png")); | 491 infoButton->setIcon(QIcon(":/img/dialog-information.png")); |
492 infoButton->setIconSize(QSize(32, 32)); | 492 infoButton->setIconSize(QSize(40, 40)); |
493 infoButton->setText(tr("Information\nand help")); | 493 infoButton->setText(tr("Information\nand help")); |
494 infoButton->setFixedWidth(120); | 494 infoButton->setFixedWidth(120); |
495 infoButton->setFixedHeight(75); | 495 infoButton->setFixedHeight(80); |
496 infoButton->setCheckable(true); | 496 infoButton->setCheckable(true); |
497 | 497 |
498 mButtonGroup->addButton(updatesButton); | 498 mButtonGroup->addButton(updatesButton); |
499 mButtonGroup->addButton(allInstallButton); | 499 mButtonGroup->addButton(allInstallButton); |
500 mButtonGroup->addButton(allRemoveButton); | 500 mButtonGroup->addButton(allRemoveButton); |
546 updatesHeaderTextLayout->addWidget(mLastSWupdate); | 546 updatesHeaderTextLayout->addWidget(mLastSWupdate); |
547 updatesHeaderTextLayout->addSpacing(10); | 547 updatesHeaderTextLayout->addSpacing(10); |
548 updatesHeaderTextLayout->addWidget(updatesTip); | 548 updatesHeaderTextLayout->addWidget(updatesTip); |
549 | 549 |
550 QPushButton *searchUpdates = new QPushButton(tr("Check for updates")); | 550 QPushButton *searchUpdates = new QPushButton(tr("Check for updates")); |
551 searchUpdates->setIcon(QIcon(":/img/system-search.png")); | 551 searchUpdates->setIcon(QIcon(":/img/edit-find.png")); |
552 QPushButton *quitButton = new QPushButton(tr("Quit without saving")); | 552 QPushButton *quitButton = new QPushButton(tr("Quit without saving")); |
553 quitButton->setIcon(QIcon(":/img/system-shutdown.png")); | 553 quitButton->setIcon(QIcon(":/img/application-exit.png")); |
554 QPushButton *installButton = new QPushButton(tr("Install updates")); | 554 QPushButton *installButton = new QPushButton(tr("Install updates")); |
555 #ifdef Q_OS_WIN | 555 #ifdef Q_OS_WIN |
556 if (is_admin()) { | 556 if (is_admin()) { |
557 QIcon uacShield = QApplication::style()->standardIcon(QStyle::SP_VistaShield); | 557 QIcon uacShield = QApplication::style()->standardIcon(QStyle::SP_VistaShield); |
558 installButton->setIcon(uacShield); | 558 installButton->setIcon(uacShield); |
559 } | 559 } |
560 #else | 560 #else |
561 installButton->setIcon(QIcon(":/img/edit-redo.png")); | 561 installButton->setIcon(QIcon(":/img/view-refresh.png")); |
562 #endif | 562 #endif |
563 connect(quitButton, SIGNAL(clicked()), this, SLOT(closeApp())); | 563 connect(quitButton, SIGNAL(clicked()), this, SLOT(closeApp())); |
564 connect(installButton, SIGNAL(clicked()), this, SLOT(checkAndInstallCerts())); | 564 connect(installButton, SIGNAL(clicked()), this, SLOT(checkAndInstallCerts())); |
565 connect(searchUpdates, SIGNAL(clicked()), this, SLOT(checkUpdates())); | 565 connect(searchUpdates, SIGNAL(clicked()), this, SLOT(checkUpdates())); |
566 | 566 |