Colour bars/Display: Difference between revisions
Content added Content deleted
m (→{{header|C++}}: formating) |
|||
Line 123: | Line 123: | ||
=={{header|C++}}== |
=={{header|C++}}== |
||
using Qt 4.6 |
using Qt 4.6 |
||
file <code>colorbars.h</code>: |
|||
<lang cpp>#ifndef MYWIDGET_H |
<lang cpp>#ifndef MYWIDGET_H |
||
#define MYWIDGET_H |
#define MYWIDGET_H |
||
Line 142: | Line 144: | ||
} ; |
} ; |
||
#endif</lang> |
#endif</lang> |
||
file <code>colorbars.cpp</code>: |
|||
<lang cpp>#include <QtGui> |
<lang cpp>#include <QtGui> |
||
#include "colorbars.h" |
#include "colorbars.h" |
||
Line 170: | Line 174: | ||
} |
} |
||
}</lang> |
}</lang> |
||
file <code>main.cpp</code>: |
|||
<lang cpp>#include <QApplication> |
<lang cpp>#include <QApplication> |
||
#include "colorbars.h" |
#include "colorbars.h" |