From ba218b71685c6991fa903196f4c8486452ca3fb2 Mon Sep 17 00:00:00 2001 From: Jeremy Hu Date: Sun, 2 Dec 2018 08:24:04 +0930 Subject: [PATCH] Make the font default size #19 --- src/documentwindow.cpp | 2 +- src/main.cpp | 2 +- src/materialeditwidget.cpp | 2 +- src/materialwidget.cpp | 2 +- src/motionwidget.cpp | 2 +- src/parttreewidget.cpp | 4 ++-- src/posewidget.cpp | 2 +- 7 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/documentwindow.cpp b/src/documentwindow.cpp index 245d8933..36db3427 100644 --- a/src/documentwindow.cpp +++ b/src/documentwindow.cpp @@ -1031,7 +1031,7 @@ void DocumentWindow::initLockButton(QPushButton *button) { QFont font; font.setWeight(QFont::Light); - font.setPixelSize(Theme::toolIconFontSize); + //font.setPixelSize(Theme::toolIconFontSize); font.setBold(false); button->setFont(font); diff --git a/src/main.cpp b/src/main.cpp index 4dc275c7..0de75df8 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -42,7 +42,7 @@ int main(int argc, char ** argv) QFont font; font.setWeight(QFont::Light); - font.setPixelSize(11); + //font.setPixelSize(11); font.setBold(false); QApplication::setFont(font); diff --git a/src/materialeditwidget.cpp b/src/materialeditwidget.cpp index c7df9f3f..01cdbdac 100644 --- a/src/materialeditwidget.cpp +++ b/src/materialeditwidget.cpp @@ -51,7 +51,7 @@ MaterialEditWidget::MaterialEditWidget(const Document *document, QWidget *parent QFont nameFont; nameFont.setWeight(QFont::Light); - nameFont.setPixelSize(9); + //nameFont.setPixelSize(9); nameFont.setBold(false); QGridLayout *mapLayout = new QGridLayout; diff --git a/src/materialwidget.cpp b/src/materialwidget.cpp index f77c6221..3483ee70 100644 --- a/src/materialwidget.cpp +++ b/src/materialwidget.cpp @@ -19,7 +19,7 @@ MaterialWidget::MaterialWidget(const Document *document, QUuid materialId) : QFont nameFont; nameFont.setWeight(QFont::Light); - nameFont.setPixelSize(9); + //nameFont.setPixelSize(9); nameFont.setBold(false); m_nameLabel->setFont(nameFont); diff --git a/src/motionwidget.cpp b/src/motionwidget.cpp index d928c688..4166824d 100644 --- a/src/motionwidget.cpp +++ b/src/motionwidget.cpp @@ -19,7 +19,7 @@ MotionWidget::MotionWidget(const Document *document, QUuid motionId) : QFont nameFont; nameFont.setWeight(QFont::Light); - nameFont.setPixelSize(9); + //nameFont.setPixelSize(9); nameFont.setBold(false); m_nameLabel->setFont(nameFont); diff --git a/src/parttreewidget.cpp b/src/parttreewidget.cpp index daa1afc9..f118d6fc 100644 --- a/src/parttreewidget.cpp +++ b/src/parttreewidget.cpp @@ -40,11 +40,11 @@ PartTreeWidget::PartTreeWidget(const Document *document, QWidget *parent) : "QTreeView::branch:open:has-children:!has-siblings, QTreeView::branch:open:has-children:has-siblings {border-image: none; image: url(:/resources/tree-branch-open.png);}"); m_normalFont.setWeight(QFont::Light); - m_normalFont.setPixelSize(9); + //m_normalFont.setPixelSize(9); m_normalFont.setBold(false); m_selectedFont.setWeight(QFont::Light); - m_selectedFont.setPixelSize(9); + //m_selectedFont.setPixelSize(9); m_selectedFont.setBold(true); setFont(m_normalFont); diff --git a/src/posewidget.cpp b/src/posewidget.cpp index 889bb1ac..661511ee 100644 --- a/src/posewidget.cpp +++ b/src/posewidget.cpp @@ -19,7 +19,7 @@ PoseWidget::PoseWidget(const Document *document, QUuid poseId) : QFont nameFont; nameFont.setWeight(QFont::Light); - nameFont.setPixelSize(9); + //nameFont.setPixelSize(9); nameFont.setBold(false); m_nameLabel->setFont(nameFont);