From 0f9bcf3239e39db6eca8fb9ee8a12dd1395a9920 Mon Sep 17 00:00:00 2001 From: John Fultz Date: Sun, 13 Jan 2019 13:02:28 -0600 Subject: Add a separator above "Simulation" group box to break up the GUI better. --- quacker/quacker.cpp | 5 +++++ quacker/quacker.h | 2 ++ 2 files changed, 7 insertions(+) (limited to 'quacker') diff --git a/quacker/quacker.cpp b/quacker/quacker.cpp index 79c22bb..5967de8 100644 --- a/quacker/quacker.cpp +++ b/quacker/quacker.cpp @@ -1887,6 +1887,10 @@ void TopLevel::createWidgets() QVBoxLayout *choicesLayout = new QVBoxLayout(m_choicesWidget); Geometry::setupFramedLayout(choicesLayout); + m_frameWidget = new QFrame; + m_frameWidget->setFrameShape(QFrame::HLine); + m_frameWidget->setFrameShadow(QFrame::Sunken); + m_simulatorWidget = new QGroupBox(tr("Simulation")); m_simulatorWidget->setFlat(true); QVBoxLayout *simulatorLayout = new QVBoxLayout(m_simulatorWidget); @@ -1965,6 +1969,7 @@ void TopLevel::createWidgets() choicesLayout->addWidget(m_moveBox, 3); choicesLayout->addWidget(m_noteEditor, 1); + choicesLayout->addWidget(m_frameWidget, 1); choicesLayout->addWidget(m_simulatorWidget, 1); m_history = new History; diff --git a/quacker/quacker.h b/quacker/quacker.h index 3e26ed3..27bef92 100644 --- a/quacker/quacker.h +++ b/quacker/quacker.h @@ -34,6 +34,7 @@ class QAction; class QActionGroup; class QComboBox; class QCheckBox; +class QFrame; class QGroupBox; class QLineEdit; class QPushButton; @@ -320,6 +321,7 @@ private: QWidget *m_choicesWidget; View *m_moveBox; View *m_noteEditor; + QFrame *m_frameWidget; Settings *m_settings; -- cgit v1.2.3