Mercurial > hg > svgui
comparison view/PaneStack.cpp @ 908:4a578a360011 cxx11
More type fixes
author | Chris Cannam |
---|---|
date | Tue, 10 Mar 2015 13:22:10 +0000 |
parents | 57efeb75880d |
children | 36cddc3de023 |
comparison
equal
deleted
inserted
replaced
907:28d05ae8741c | 908:4a578a360011 |
---|---|
96 layout->setRowStretch(1, 20); | 96 layout->setRowStretch(1, 20); |
97 currentIndicator->setMinimumWidth(8); | 97 currentIndicator->setMinimumWidth(8); |
98 currentIndicator->setScaledContents(true); | 98 currentIndicator->setScaledContents(true); |
99 currentIndicator->setVisible(m_showAccessories); | 99 currentIndicator->setVisible(m_showAccessories); |
100 | 100 |
101 int initialCentreFrame = -1; | 101 sv_frame_t initialCentreFrame = -1; |
102 if (!m_panes.empty()) { | 102 if (!m_panes.empty()) { |
103 initialCentreFrame = m_panes[0].pane->getCentreFrame(); | 103 initialCentreFrame = m_panes[0].pane->getCentreFrame(); |
104 } | 104 } |
105 | 105 |
106 Pane *pane = new Pane(frame); | 106 Pane *pane = new Pane(frame); |
154 this, SLOT(rightButtonMenuRequested(QPoint))); | 154 this, SLOT(rightButtonMenuRequested(QPoint))); |
155 connect(pane, SIGNAL(dropAccepted(QStringList)), | 155 connect(pane, SIGNAL(dropAccepted(QStringList)), |
156 this, SLOT(paneDropAccepted(QStringList))); | 156 this, SLOT(paneDropAccepted(QStringList))); |
157 connect(pane, SIGNAL(dropAccepted(QString)), | 157 connect(pane, SIGNAL(dropAccepted(QString)), |
158 this, SLOT(paneDropAccepted(QString))); | 158 this, SLOT(paneDropAccepted(QString))); |
159 connect(pane, SIGNAL(doubleClickSelectInvoked(int)), | 159 connect(pane, SIGNAL(doubleClickSelectInvoked(sv_frame_t)), |
160 this, SIGNAL(doubleClickSelectInvoked(int))); | 160 this, SIGNAL(doubleClickSelectInvoked(sv_frame_t))); |
161 | 161 |
162 emit paneAdded(pane); | 162 emit paneAdded(pane); |
163 emit paneAdded(); | 163 emit paneAdded(); |
164 | 164 |
165 if (!m_currentPane) { | 165 if (!m_currentPane) { |
321 } | 321 } |
322 | 322 |
323 int | 323 int |
324 PaneStack::getPaneCount() const | 324 PaneStack::getPaneCount() const |
325 { | 325 { |
326 return m_panes.size(); | 326 return int(m_panes.size()); |
327 } | 327 } |
328 | 328 |
329 int | 329 int |
330 PaneStack::getHiddenPaneCount() const | 330 PaneStack::getHiddenPaneCount() const |
331 { | 331 { |
332 return m_hiddenPanes.size(); | 332 return int(m_hiddenPanes.size()); |
333 } | 333 } |
334 | 334 |
335 void | 335 void |
336 PaneStack::hidePane(Pane *pane) | 336 PaneStack::hidePane(Pane *pane) |
337 { | 337 { |