Skip to content

Commit

Permalink
Font that was used before anyways and not commited
Browse files Browse the repository at this point in the history
  • Loading branch information
jwiesler committed Jul 25, 2020
1 parent bcea1fe commit a3a13d8
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/volumecontroller/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,19 @@ int main(int argc, char *argv[])
qDebug() << "Logging to console";
}



QApplication a(argc, argv);
QApplication::setFont(QFont("Segoe UI"));

{
QString locale = QLocale::system().name();

QTranslator translator;
qDebug() << "Loading ts file" << "VolumeController_" + locale;
translator.load("VolumeController_" + locale);
a.installTranslator(&translator);
}

auto *ptr = QStyleFactory::create("windowsvista");
Q_ASSERT(ptr);
Expand Down

0 comments on commit a3a13d8

Please sign in to comment.