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)
|
void CSVRender::PagedWorldspaceWidget::mouseReleaseEvent (QMouseEvent *event)
|
||||||
{
|
{
|
||||||
std::list<TextOverlay *>::iterator iter = mTextOverlays.begin();
|
if(event->button() == Qt::RightButton)
|
||||||
for(; iter != mTextOverlays.end(); ++iter)
|
|
||||||
{
|
{
|
||||||
if(mDisplayCellCoord &&
|
std::list<TextOverlay *>::iterator iter = mTextOverlays.begin();
|
||||||
(*iter)->isEnabled() && (*iter)->container().contains(event->x(), event->y()))
|
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()
|
void CSVRender::PagedWorldspaceWidget::updateOverlay()
|
||||||
|
|
|
@ -18,7 +18,6 @@
|
||||||
|
|
||||||
#include "navigation.hpp"
|
#include "navigation.hpp"
|
||||||
#include "lighting.hpp"
|
#include "lighting.hpp"
|
||||||
#include "elements.hpp" // FIXME: for testing only
|
|
||||||
|
|
||||||
namespace CSVRender
|
namespace CSVRender
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue