Welcome to mirror list, hosted at ThFree Co, Russian Federation.

fb2mode.cpp « source - github.com/lintest/fb2edit.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
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();
    }
}