Added patch from Henry

Removed hardcoded fonts

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5675 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
thunder2 2012-10-14 12:25:12 +00:00
parent 70dbbaf537
commit bc41be1f9a
17 changed files with 15 additions and 48 deletions

View File

@ -522,7 +522,6 @@ background: white;}</string>
<widget class="QLabel" name="titleBarLabel">
<property name="font">
<font>
<family>Arial</family>
<pointsize>10</pointsize>
<weight>75</weight>
<bold>true</bold>

View File

@ -65,7 +65,6 @@
<widget class="QLabel" name="titleBarLabel">
<property name="font">
<font>
<family>Arial</family>
<pointsize>10</pointsize>
<weight>75</weight>
<bold>true</bold>
@ -206,10 +205,7 @@
</property>
<property name="font">
<font>
<family>Microsoft Sans Serif</family>
<pointsize>22</pointsize>
<weight>50</weight>
<bold>false</bold>
<pointsize>21</pointsize>
</font>
</property>
<property name="text">

View File

@ -40,7 +40,6 @@
<widget class="QLabel" name="titleBarLabel">
<property name="font">
<font>
<family>Arial</family>
<pointsize>10</pointsize>
<weight>75</weight>
<bold>true</bold>

View File

@ -74,7 +74,6 @@
<widget class="QLabel" name="titleBarLabel">
<property name="font">
<font>
<family>Arial</family>
<pointsize>10</pointsize>
<weight>75</weight>
<bold>true</bold>
@ -583,7 +582,6 @@
</property>
<property name="font">
<font>
<family>MS Shell Dlg 2</family>
</font>
</property>
<property name="currentIndex">

View File

@ -77,7 +77,6 @@
<widget class="QLabel" name="titleBarLabel">
<property name="font">
<font>
<family>Arial</family>
<pointsize>10</pointsize>
<weight>75</weight>
<bold>true</bold>
@ -597,7 +596,6 @@
</property>
<property name="font">
<font>
<family>MS Shell Dlg 2</family>
</font>
</property>
<property name="currentIndex">

View File

@ -50,7 +50,6 @@
<widget class="QLabel" name="titleBarLabel">
<property name="font">
<font>
<family>Arial</family>
<pointsize>10</pointsize>
<weight>75</weight>
<bold>true</bold>

View File

@ -114,7 +114,6 @@
#include "bwctrl/BwCtrlWindow.h"
#endif
#define FONT QFont("Arial", 9)
/* Images for toolbar icons */
#define IMAGE_NETWORK2 ":/images/rs1.png"
@ -659,9 +658,12 @@ void MainWindow::postModDirectories(bool update_local)
/** Creates a new action associated with a config page. */
QAction *MainWindow::createPageAction(const QIcon &icon, const QString &text, QActionGroup *group)
{
QFont font;
QAction *action = new QAction(icon, text, group);
font = action->font();
font.setPointSize(9);
action->setCheckable(true);
action->setFont(FONT);
action->setFont(font);
return action;
}
@ -669,7 +671,10 @@ QAction *MainWindow::createPageAction(const QIcon &icon, const QString &text, QA
* the specified slot (if given). */
void MainWindow::addAction(QAction *action, const char *slot)
{
action->setFont(FONT);
QFont font;
font = action->font();
font.setPointSize(9);
action->setFont(font);
ui.toolBar->addAction(action);
connect(action, SIGNAL(triggered()), this, slot);
}

View File

@ -160,7 +160,6 @@
<widget class="QLabel" name="titleBarLabel">
<property name="font">
<font>
<family>Arial</family>
<pointsize>10</pointsize>
<weight>75</weight>
<bold>true</bold>
@ -205,7 +204,6 @@
</property>
<property name="font">
<font>
<family>MS Shell Dlg 2</family>
</font>
</property>
<property name="currentIndex">

View File

@ -234,7 +234,6 @@
</property>
<property name="font">
<font>
<family>Arial</family>
<pointsize>10</pointsize>
<weight>75</weight>
<bold>true</bold>
@ -299,7 +298,6 @@
</property>
<property name="font">
<font>
<family>MS Shell Dlg 2</family>
</font>
</property>
<property name="focusPolicy">
@ -333,7 +331,6 @@
</property>
<property name="font">
<font>
<family>MS Shell Dlg 2</family>
</font>
</property>
<property name="focusPolicy">

View File

@ -25,7 +25,6 @@
<widget class="QTreeView" name="downloadList">
<property name="font">
<font>
<family>Arial</family>
<pointsize>9</pointsize>
</font>
</property>
@ -111,7 +110,6 @@
<widget class="QLabel" name="titleBarLabel">
<property name="font">
<font>
<family>Arial</family>
<pointsize>10</pointsize>
<weight>75</weight>
<bold>true</bold>
@ -189,7 +187,6 @@
<widget class="QTreeView" name="uploadsList">
<property name="font">
<font>
<family>Arial</family>
<pointsize>9</pointsize>
</font>
</property>

View File

@ -38,11 +38,9 @@
<widget class="QLabel" name="titleLabel">
<property name="font">
<font>
<family>Arial</family>
<pointsize>13</pointsize>
<pointsize>11</pointsize>
<weight>75</weight>
<bold>true</bold>
<kerning>true</kerning>
</font>
</property>
<property name="text">
@ -54,7 +52,6 @@
<widget class="QLabel" name="statusMessageLabel">
<property name="font">
<font>
<family>Arial</family>
<pointsize>9</pointsize>
</font>
</property>

View File

@ -18,7 +18,6 @@
<widget class="QTreeWidget" name="peerTreeWidget">
<property name="font">
<font>
<family>Arial</family>
<pointsize>9</pointsize>
<stylestrategy>PreferAntialias</stylestrategy>
<kerning>true</kerning>

View File

@ -203,10 +203,11 @@ void GroupTreeWidget::currentItemChanged(QTreeWidgetItem *current, QTreeWidgetIt
QTreeWidgetItem *GroupTreeWidget::addCategoryItem(const QString &name, const QIcon &icon, bool expand)
{
QFont font = QFont("ARIAL", 10);
font.setBold(true);
QFont font;
QTreeWidgetItem *item = new QTreeWidgetItem();
font = item->font(COLUMN_NAME);
font.setBold(true);
font.setPointSize(10);
item->setText(COLUMN_NAME, name);
item->setData(COLUMN_DATA, ROLE_NAME, name);
item->setFont(COLUMN_NAME, font);

View File

@ -480,7 +480,6 @@
</property>
<property name="font" >
<font>
<family>Arial</family>
<pointsize>10</pointsize>
<weight>50</weight>
<italic>false</italic>

View File

@ -92,9 +92,6 @@
<height>24</height>
</size>
</property>
<property name="text">
<string/>
</property>
<property name="scaledContents">
<bool>true</bool>
</property>
@ -110,13 +107,9 @@
</property>
<property name="font">
<font>
<family>Sans Serif</family>
<pointsize>11</pointsize>
<weight>75</weight>
<italic>false</italic>
<bold>true</bold>
<underline>false</underline>
<strikeout>false</strikeout>
</font>
</property>
<property name="text">

View File

@ -480,7 +480,6 @@
</property>
<property name="font" >
<font>
<family>Arial</family>
<pointsize>8</pointsize>
<weight>50</weight>
<italic>false</italic>
@ -543,7 +542,7 @@
<property name="text" >
<string>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;style type="text/css">
p, li { white-space: pre-wrap; }
&lt;/style>&lt;/head>&lt;body style=" font-family:'Arial'; font-size:8pt; font-weight:400; font-style:normal; text-decoration:none;">
&lt;/style>&lt;/head>&lt;body style=" font-size:8pt; font-weight:400; font-style:normal; text-decoration:none;">
&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">&lt;span style=" font-size:9pt; font-weight:600;">Friends&lt;/span>&lt;/p>&lt;/body>&lt;/html></string>
</property>
</widget>

View File

@ -480,7 +480,6 @@
</property>
<property name="font" >
<font>
<family>Arial</family>
<pointsize>8</pointsize>
<weight>50</weight>
<italic>false</italic>
@ -902,7 +901,6 @@
</property>
<property name="font" >
<font>
<family>Arial</family>
<pointsize>10</pointsize>
<weight>50</weight>
<italic>false</italic>
@ -1004,7 +1002,6 @@
<widget class="QCheckBox" name="chkReceiveRate" >
<property name="font" >
<font>
<family>Arial</family>
<pointsize>10</pointsize>
<weight>50</weight>
<italic>false</italic>
@ -1034,7 +1031,6 @@
<widget class="QCheckBox" name="chkSendRate" >
<property name="font" >
<font>
<family>Arial</family>
<pointsize>10</pointsize>
<weight>50</weight>
<italic>false</italic>
@ -1064,7 +1060,6 @@
<widget class="QCheckBox" name="chkAlwaysOnTop" >
<property name="font" >
<font>
<family>Arial</family>
<pointsize>10</pointsize>
<weight>50</weight>
<italic>false</italic>
@ -1135,7 +1130,6 @@
</property>
<property name="font" >
<font>
<family>Arial</family>
<pointsize>10</pointsize>
<weight>50</weight>
<italic>false</italic>
@ -1159,7 +1153,6 @@
<widget class="QLabel" name="label" >
<property name="font" >
<font>
<family>Arial</family>
<pointsize>10</pointsize>
<weight>50</weight>
<italic>false</italic>