Commit 8fe60f9b authored by Jan Möbius's avatar Jan Möbius
Browse files

Expand function for side area

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@16996 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 7812a6ad
...@@ -167,6 +167,15 @@ void SideArea::expandAll() ...@@ -167,6 +167,15 @@ void SideArea::expandAll()
} }
} }
void SideArea::expand(QWidget *sideElementWidget, bool expand)
{
foreach (SideElement *e, items_)
{
if (e->widget() == sideElementWidget)
e->setActive(expand);
}
}
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
void SideArea::saveState (QSettings &_settings) void SideArea::saveState (QSettings &_settings)
......
...@@ -99,6 +99,8 @@ class SideArea : public QWidget { ...@@ -99,6 +99,8 @@ class SideArea : public QWidget {
//expand all elements //expand all elements
void expandAll(); void expandAll();
void expand(QWidget *sideElementWidget, bool expand);
/// returns the current state /// returns the current state
void saveState (QSettings &_settings); void saveState (QSettings &_settings);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment