Qt 5.10 Book Examples
chapter42
DynLib
DLL
dynlib.cpp
Go to the documentation of this file.
1
// ======================================================================
2
// dynlib.cpp
3
// ======================================================================
4
// This file is a part of the book
5
// "Qt 5.10 Professional programming with C++"
6
// http://qt-book.com
7
// ======================================================================
8
// Copyright (c) 2017 by Max Schlee
9
// ======================================================================
10
11
#include "
dynlib.h
"
12
13
// ----------------------------------------------------------------------
14
QString
oddUpper
(
const
QString& str)
15
{
16
QString strTemp;
17
18
for
(
int
i = 0; i < str.length(); ++i) {
19
strTemp += (i % 2) ? str.at(i) : str.at(i).toUpper();
20
}
21
22
return
strTemp;
23
}
dynlib.h
oddUpper
QString oddUpper(const QString &str)
Definition:
dynlib.cpp:14
Generated by
1.8.14