Make it possible for show and hide multiple pictures at once
This commit is contained in:
parent
a86eab43ff
commit
cc5813b273
8 changed files with 87 additions and 43 deletions
|
@ -833,6 +833,44 @@ void ProfileInterface::settingsApplied(int _contentMode, QString language)
|
|||
}
|
||||
}
|
||||
|
||||
void ProfileInterface::enableSelected()
|
||||
{
|
||||
int fails = 0;
|
||||
foreach (ProfileWidget *widget, widgets.keys())
|
||||
{
|
||||
if (widget->isSelected())
|
||||
{
|
||||
if (widget->getWidgetType() == "SnapmaticWidget")
|
||||
{
|
||||
SnapmaticWidget *snapmaticWidget = (SnapmaticWidget*)widget;
|
||||
if (!snapmaticWidget->makePictureVisible())
|
||||
{
|
||||
fails++;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void ProfileInterface::disableSelected()
|
||||
{
|
||||
int fails = 0;
|
||||
foreach (ProfileWidget *widget, widgets.keys())
|
||||
{
|
||||
if (widget->isSelected())
|
||||
{
|
||||
if (widget->getWidgetType() == "SnapmaticWidget")
|
||||
{
|
||||
SnapmaticWidget *snapmaticWidget = (SnapmaticWidget*)widget;
|
||||
if (!snapmaticWidget->makePictureHidden())
|
||||
{
|
||||
fails++;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
int ProfileInterface::selectedWidgets()
|
||||
{
|
||||
return selectedWidgts;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue