forked from len0rd/rockbox
Theme Editor: Changed default font to monospaced, changed organization for the application to rockbox.org, moved tab bar in preferences dialog to the top of the window
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26677 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
42b065f04a
commit
24647bace9
4 changed files with 14 additions and 6 deletions
|
@ -35,9 +35,9 @@ int main(int argc, char* argv[])
|
||||||
{
|
{
|
||||||
QApplication app(argc, argv);
|
QApplication app(argc, argv);
|
||||||
|
|
||||||
QCoreApplication::setApplicationName(QObject::tr("Rockbox Theme Editor"));
|
QCoreApplication::setApplicationName("Rockbox Theme Editor");
|
||||||
QCoreApplication::setApplicationVersion(QObject::tr("Pre-Alpha"));
|
QCoreApplication::setApplicationVersion("Pre-Alpha");
|
||||||
QCoreApplication::setOrganizationName(QObject::tr("Rockbox"));
|
QCoreApplication::setOrganizationName("rockbox.org");
|
||||||
|
|
||||||
EditorWindow mainWindow;
|
EditorWindow mainWindow;
|
||||||
mainWindow.show();
|
mainWindow.show();
|
||||||
|
|
|
@ -92,7 +92,10 @@ void PreferencesDialog::loadFont()
|
||||||
QSettings settings;
|
QSettings settings;
|
||||||
settings.beginGroup("SkinDocument");
|
settings.beginGroup("SkinDocument");
|
||||||
|
|
||||||
QVariant family = settings.value("fontFamily", QFont());
|
QFont def("Monospace");
|
||||||
|
def.setStyleHint(QFont::TypeWriter);
|
||||||
|
|
||||||
|
QVariant family = settings.value("fontFamily", def);
|
||||||
int size = settings.value("fontSize", 12).toInt();
|
int size = settings.value("fontSize", 12).toInt();
|
||||||
|
|
||||||
settings.endGroup();
|
settings.endGroup();
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
<item>
|
<item>
|
||||||
<widget class="QTabWidget" name="prefsGroups">
|
<widget class="QTabWidget" name="prefsGroups">
|
||||||
<property name="tabPosition">
|
<property name="tabPosition">
|
||||||
<enum>QTabWidget::West</enum>
|
<enum>QTabWidget::North</enum>
|
||||||
</property>
|
</property>
|
||||||
<property name="currentIndex">
|
<property name="currentIndex">
|
||||||
<number>0</number>
|
<number>0</number>
|
||||||
|
@ -120,6 +120,9 @@
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Error Color</string>
|
<string>Error Color</string>
|
||||||
</property>
|
</property>
|
||||||
|
<property name="buddy">
|
||||||
|
<cstring>errorButton</cstring>
|
||||||
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
|
|
|
@ -151,7 +151,9 @@ void SkinDocument::settingsChanged()
|
||||||
errorColor.setProperty(QTextFormat::FullWidthSelection, true);
|
errorColor.setProperty(QTextFormat::FullWidthSelection, true);
|
||||||
|
|
||||||
/* Setting the font */
|
/* Setting the font */
|
||||||
QFont family = settings.value("fontFamily", QFont()).value<QFont>();
|
QFont def("Monospace");
|
||||||
|
def.setStyleHint(QFont::TypeWriter);
|
||||||
|
QFont family = settings.value("fontFamily", def).value<QFont>();
|
||||||
family.setPointSize(settings.value("fontSize", 12).toInt());
|
family.setPointSize(settings.value("fontSize", 12).toInt());
|
||||||
editor->setFont(family);
|
editor->setFont(family);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue