Debian Codegraph @

src/closeeventfilter.cpp

raw symbols SCIP
1 /*
2 * midisnoop - MIDI monitor and prober
3 * Copyright (C) 2012 Devin Anderson
4 *
5 * This program is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License as published by the Free
7 * Software Foundation; either version 2 of the License, or (at your option)
8 * any later version.
9 *
10 * This program is distributed in the hope that it will be useful, but WITHOUT
11 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
13 * more details.
14 *
15 * You should have received a copy of the GNU General Public License along with
16 * this program; if not, write to the Free Software Foundation, Inc., 675 Mass
17 * Ave, Cambridge, MA 02139, USA.
18 */
19
20 #include "closeeventfilter.h"cxx . . $ `<file>/src/closeeventfilter.h`/
21
22 CloseEventFiltercxx . . $ CloseEventFilter#::CloseEventFiltercxx . . $ CloseEventFilter#CloseEventFilter(749de1b6ae65bddd).(QObjectcxx . . $ QObject# *parent):
23 QObjectcxx . . $ QObject#QObject(749de1b6ae65bddd).(parent)
24 {
25 closeEnabledcxx . . $ CloseEventFilter#closeEnabled. = true;
26 }
27
28 CloseEventFiltercxx . . $ CloseEventFilter#::~cxx . . $ CloseEventFilter#`~CloseEventFilter`(ced63f7c635d850d).CloseEventFiltercxx . . $ CloseEventFilter#()
29 {
30 // Empty
31 }
32
33 bool
34 CloseEventFiltercxx . . $ CloseEventFilter#::eventFiltercxx . . $ CloseEventFilter#eventFilter(978aa4af1d030efa).(QObjectcxx . . $ QObject# *obj, QEventcxx . . $ QEvent# *event)
35 {
36 if (event->typecxx . . $ QEvent#type(916a8de57f4d422b).() == QEventcxx . . $ QEvent#::Closecxx . . $ QEvent#Close.) {
37 event->ignorecxx . . $ QEvent#ignore(49f6e7a06ebc5aa8).();
38 if (closeEnabledcxx . . $ CloseEventFilter#closeEnabled.) {
39 emitcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:97:10`! closeRequestcxx . . $ CloseEventFilter#closeRequest(49f6e7a06ebc5aa8).();
40 }
41 return true;
42 }
43 return QObjectcxx . . $ QObject#::eventFiltercxx . . $ QObject#eventFilter(978aa4af1d030efa).(obj, event);
44 }
45
46 bool
47 CloseEventFiltercxx . . $ CloseEventFilter#::isCloseEnabledcxx . . $ CloseEventFilter#isCloseEnabled(50ce9a9e25b4a850).() const
48 {
49 return closeEnabledcxx . . $ CloseEventFilter#closeEnabled.;
50 }
51
52 void
53 CloseEventFiltercxx . . $ CloseEventFilter#::setCloseEnabledcxx . . $ CloseEventFilter#setCloseEnabled(b45ddcbc8423892c).(bool enabled)
54 {
55 closeEnabledcxx . . $ CloseEventFilter#closeEnabled. = enabled;
56 }