Mercurial > hg > svgui
comparison view/PaneStack.cpp @ 946:36cddc3de023 alignment_view
Merge from default branch
| author | Chris Cannam |
|---|---|
| date | Mon, 20 Apr 2015 09:19:52 +0100 |
| parents | 99373ca20caf 4a578a360011 |
| children | a34a2a25907c |
comparison
equal
deleted
inserted
replaced
| 897:499b637f2a26 | 946:36cddc3de023 |
|---|---|
| 107 layout->setRowStretch(1, 20); | 107 layout->setRowStretch(1, 20); |
| 108 currentIndicator->setMinimumWidth(8); | 108 currentIndicator->setMinimumWidth(8); |
| 109 currentIndicator->setScaledContents(true); | 109 currentIndicator->setScaledContents(true); |
| 110 currentIndicator->setVisible(m_showAccessories); | 110 currentIndicator->setVisible(m_showAccessories); |
| 111 | 111 |
| 112 int initialCentreFrame = -1; | 112 sv_frame_t initialCentreFrame = -1; |
| 113 if (!m_panes.empty()) { | 113 if (!m_panes.empty()) { |
| 114 initialCentreFrame = m_panes[0].pane->getCentreFrame(); | 114 initialCentreFrame = m_panes[0].pane->getCentreFrame(); |
| 115 } | 115 } |
| 116 | 116 |
| 117 Pane *pane = new Pane(frame); | 117 Pane *pane = new Pane(frame); |
| 172 this, SLOT(rightButtonMenuRequested(QPoint))); | 172 this, SLOT(rightButtonMenuRequested(QPoint))); |
| 173 connect(pane, SIGNAL(dropAccepted(QStringList)), | 173 connect(pane, SIGNAL(dropAccepted(QStringList)), |
| 174 this, SLOT(paneDropAccepted(QStringList))); | 174 this, SLOT(paneDropAccepted(QStringList))); |
| 175 connect(pane, SIGNAL(dropAccepted(QString)), | 175 connect(pane, SIGNAL(dropAccepted(QString)), |
| 176 this, SLOT(paneDropAccepted(QString))); | 176 this, SLOT(paneDropAccepted(QString))); |
| 177 connect(pane, SIGNAL(doubleClickSelectInvoked(int)), | 177 connect(pane, SIGNAL(doubleClickSelectInvoked(sv_frame_t)), |
| 178 this, SIGNAL(doubleClickSelectInvoked(int))); | 178 this, SIGNAL(doubleClickSelectInvoked(sv_frame_t))); |
| 179 | 179 |
| 180 emit paneAdded(pane); | 180 emit paneAdded(pane); |
| 181 emit paneAdded(); | 181 emit paneAdded(); |
| 182 | 182 |
| 183 if (!m_currentPane) { | 183 if (!m_currentPane) { |
| 364 } | 364 } |
| 365 | 365 |
| 366 int | 366 int |
| 367 PaneStack::getPaneCount() const | 367 PaneStack::getPaneCount() const |
| 368 { | 368 { |
| 369 return m_panes.size(); | 369 return int(m_panes.size()); |
| 370 } | 370 } |
| 371 | 371 |
| 372 int | 372 int |
| 373 PaneStack::getHiddenPaneCount() const | 373 PaneStack::getHiddenPaneCount() const |
| 374 { | 374 { |
| 375 return m_hiddenPanes.size(); | 375 return int(m_hiddenPanes.size()); |
| 376 } | 376 } |
| 377 | 377 |
| 378 void | 378 void |
| 379 PaneStack::hidePane(Pane *pane) | 379 PaneStack::hidePane(Pane *pane) |
| 380 { | 380 { |
