comparison ui/mainwindow.cpp @ 663:b00c26fbc695

(UI) linebreak and bigger buttons for German translations.
author Emanuel Schuetze <emanuel@intevation.de>
date Thu, 26 Jun 2014 16:29:35 +0200
parents 320a64d58e62
children 911b94a475e0
comparison
equal deleted inserted replaced
662:e6a6cbd58d1f 663:b00c26fbc695
459 QToolButton *updatesButton = new QToolButton; 459 QToolButton *updatesButton = new QToolButton;
460 updatesButton->setToolButtonStyle(Qt::ToolButtonTextUnderIcon); 460 updatesButton->setToolButtonStyle(Qt::ToolButtonTextUnderIcon);
461 updatesButton->setIcon(QIcon(":/img/view-refresh.png")); 461 updatesButton->setIcon(QIcon(":/img/view-refresh.png"));
462 updatesButton->setIconSize(QSize(32, 32)); 462 updatesButton->setIconSize(QSize(32, 32));
463 updatesButton->setText(tr("Updates")); 463 updatesButton->setText(tr("Updates"));
464 updatesButton->setFixedWidth(90); 464 updatesButton->setFixedWidth(120);
465 updatesButton->setFixedHeight(70); 465 updatesButton->setFixedHeight(75);
466 updatesButton->setCheckable(true); 466 updatesButton->setCheckable(true);
467 updatesButton->setChecked(true); 467 updatesButton->setChecked(true);
468 468
469 QToolButton *allInstallButton = new QToolButton; 469 QToolButton *allInstallButton = new QToolButton;
470 allInstallButton->setToolButtonStyle(Qt::ToolButtonTextUnderIcon); 470 allInstallButton->setToolButtonStyle(Qt::ToolButtonTextUnderIcon);
471 allInstallButton->setIcon(QIcon(":/img/document-encrypt.png")); 471 allInstallButton->setIcon(QIcon(":/img/document-encrypt.png"));
472 allInstallButton->setIconSize(QSize(32, 32)); 472 allInstallButton->setIconSize(QSize(32, 32));
473 allInstallButton->setText(tr("Trusted\ncertificates")); 473 allInstallButton->setText(tr("Trusted\ncertificates"));
474 allInstallButton->setFixedWidth(90); 474 allInstallButton->setFixedWidth(120);
475 allInstallButton->setFixedHeight(70); 475 allInstallButton->setFixedHeight(75);
476 allInstallButton->setCheckable(true); 476 allInstallButton->setCheckable(true);
477 477
478 QToolButton *allRemoveButton = new QToolButton; 478 QToolButton *allRemoveButton = new QToolButton;
479 allRemoveButton->setToolButtonStyle(Qt::ToolButtonTextUnderIcon); 479 allRemoveButton->setToolButtonStyle(Qt::ToolButtonTextUnderIcon);
480 allRemoveButton->setIcon(QIcon(":/img/task-attempt.png")); 480 allRemoveButton->setIcon(QIcon(":/img/task-attempt.png"));
481 allRemoveButton->setIconSize(QSize(32, 32)); 481 allRemoveButton->setIconSize(QSize(32, 32));
482 allRemoveButton->setText(tr("Revoked\ncertificates")); 482 allRemoveButton->setText(tr("Revoked\ncertificates"));
483 allRemoveButton->setFixedWidth(90); 483 allRemoveButton->setFixedWidth(120);
484 allRemoveButton->setFixedHeight(70); 484 allRemoveButton->setFixedHeight(75);
485 allRemoveButton->setCheckable(true); 485 allRemoveButton->setCheckable(true);
486 486
487 QToolButton *infoButton = new QToolButton; 487 QToolButton *infoButton = new QToolButton;
488 infoButton->setToolButtonStyle(Qt::ToolButtonTextUnderIcon); 488 infoButton->setToolButtonStyle(Qt::ToolButtonTextUnderIcon);
489 infoButton->setIcon(QIcon(":/img/dialog-information.png")); 489 infoButton->setIcon(QIcon(":/img/dialog-information.png"));
490 infoButton->setIconSize(QSize(32, 32)); 490 infoButton->setIconSize(QSize(32, 32));
491 infoButton->setText(tr("Information\nand help")); 491 infoButton->setText(tr("Information\nand help"));
492 infoButton->setFixedWidth(90); 492 infoButton->setFixedWidth(120);
493 infoButton->setFixedHeight(70); 493 infoButton->setFixedHeight(75);
494 infoButton->setCheckable(true); 494 infoButton->setCheckable(true);
495 495
496 mButtonGroup->addButton(updatesButton); 496 mButtonGroup->addButton(updatesButton);
497 mButtonGroup->addButton(allInstallButton); 497 mButtonGroup->addButton(allInstallButton);
498 mButtonGroup->addButton(allRemoveButton); 498 mButtonGroup->addButton(allRemoveButton);

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