summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim E. Real <termtech@rogers.com>2010-11-13 01:23:45 +0000
committerTim E. Real <termtech@rogers.com>2010-11-13 01:23:45 +0000
commit17d8ce85ca5ee2a3b3e0b3c9c8af745da8117e40 (patch)
tree1f9e11a0696703854ab7100d50def14ce8440364
parent2bca4ba1f52d73c11abec9c6b3b2e0af21594cf0 (diff)
Fixed arranger alignment issues - set layout margins to zero
-rw-r--r--muse2/ChangeLog3
-rw-r--r--muse2/muse/arranger/alayout.h2
-rw-r--r--muse2/muse/arranger/arranger.cpp4
3 files changed, 8 insertions, 1 deletions
diff --git a/muse2/ChangeLog b/muse2/ChangeLog
index f2d81ecc..2006b45c 100644
--- a/muse2/ChangeLog
+++ b/muse2/ChangeLog
@@ -1,3 +1,6 @@
+12.11.2010
+ - Fixed arranger alignment issues - set layout margins to zero. (Tim)
+ TODO: Track list items aligned to canvas tracks are still off by one lousy vertical pixel.
11.11.2010
- WIP: Mixer and strips re-designed to be theme/font friendly - no more fixed STRIP_WIDTH. (Tim)
- Fixed Slider, Knob and DoubleEntry classes. Knob anti-aliasing applied (where allowed).
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);