Browse Source

Set initial size for log download.

QGC4.4
dogmaphobic 9 years ago
parent
commit
ef6033ce8d
  1. 1
      src/ViewWidgets/LogDownload.cc
  2. 8
      src/ViewWidgets/LogDownload.qml

1
src/ViewWidgets/LogDownload.cc

@ -28,6 +28,7 @@ LogDownload::LogDownload(const QString& title, QAction* action, QWidget *parent)
{ {
Q_UNUSED(title); Q_UNUSED(title);
Q_UNUSED(action); Q_UNUSED(action);
resize(800, 600);
setSource(QUrl::fromUserInput("qrc:/qml/LogDownload.qml")); setSource(QUrl::fromUserInput("qrc:/qml/LogDownload.qml"));
loadSettings(); loadSettings();
} }

8
src/ViewWidgets/LogDownload.qml

@ -72,7 +72,7 @@ QGCView {
TableViewColumn { TableViewColumn {
title: "Id" title: "Id"
width: ScreenTools.defaultFontPixelWidth * 4 width: ScreenTools.defaultFontPixelWidth * 6
horizontalAlignment: Text.AlignHCenter horizontalAlignment: Text.AlignHCenter
delegate : Text { delegate : Text {
horizontalAlignment: Text.AlignHCenter horizontalAlignment: Text.AlignHCenter
@ -85,7 +85,7 @@ QGCView {
TableViewColumn { TableViewColumn {
title: "Date" title: "Date"
width: ScreenTools.defaultFontPixelWidth * 30 width: ScreenTools.defaultFontPixelWidth * 34
horizontalAlignment: Text.AlignHCenter horizontalAlignment: Text.AlignHCenter
delegate : Text { delegate : Text {
text: { text: {
@ -107,7 +107,7 @@ QGCView {
TableViewColumn { TableViewColumn {
title: "Size" title: "Size"
width: ScreenTools.defaultFontPixelWidth * 12 width: ScreenTools.defaultFontPixelWidth * 18
horizontalAlignment: Text.AlignHCenter horizontalAlignment: Text.AlignHCenter
delegate : Text { delegate : Text {
horizontalAlignment: Text.AlignRight horizontalAlignment: Text.AlignRight
@ -120,7 +120,7 @@ QGCView {
TableViewColumn { TableViewColumn {
title: "Status" title: "Status"
width: ScreenTools.defaultFontPixelWidth * 18 width: ScreenTools.defaultFontPixelWidth * 22
horizontalAlignment: Text.AlignHCenter horizontalAlignment: Text.AlignHCenter
delegate : Text { delegate : Text {
horizontalAlignment: Text.AlignHCenter horizontalAlignment: Text.AlignHCenter

Loading…
Cancel
Save