From 5781db2dd34f69e5327b7ba04e8bfae283b4dea3 Mon Sep 17 00:00:00 2001 From: dankers Date: Thu, 12 Aug 2010 03:38:43 +0000 Subject: [PATCH] Make handles bigger for resizing gadgets. git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1271 ebee16cc-31ac-478f-84a7-5cbb03baadba --- .../src/plugins/coreplugin/minisplitter.cpp | 4 +- .../plugins/gpsdisplay/gpsdisplaywidget.ui | 1084 ++++++++--------- 2 files changed, 542 insertions(+), 546 deletions(-) diff --git a/ground/src/plugins/coreplugin/minisplitter.cpp b/ground/src/plugins/coreplugin/minisplitter.cpp index f89cb6e54..a8aa96dc7 100644 --- a/ground/src/plugins/coreplugin/minisplitter.cpp +++ b/ground/src/plugins/coreplugin/minisplitter.cpp @@ -60,9 +60,9 @@ using namespace Core::Internal; void MiniSplitterHandle::resizeEvent(QResizeEvent *event) { if (orientation() == Qt::Horizontal) - setContentsMargins(2, 0, 2, 0); + setContentsMargins(6, 0, 6, 0); else - setContentsMargins(0, 2, 0, 2); + setContentsMargins(0, 6, 0, 6); setMask(QRegion(contentsRect())); QSplitterHandle::resizeEvent(event); } diff --git a/ground/src/plugins/gpsdisplay/gpsdisplaywidget.ui b/ground/src/plugins/gpsdisplay/gpsdisplaywidget.ui index f4158a4aa..d88520ac3 100644 --- a/ground/src/plugins/gpsdisplay/gpsdisplaywidget.ui +++ b/ground/src/plugins/gpsdisplay/gpsdisplaywidget.ui @@ -1,544 +1,540 @@ - - - GpsDisplayWidget - - - - 0 - 0 - 570 - 302 - - - - Form - - - - - 190 - 10 - 171 - 171 - - - - - 0 - 0 - - - - - 171 - 171 - - - - - 171 - 171 - - - - false - - - - - - Qt::ScrollBarAlwaysOff - - - Qt::ScrollBarAlwaysOff - - - - 0.000000000000000 - 0.000000000000000 - 169.000000000000000 - 169.000000000000000 - - - - - - - 370 - 114 - 191 - 67 - - - - - 0 - 0 - - - - - - - - - - 10 - 4 - 171 - 177 - - - - - 0 - 0 - - - - GPS Status - - - - - - 15 - - - 0 - - - 0 - - - - - - 0 - 0 - - - - - 50 - 0 - - - - Lattitude: - - - Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter - - - - - - - TextLabel - - - - - - - - - 15 - - - 0 - - - 0 - - - - - - 0 - 0 - - - - - 50 - 0 - - - - Longitude: - - - Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter - - - - - - - TextLabel - - - - - - - - - 15 - - - 0 - - - 0 - - - - - - 0 - 0 - - - - - 50 - 0 - - - - Bearing: - - - Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter - - - - - - - TextLabel - - - - - - - - - 15 - - - 0 - - - 0 - - - - - - 0 - 0 - - - - - 50 - 0 - - - - Speed: - - - Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter - - - - - - - TextLabel - - - - - - - - - 15 - - - 0 - - - 0 - - - - - - 0 - 0 - - - - - 50 - 0 - - - - Fix Type: - - - Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter - - - - - - - TextLabel - - - - - - - - - 15 - - - 0 - - - 0 - - - - - - 0 - 0 - - - - - 50 - 0 - - - - GPS Time: - - - Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter - - - - - - - TextLabel - - - - - - - - - 15 - - - 0 - - - 0 - - - - - - 0 - 0 - - - - - 50 - 0 - - - - GPS Date: - - - Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter - - - - - - - TextLabel - - - - - - - - - 15 - - - 0 - - - 0 - - - - - - 0 - 0 - - - - - 50 - 0 - - - - Status: - - - Qt::PlainText - - - Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter - - - - - - - Unknown - - - - - - - - - - - 10 - 180 - 551 - 111 - - - - - 0 - 0 - - - - GPS Data Stream - - - - - 0 - 40 - 551 - 71 - - - - - Courier New - 8 - - - - Qt::ScrollBarAlwaysOn - - - QTextEdit::WidgetWidth - - - - - - 360 - 10 - 75 - 23 - - - - Connect - - - - - - 450 - 10 - 75 - 23 - - - - Disconnect - - - - - - - 370 - 10 - 191 - 95 - - - - - 0 - 0 - - - - false - - - - - - Qt::ScrollBarAlwaysOff - - - Qt::ScrollBarAlwaysOff - - - QGraphicsView::DontAdjustForAntialiasing - - - - - - + + + GpsDisplayWidget + + + + 0 + 0 + 570 + 301 + + + + Form + + + + + 190 + 10 + 171 + 171 + + + + + 0 + 0 + + + + + 171 + 171 + + + + + 171 + 171 + + + + false + + + + + + Qt::ScrollBarAlwaysOff + + + Qt::ScrollBarAlwaysOff + + + + 0.000000000000000 + 0.000000000000000 + 169.000000000000000 + 169.000000000000000 + + + + + + + 370 + 114 + 191 + 67 + + + + + 0 + 0 + + + + + + + + + + 10 + 4 + 171 + 177 + + + + + 0 + 0 + + + + GPS Status + + + + + + 15 + + + 0 + + + 0 + + + + + + 0 + 0 + + + + + 50 + 0 + + + + Lattitude: + + + Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter + + + + + + + TextLabel + + + + + + + + + 15 + + + 0 + + + 0 + + + + + + 0 + 0 + + + + + 50 + 0 + + + + Longitude: + + + Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter + + + + + + + TextLabel + + + + + + + + + 15 + + + 0 + + + 0 + + + + + + 0 + 0 + + + + + 50 + 0 + + + + Bearing: + + + Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter + + + + + + + TextLabel + + + + + + + + + 15 + + + 0 + + + 0 + + + + + + 0 + 0 + + + + + 50 + 0 + + + + Speed: + + + Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter + + + + + + + TextLabel + + + + + + + + + 15 + + + 0 + + + 0 + + + + + + 0 + 0 + + + + + 50 + 0 + + + + Fix Type: + + + Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter + + + + + + + TextLabel + + + + + + + + + 15 + + + 0 + + + 0 + + + + + + 0 + 0 + + + + + 50 + 0 + + + + GPS Time: + + + Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter + + + + + + + TextLabel + + + + + + + + + 15 + + + 0 + + + 0 + + + + + + 0 + 0 + + + + + 50 + 0 + + + + GPS Date: + + + Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter + + + + + + + TextLabel + + + + + + + + + 15 + + + 0 + + + 0 + + + + + + 0 + 0 + + + + + 50 + 0 + + + + Status: + + + Qt::PlainText + + + Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter + + + + + + + Unknown + + + + + + + + + + + 10 + 190 + 551 + 104 + + + + + 0 + 0 + + + + GPS Data Stream + + + + + + + Courier New + 8 + + + + Qt::ScrollBarAlwaysOn + + + QTextEdit::WidgetWidth + + + + + + + + 60 + 23 + + + + Connect + + + + + + + + 60 + 23 + + + + Disconnect + + + + + + + + + 370 + 10 + 191 + 95 + + + + + 0 + 0 + + + + false + + + + + + Qt::ScrollBarAlwaysOff + + + Qt::ScrollBarAlwaysOff + + + QGraphicsView::DontAdjustForAntialiasing + + + + + +