Fixed font size and color of the version number in AboutDialog

Update english translation

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@6689 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
thunder2 2013-09-05 13:15:47 +00:00
parent a9a919de55
commit d59801088d
3 changed files with 15 additions and 7 deletions

View File

@ -34,11 +34,9 @@
#include <QtGui/QStyle> #include <QtGui/QStyle>
#include <assert.h> #include <assert.h>
AboutDialog::AboutDialog(QWidget* parent) AboutDialog::AboutDialog(QWidget* parent)
:QDialog(parent) : QDialog(parent, Qt::WindowSystemMenuHint | Qt::WindowTitleHint | Qt::WindowCloseButtonHint)
{ {
setupUi(this); setupUi(this);
QHBoxLayout* l = new QHBoxLayout(); QHBoxLayout* l = new QHBoxLayout();
@ -181,7 +179,11 @@ AWidget::AWidget() {
QImage image(":/images/about.png"); QImage image(":/images/about.png");
QPainter p(&image); QPainter p(&image);
p.setPen(Qt::lightGray); p.setPen(Qt::black);
QFont font = p.font();
font.setBold(true);
font.setPointSizeF(11);
p.setFont(font);
/* get libretroshare version */ /* get libretroshare version */
std::map<std::string, std::string>::iterator vit; std::map<std::string, std::string>::iterator vit;
@ -189,7 +191,7 @@ AWidget::AWidget() {
bool retv = rsDisc->getDiscVersions(versions); bool retv = rsDisc->getDiscVersions(versions);
if (retv && versions.end() != (vit = versions.find(rsPeers->getOwnId()))) if (retv && versions.end() != (vit = versions.find(rsPeers->getOwnId())))
{ {
QString version = QString::fromStdString("RetroShare version : \n") + QString::fromStdString(vit->second); QString version = QString("RetroShare %1 : \n%2").arg(tr("version"), QString::fromStdString(vit->second));
p.drawText(QRect(10, 10, width()-10, 60), version); p.drawText(QRect(10, 10, width()-10, 60), version);
} }
@ -733,4 +735,3 @@ NextPieceLabel::NextPieceLabel( QWidget* parent /* = 0*/ ) : QLabel(parent)
setAlignment(Qt::AlignCenter); setAlignment(Qt::AlignCenter);
setAutoFillBackground(true); setAutoFillBackground(true);
} }

View File

@ -34,7 +34,7 @@
/** Constructor */ /** Constructor */
HelpDialog::HelpDialog(QWidget *parent) HelpDialog::HelpDialog(QWidget *parent)
:QDialog(parent) : QDialog(parent, Qt::WindowSystemMenuHint | Qt::WindowTitleHint | Qt::WindowCloseButtonHint)
{ {
/* Invoke the Qt Designer generated object setup routine */ /* Invoke the Qt Designer generated object setup routine */
ui.setupUi(this); ui.setupUi(this);

View File

@ -1,6 +1,13 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS> <!DOCTYPE TS>
<TS version="2.0"> <TS version="2.0">
<context>
<name>AWidget</name>
<message>
<source>version</source>
<translation type="unfinished"></translation>
</message>
</context>
<context> <context>
<name>AboutDialog</name> <name>AboutDialog</name>
<message> <message>