Candidate_v1.6.1
Last change
on this file was 56f73b, checked in by Frederik Heber <heber@…>, 14 years ago |
Added config.h also to all header files, code check test ascertain this in the future.
- as we want to use config.h to pass stuff such as MEMDEBUG, NDEBUG,
LOG_OBSERVER, we have to make sure that it is present in each and every
file.
- split up CodeChecks/testsuite.at: each test has its own .at file.
|
-
Property mode
set to
100644
|
File size:
676 bytes
|
Rev | Line | |
---|
[b59da6] | 1 | /*
|
---|
| 2 | * QtMenuPipe.hpp
|
---|
| 3 | *
|
---|
| 4 | * Created on: Nov 5, 2010
|
---|
| 5 | * Author: heber
|
---|
| 6 | */
|
---|
| 7 |
|
---|
| 8 | #ifndef QTMENUPIPE_HPP_
|
---|
| 9 | #define QTMENUPIPE_HPP_
|
---|
| 10 |
|
---|
[56f73b] | 11 | // include config.h
|
---|
| 12 | #ifdef HAVE_CONFIG_H
|
---|
| 13 | #include <config.h>
|
---|
| 14 | #endif
|
---|
| 15 |
|
---|
| 16 |
|
---|
[b59da6] | 17 | #include <QtCore/QObject>
|
---|
| 18 |
|
---|
| 19 | #include <string>
|
---|
| 20 |
|
---|
| 21 | class QAction;
|
---|
| 22 |
|
---|
| 23 | // This handles the plumbing from QT to internal Items
|
---|
| 24 | // Slots from QT are redirected to internal methods.
|
---|
| 25 | // This way methods can be used where no QT is available
|
---|
| 26 | class QtMenuPipe : public QObject {
|
---|
| 27 | Q_OBJECT
|
---|
| 28 | public:
|
---|
| 29 | QtMenuPipe(const std::string &,QAction*);
|
---|
| 30 | virtual ~QtMenuPipe();
|
---|
| 31 | public slots:
|
---|
| 32 | void called();
|
---|
| 33 | private:
|
---|
| 34 | const std::string ActionName;
|
---|
| 35 | QAction *theAction;
|
---|
| 36 | };
|
---|
| 37 |
|
---|
| 38 | #endif /* QTMENUPIPE_HPP_ */
|
---|
Note:
See
TracBrowser
for help on using the repository browser.