Compare Pane Mechanics

.. compare pane now appears and disappears on both
   the analysis view and home view

.. it also is notified of drag/drop events and can
   accept the objects dropped

.. it is now time to write the widget for collecting
   and managing compare sets
This commit is contained in:
Mark Liversedge
2013-12-01 10:28:27 +00:00
parent a159181792
commit 6e304cd0d4
4 changed files with 45 additions and 3 deletions

View File

@@ -58,7 +58,10 @@ TabView::TabView(Context *context, int type) :
splitter->setOpaqueResize(true); // redraw when released, snappier UI
stack->insertWidget(0, splitter); // splitter always at index 0
mainSplitter = new ViewSplitter(Qt::Vertical, "Compare Intervals", this);
QString heading = "Compare Intervals";
if (type == VIEW_HOME) heading = "Compare Date Ranges";
mainSplitter = new ViewSplitter(Qt::Vertical, heading, this);
mainSplitter->setHandleWidth(23);
mainSplitter->setFrameStyle(QFrame::NoFrame);
mainSplitter->setContentsMargins(0, 0, 0, 0); // attempting to follow some UI guides