Icon size cleanups

This commit is contained in:
Mark Watkins 2011-06-26 22:25:52 +10:00
parent 25accad293
commit 56bd288e46
4 changed files with 42 additions and 8 deletions

View File

@ -10,5 +10,6 @@
<file>icons/forward.png</file> <file>icons/forward.png</file>
<file>icons/edit-find.png</file> <file>icons/edit-find.png</file>
<file>icons/back.png</file> <file>icons/back.png</file>
<file>fonts/FreeSans.ttf</file>
</qresource> </qresource>
</RCC> </RCC>

View File

@ -78,7 +78,7 @@
</widget> </widget>
<widget class="QTabWidget" name="tabWidget"> <widget class="QTabWidget" name="tabWidget">
<property name="currentIndex"> <property name="currentIndex">
<number>2</number> <number>0</number>
</property> </property>
<property name="movable"> <property name="movable">
<bool>true</bool> <bool>true</bool>
@ -96,6 +96,9 @@
</property> </property>
<item> <item>
<widget class="QWebView" name="webView"> <widget class="QWebView" name="webView">
<property name="cursor">
<cursorShape>IBeamCursor</cursorShape>
</property>
<property name="url"> <property name="url">
<url> <url>
<string>about:blank</string> <string>about:blank</string>

View File

@ -6,6 +6,7 @@
//#include <QtPlugin> //#include <QtPlugin>
#include <QtGui/QApplication> #include <QtGui/QApplication>
#include <QFontDatabase>
#include "mainwindow.h" #include "mainwindow.h"
#include "SleepLib/profiles.h" #include "SleepLib/profiles.h"
@ -19,6 +20,8 @@ int main(int argc, char *argv[])
{ {
QApplication a(argc, argv); QApplication a(argc, argv);
QFontDatabase::addApplicationFont(":/fonts/freesans.ttf");
a.setFont(QFont("FreeSans"));
PRS1Loader::Register(); PRS1Loader::Register();
CMS50Loader::Register(); CMS50Loader::Register();
ZEOLoader::Register(); ZEOLoader::Register();

View File

@ -6,8 +6,8 @@
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>1094</width> <width>1089</width>
<height>514</height> <height>603</height>
</rect> </rect>
</property> </property>
<property name="sizePolicy"> <property name="sizePolicy">
@ -148,13 +148,22 @@
<number>0</number> <number>0</number>
</property> </property>
<item> <item>
<widget class="QToolButton" name="homeButton"> <widget class="QToolButton" name="backButton">
<property name="text"> <property name="text">
<string>...</string> <string>...</string>
</property> </property>
<property name="icon"> <property name="icon">
<iconset resource="Resources.qrc"> <iconset resource="Resources.qrc">
<normaloff>:/icons/go-home.png</normaloff>:/icons/go-home.png</iconset> <normaloff>:/icons/back.png</normaloff>:/icons/back.png</iconset>
</property>
<property name="iconSize">
<size>
<width>24</width>
<height>24</height>
</size>
</property>
<property name="autoRaise">
<bool>true</bool>
</property> </property>
</widget> </widget>
</item> </item>
@ -167,16 +176,34 @@
<iconset resource="Resources.qrc"> <iconset resource="Resources.qrc">
<normaloff>:/icons/forward.png</normaloff>:/icons/forward.png</iconset> <normaloff>:/icons/forward.png</normaloff>:/icons/forward.png</iconset>
</property> </property>
<property name="iconSize">
<size>
<width>24</width>
<height>24</height>
</size>
</property>
<property name="autoRaise">
<bool>true</bool>
</property>
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QToolButton" name="backButton"> <widget class="QToolButton" name="homeButton">
<property name="text"> <property name="text">
<string>...</string> <string>...</string>
</property> </property>
<property name="icon"> <property name="icon">
<iconset resource="Resources.qrc"> <iconset resource="Resources.qrc">
<normaloff>:/icons/back.png</normaloff>:/icons/back.png</iconset> <normaloff>:/icons/go-home.png</normaloff>:/icons/go-home.png</iconset>
</property>
<property name="iconSize">
<size>
<width>24</width>
<height>24</height>
</size>
</property>
<property name="autoRaise">
<bool>true</bool>
</property> </property>
</widget> </widget>
</item> </item>
@ -507,7 +534,7 @@
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>1094</width> <width>1089</width>
<height>25</height> <height>25</height>
</rect> </rect>
</property> </property>