Skip to content

Commit

Permalink
hotfix - fonts and removed about menu
Browse files Browse the repository at this point in the history
  • Loading branch information
cirquit committed Aug 1, 2019
1 parent da2fb9b commit 4ce756b
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion trdrop/qml/OptionsWindow.qml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import QtQuick 2.12
import QtQml.Models 2.1
import QtQuick.Window 2.12
import QtQuick.Controls.Material 2.12
import QtQuick.Controls 2.5
import QtQuick.Controls 2.12
import QtQuick.Controls.Styles 1.4
import QtQuick.Layouts 1.12
import QtQuick.Dialogs 1.2
Expand Down
22 changes: 11 additions & 11 deletions trdrop/qml/TrdropMenubar.qml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ MenuBar
MenuItem
{
//shortcut:
text: qsTr("Export Ctrl+E")
text: qsTr("Export Ctrl+E")
action: Action {
shortcut: "Ctrl+E"
onTriggered: {
Expand All @@ -54,7 +54,7 @@ MenuBar
title: qsTr("Tools")
MenuItem
{
text: qsTr("Options Ctrl+O")
text: qsTr("Options Ctrl+O")
action: Action {
shortcut: "Ctrl+O"
onTriggered: {
Expand All @@ -65,13 +65,13 @@ MenuBar
}
}
}
Menu
{
title: qsTr("About")
MenuItem
{
text: qsTr("About trdrop")
onTriggered: console.log("About trdrop onTriggered")
}
}
// Menu
// {
// title: qsTr("About")
// MenuItem
// {
// text: qsTr("About trdrop")
// onTriggered: console.log("About trdrop onTriggered")
// }
// }
}
6 changes: 3 additions & 3 deletions trdrop/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@ int main(int argc, char *argv[])
QApplication app(argc, argv);
QQmlApplicationEngine engine;
QQuickStyle::setStyle("Material");
QFontDatabase::addApplicationFont("qrc:/fonts/FjallaOne-Regular.ttf");
QFontDatabase::addApplicationFont(":/fonts/FjallaOne-Regular.ttf");
// TODO evaluate if we need these fonts
QFontDatabase::addApplicationFont("qrc:/fonts/materialdesignicons-webfont.ttf");
QFontDatabase::addApplicationFont("qrc:/fonts/Rationale-Regular.ttf");
QFontDatabase::addApplicationFont(":/fonts/materialdesignicons-webfont.ttf");
QFontDatabase::addApplicationFont(":/fonts/Rationale-Regular.ttf");

// TODO add the other fonts?

Expand Down

0 comments on commit 4ce756b

Please sign in to comment.