+Add method to get mdi view by view provider, add method to get flag widgets

This commit is contained in:
wmayer
2013-11-22 15:14:15 +01:00
parent ac93eae55b
commit 85f4a35b61
4 changed files with 34 additions and 0 deletions

View File

@@ -503,6 +503,24 @@ void GLFlagWindow::removeFlag(Flag* item)
}
}
Flag* GLFlagWindow::getFlag(int index) const
{
if (_flagLayout) {
QWidget* flag = _flagLayout->itemAt(index)->widget();
return qobject_cast<Flag*>(flag);
}
return 0;
}
int GLFlagWindow::countFlags() const
{
if (_flagLayout) {
return _flagLayout->count();
}
return 0;
}
void GLFlagWindow::paintGL()
{
// draw lines for the flags