forked from mirror/openmw-tes3mp
More cleanup.
This commit is contained in:
parent
f48f841d31
commit
7640875f9d
2 changed files with 8 additions and 8 deletions
|
@ -117,17 +117,18 @@ bool CSVRender::PagedWorldspaceWidget::adjustCells()
|
|||
|
||||
void CSVRender::PagedWorldspaceWidget::mouseReleaseEvent (QMouseEvent *event)
|
||||
{
|
||||
std::list<TextOverlay *>::iterator iter = mTextOverlays.begin();
|
||||
for(; iter != mTextOverlays.end(); ++iter)
|
||||
if(event->button() == Qt::RightButton)
|
||||
{
|
||||
if(mDisplayCellCoord &&
|
||||
(*iter)->isEnabled() && (*iter)->container().contains(event->x(), event->y()))
|
||||
std::list<TextOverlay *>::iterator iter = mTextOverlays.begin();
|
||||
for(; iter != mTextOverlays.end(); ++iter)
|
||||
{
|
||||
std::cout << "clicked: " << (*iter)->getCaption() << std::endl;
|
||||
if(mDisplayCellCoord &&
|
||||
(*iter)->isEnabled() && (*iter)->container().contains(event->x(), event->y()))
|
||||
{
|
||||
std::cout << "clicked: " << (*iter)->getCaption() << std::endl;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
SceneWidget::mouseReleaseEvent(event);
|
||||
}
|
||||
|
||||
void CSVRender::PagedWorldspaceWidget::updateOverlay()
|
||||
|
|
|
@ -18,7 +18,6 @@
|
|||
|
||||
#include "navigation.hpp"
|
||||
#include "lighting.hpp"
|
||||
#include "elements.hpp" // FIXME: for testing only
|
||||
|
||||
namespace CSVRender
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue