Logo    
KDWinUtils
Helper library for MFC to Qt migration
Loading...
Searching...
No Matches
kdwincore_utils.h
Go to the documentation of this file.
1/****************************************************************************
2**
3** This file is part of KDWinutils, KDAB's MFC to Qt migration tool.
4**
5** Copyright (C) 2023 Klarälvdalens Datakonsult AB, a KDAB Group company <info@kdab.com>
6** All rights reserved.
7**
8** This file is intended solely for use by the migration tools and services
9** provided by Klarälvdalens Datakonsult AB.
10**
11** Any other use or distribution of this software that is not otherwise agreed
12** upon in writing and signed by an authorized representative of Klarälvdalens
13** Datakonsult AB, KDAB (USA) LLC, KDAB (Deutschland) GmbH & Co. K.G.,
14** KDAB (France) SAS, KDAB (UK), Ltd., or any future subsidiary of Klarälvdalens
15** Datakonsult AB is hereby prohibited.
16**
17** Contact info@kdab.com if any conditions stated above are unclear to you.
18**
19****************************************************************************/
20
21#pragma once
22
24
25#include <QRect>
26#include <QString>
27
28#ifdef KDWINUTILS_WITHMFC
29#include <afxwin.h>
30#endif // KDWINUTILS_WITHMFC
31
33
34namespace Utils {
35
37KDWINUTILS_EXPORT QString toQString(const wchar_t *str);
38
39#ifdef KDWINUTILS_WITHMFC
41KDWINUTILS_EXPORT QString toQString(const CStringW &str);
42
44KDWINUTILS_EXPORT QString toQString(const CStringA &str);
45
51KDWINUTILS_EXPORT CString toCString(const QString &str);
52
54KDWINUTILS_EXPORT QRect toQRect(const CRect &rect);
56KDWINUTILS_EXPORT CRect toCRect(const QRect &rect);
57
59KDWINUTILS_EXPORT QPoint toQPoint(const CPoint &point);
61KDWINUTILS_EXPORT CPoint toCPoint(const QPoint &point);
62
64KDWINUTILS_EXPORT QSize toQSize(const CSize &size);
66KDWINUTILS_EXPORT CSize toCSize(const QSize &size);
67#endif // KDWINUTILS_WITHMFC
68
69} // namespace Utils
70
#define KDWINUTILS_EXPORT
Definition kdwinutils_export.h:31
#define KDWINUTILS_BEGIN_NAMESPACE
Definition kdwinutils_global.h:27
#define KDWINUTILS_END_NAMESPACE
Definition kdwinutils_global.h:28
Definition kdwincore_utils.h:34
CString toCString(const QString &str)
Converts a QString into a CString.
CRect toCRect(const QRect &rect)
Converts a QRect into a CRect.
QRect toQRect(const CRect &rect)
Converts a CRect into a QRect.
QSize toQSize(const CSize &size)
Converts a CSize into a QSize.
CPoint toCPoint(const QPoint &point)
Converts a QPoint into a CPoint.
QString toQString(const wchar_t *str)
Converts a wide string into a QString.
QPoint toQPoint(const CPoint &point)
Converts a QPoint into a CPoint.
CSize toCSize(const QSize &size)
Converts a QSize into a CSize.