From ef6033ce8d298ead62ca18fee09b1a61190e4f2b Mon Sep 17 00:00:00 2001 From: dogmaphobic Date: Sat, 16 Jan 2016 17:58:26 -0500 Subject: [PATCH] Set initial size for log download. --- src/ViewWidgets/LogDownload.cc | 1 + src/ViewWidgets/LogDownload.qml | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/ViewWidgets/LogDownload.cc b/src/ViewWidgets/LogDownload.cc index f30eee3dc..0fbfb7aca 100644 --- a/src/ViewWidgets/LogDownload.cc +++ b/src/ViewWidgets/LogDownload.cc @@ -28,6 +28,7 @@ LogDownload::LogDownload(const QString& title, QAction* action, QWidget *parent) { Q_UNUSED(title); Q_UNUSED(action); + resize(800, 600); setSource(QUrl::fromUserInput("qrc:/qml/LogDownload.qml")); loadSettings(); } diff --git a/src/ViewWidgets/LogDownload.qml b/src/ViewWidgets/LogDownload.qml index 5dc2b3023..ed7f69071 100644 --- a/src/ViewWidgets/LogDownload.qml +++ b/src/ViewWidgets/LogDownload.qml @@ -72,7 +72,7 @@ QGCView { TableViewColumn { title: "Id" - width: ScreenTools.defaultFontPixelWidth * 4 + width: ScreenTools.defaultFontPixelWidth * 6 horizontalAlignment: Text.AlignHCenter delegate : Text { horizontalAlignment: Text.AlignHCenter @@ -85,7 +85,7 @@ QGCView { TableViewColumn { title: "Date" - width: ScreenTools.defaultFontPixelWidth * 30 + width: ScreenTools.defaultFontPixelWidth * 34 horizontalAlignment: Text.AlignHCenter delegate : Text { text: { @@ -107,7 +107,7 @@ QGCView { TableViewColumn { title: "Size" - width: ScreenTools.defaultFontPixelWidth * 12 + width: ScreenTools.defaultFontPixelWidth * 18 horizontalAlignment: Text.AlignHCenter delegate : Text { horizontalAlignment: Text.AlignRight @@ -120,7 +120,7 @@ QGCView { TableViewColumn { title: "Status" - width: ScreenTools.defaultFontPixelWidth * 18 + width: ScreenTools.defaultFontPixelWidth * 22 horizontalAlignment: Text.AlignHCenter delegate : Text { horizontalAlignment: Text.AlignHCenter -- 2.22.0