libyui-qt
Loading...
Searching...
No Matches
YQLog.h
1/*
2 Copyright (c) 2021 SUSE LLC
3
4 This library is free software; you can redistribute it and/or modify
5 it under the terms of the GNU Lesser General Public License as
6 published by the Free Software Foundation; either version 2.1 of the
7 License, or (at your option) version 3.0 of the License. This library
8 is distributed in the hope that it will be useful, but WITHOUT ANY
9 WARRANTY; without even the implied warranty of MERCHANTABILITY or
10 FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
11 License for more details. You should have received a copy of the GNU
12 Lesser General Public License along with this library; if not, write
13 to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
14 Floor, Boston, MA 02110-1301 USA
15*/
16
17
18
19#ifndef YQLog_h
20#define YQLog_h
21
22
23#ifndef YUILogComponent
24# define YUILogComponent "qt-ui"
25#endif
26#include <yui/YUILog.h>
27#include <iosfwd>
28
29
30class QPoint;
31class QSize;
32class QRect;
33
34
35// Overloads for common Qt types for use in yuiDebug() etc.
36
37std::ostream & operator<<( std::ostream & stream, const QPoint & pos );
38std::ostream & operator<<( std::ostream & stream, const QSize & size );
39std::ostream & operator<<( std::ostream & stream, const QRect & rect );
40
41
42
43#endif // YQLog_h