comparison ui/mainwindow.cpp @ 842:bd33c6585cd0

UI improvements (issue18, 60)
author Emanuel Schuetze <emanuel@intevation.de>
date Wed, 30 Jul 2014 09:58:20 +0200
parents 216a65d7fc4b
children fa68e5aeeaac
comparison
equal deleted inserted replaced
841:216a65d7fc4b 842:bd33c6585cd0
530 mLastUpdateCheckContents = new QLabel(lastUpdateCheck); 530 mLastUpdateCheckContents = new QLabel(lastUpdateCheck);
531 } else { 531 } else {
532 mLastUpdateCheck = new QLabel(tr("Last successful update check:")); 532 mLastUpdateCheck = new QLabel(tr("Last successful update check:"));
533 mLastUpdateCheckContents = new QLabel(tr("No connection with the updateserver.")); 533 mLastUpdateCheckContents = new QLabel(tr("No connection with the updateserver."));
534 } 534 }
535 QPushButton *searchUpdates = new QPushButton(); 535 QPushButton *searchUpdates = new QPushButton(" " + tr("Update"));
536 searchUpdates->setStyleSheet("QPushButton {border-style: outset; border-width: 0px;}"); 536 searchUpdates->setFixedHeight(22);
537 searchUpdates->setToolTip(tr("Check for Updates")); 537 searchUpdates->setToolTip(tr("Check for Updates"));
538 searchUpdates->setIcon(QIcon(":/img/update-list.png")); 538 searchUpdates->setIcon(QIcon(":/img/update-list.png"));
539 connect(searchUpdates, SIGNAL(clicked()), this, SLOT(checkUpdates())); 539 connect(searchUpdates, SIGNAL(clicked()), this, SLOT(checkUpdates()));
540 updateDateAndSearchButton->addWidget(mLastUpdateCheckContents); 540 updateDateAndSearchButton->addWidget(mLastUpdateCheckContents);
541 updateDateAndSearchButton->addWidget(searchUpdates); 541 updateDateAndSearchButton->addWidget(searchUpdates);

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