diff options
author | Tim E. Real <termtech@rogers.com> | 2010-11-13 01:23:45 +0000 |
---|---|---|
committer | Tim E. Real <termtech@rogers.com> | 2010-11-13 01:23:45 +0000 |
commit | 17d8ce85ca5ee2a3b3e0b3c9c8af745da8117e40 (patch) | |
tree | 1f9e11a0696703854ab7100d50def14ce8440364 /muse2/muse | |
parent | 2bca4ba1f52d73c11abec9c6b3b2e0af21594cf0 (diff) |
Fixed arranger alignment issues - set layout margins to zero
Diffstat (limited to 'muse2/muse')
-rw-r--r-- | muse2/muse/arranger/alayout.h | 2 | ||||
-rw-r--r-- | muse2/muse/arranger/arranger.cpp | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/muse2/muse/arranger/alayout.h b/muse2/muse/arranger/alayout.h index ce863c26..08eb1727 100644 --- a/muse2/muse/arranger/alayout.h +++ b/muse2/muse/arranger/alayout.h @@ -33,7 +33,7 @@ class TLLayout : public QLayout public: //TLLayout(QWidget *parent) : QLayout(parent, 0, -1) {} - TLLayout(QWidget *parent) : QLayout(parent) { setMargin(0); setSpacing(0); } + TLLayout(QWidget *parent) : QLayout(parent) { setMargin(0); setSpacing(-1); } ~TLLayout() { clear(); } void addItem(QLayoutItem *item) { ilist.append(item); } diff --git a/muse2/muse/arranger/arranger.cpp b/muse2/muse/arranger/arranger.cpp index 99d0e181..a3c23a0a 100644 --- a/muse2/muse/arranger/arranger.cpp +++ b/muse2/muse/arranger/arranger.cpp @@ -221,6 +221,7 @@ Arranger::Arranger(QMainWindow* parent, const char* name) split = new Splitter(Qt::Horizontal, this, "split"); split->setSizePolicy(QSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding)); box->addWidget(split, 1000); + //split->setHandleWidth(10); QWidget* tracklist = new QWidget(split); split->setResizeMode(tracklist, QSplitter::KeepSize); @@ -330,6 +331,9 @@ Arranger::Arranger(QMainWindow* parent, const char* name) QGridLayout* egrid = new QGridLayout(editor); egrid->setColStretch(0, 50); egrid->setRowStretch(2, 50); + //egrid->setContentsMargins(0, 0, 0, 0); + egrid->setMargin(0); + egrid->setSpacing(0); time = new MTScale(&_raster, editor, xscale); time->setOrigin(-offset, 0); |