Skip to content

Commit

Permalink
wb link rate widget - use combobox instead of buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
Consti10 committed Nov 14, 2023
1 parent 683bf9e commit 07fa49d
Show file tree
Hide file tree
Showing 6 changed files with 146 additions and 226 deletions.
2 changes: 1 addition & 1 deletion app/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ int main(int argc, char *argv[]) {
QCoreApplication::setOrganizationDomain("openhd");
QCoreApplication::setApplicationName("QOpenHD");
{// Original screen resoluton before setting anything
QApplication a(argc, argv);
//QApplication a(argc, argv);
const auto screen=QGuiApplication::primaryScreen();
if(screen){
const auto actual_size=screen->size();
Expand Down
1 change: 1 addition & 0 deletions qml/qml.qrc
Original file line number Diff line number Diff line change
Expand Up @@ -266,5 +266,6 @@
<file>ui/elements/ButtonIconInfo2.qml</file>
<file>ui/elements/CardBasic.qml</file>
<file>ui/elements/ButtonIconConnect.qml</file>
<file>ui/elements/SmallHeaderInfoRow.qml</file>
</qresource>
</RCC>
8 changes: 4 additions & 4 deletions qml/ui/configpopup/qopenhd_settings/AppScreenSettingsView.qml
Original file line number Diff line number Diff line change
Expand Up @@ -51,18 +51,18 @@ ScrollView {
anchors.right: parent.right
anchors.verticalCenter: parent.verticalCenter
from : 0.3
to : 2.0
to : 2.5
// Important: Looks as without .1 steps, we can get rendering artfacts
stepSize: .1

anchors.rightMargin: Qt.inputMethod.visible ? 78 : 18
value: settings.global_scale

// @disable-check M223
onValueChanged: {
// @disable-check M222
if(settings.global_scale != value){
_restartqopenhdmessagebox.show();
}
settings.global_scale = value
//_messageBoxInstance.set_text_and_show("Please restart QOpenHD !")
}
}
}
Expand Down
27 changes: 27 additions & 0 deletions qml/ui/elements/SmallHeaderInfoRow.qml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
import QtQuick 2.12

Item {
width: parent.width
height: 40

property string m_text: "FILL ME"
property string m_info_text: "FILL ME"

Text{
anchors.fill: parent
verticalAlignment: Qt.AlignVCenter
horizontalAlignment: Qt.AlignLeft
text: m_text
font.pixelSize: 18
font.bold: true
color: "white"
}
ButtonIconInfo{
anchors.right: parent.right
width: parent.height
height: parent.height
onClicked: {
_messageBoxInstance.set_text_and_show(m_info_text)
}
}
}
2 changes: 1 addition & 1 deletion qml/ui/widgets/VideoBitrateWidgetGeneric.qml
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ BaseWidget {
Layout.preferredWidth: 200
Layout.minimumWidth: 200
height: 50
currentIndex: 0
currentIndex: -1
displayText: {
if(!_ohdSystemAir.is_alive)return "Res@fps N/A";
return m_curr_video_format;
Expand Down
Loading

0 comments on commit 07fa49d

Please sign in to comment.