blob: c40fe23876628744b12ca00df99cdb5430d3b175 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#include "fb2mode.h"
//---------------------------------------------------------------------------
// FbActionMap
//---------------------------------------------------------------------------
void FbActionMap::connect()
{
foreach (QAction *action, *this) {
action->setEnabled(true);
}
}
void FbActionMap::disconnect()
{
foreach (QAction *action, *this) {
if (action->isCheckable()) action->setChecked(false);
action->setEnabled(false);
action->disconnect();
}
}
|