mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
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:
parent
a9a919de55
commit
d59801088d
@ -34,11 +34,9 @@
|
||||
#include <QtGui/QStyle>
|
||||
#include <assert.h>
|
||||
|
||||
|
||||
AboutDialog::AboutDialog(QWidget* parent)
|
||||
:QDialog(parent)
|
||||
: QDialog(parent, Qt::WindowSystemMenuHint | Qt::WindowTitleHint | Qt::WindowCloseButtonHint)
|
||||
{
|
||||
|
||||
setupUi(this);
|
||||
|
||||
QHBoxLayout* l = new QHBoxLayout();
|
||||
@ -181,7 +179,11 @@ AWidget::AWidget() {
|
||||
|
||||
QImage image(":/images/about.png");
|
||||
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 */
|
||||
std::map<std::string, std::string>::iterator vit;
|
||||
@ -189,7 +191,7 @@ AWidget::AWidget() {
|
||||
bool retv = rsDisc->getDiscVersions(versions);
|
||||
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);
|
||||
|
||||
}
|
||||
@ -733,4 +735,3 @@ NextPieceLabel::NextPieceLabel( QWidget* parent /* = 0*/ ) : QLabel(parent)
|
||||
setAlignment(Qt::AlignCenter);
|
||||
setAutoFillBackground(true);
|
||||
}
|
||||
|
||||
|
@ -34,7 +34,7 @@
|
||||
|
||||
/** Constructor */
|
||||
HelpDialog::HelpDialog(QWidget *parent)
|
||||
:QDialog(parent)
|
||||
: QDialog(parent, Qt::WindowSystemMenuHint | Qt::WindowTitleHint | Qt::WindowCloseButtonHint)
|
||||
{
|
||||
/* Invoke the Qt Designer generated object setup routine */
|
||||
ui.setupUi(this);
|
||||
|
@ -1,6 +1,13 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!DOCTYPE TS>
|
||||
<TS version="2.0">
|
||||
<context>
|
||||
<name>AWidget</name>
|
||||
<message>
|
||||
<source>version</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>AboutDialog</name>
|
||||
<message>
|
||||
|
Loading…
Reference in New Issue
Block a user