You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
83 lines
1.1 KiB
83 lines
1.1 KiB
#include "TestClass.hpp"
|
|
#include <iostream>
|
|
|
|
void TestClass::open()
|
|
{
|
|
std::cout << "open\n";
|
|
}
|
|
|
|
// -- Mac
|
|
#ifndef Q_OS_MAC
|
|
void TestClass::MacNotDef()
|
|
{
|
|
std::cout << "MacNotDef\n";
|
|
}
|
|
#else
|
|
void TestClass::MacNotDefElse()
|
|
{
|
|
std::cout << "MacNotDefElse\n";
|
|
}
|
|
#endif
|
|
|
|
#ifdef Q_OS_MAC
|
|
void TestClass::MacDef()
|
|
{
|
|
std::cout << "MacDef\n";
|
|
}
|
|
#else
|
|
void TestClass::MacDefElse()
|
|
{
|
|
std::cout << "MacDefElse\n";
|
|
}
|
|
#endif
|
|
|
|
// -- Unix
|
|
#ifndef Q_OS_UNIX
|
|
void TestClass::UnixNotDef()
|
|
{
|
|
std::cout << "UnixNotDef\n";
|
|
}
|
|
#else
|
|
void TestClass::UnixNotDefElse()
|
|
{
|
|
std::cout << "UnixNotDefElse\n";
|
|
}
|
|
#endif
|
|
|
|
#ifdef Q_OS_UNIX
|
|
void TestClass::UnixDef()
|
|
{
|
|
std::cout << "UnixDef\n";
|
|
}
|
|
#else
|
|
void TestClass::UnixDefElse()
|
|
{
|
|
std::cout << "UnixDefElse\n";
|
|
}
|
|
#endif
|
|
|
|
// -- Windows
|
|
#ifndef Q_OS_WIN
|
|
void TestClass::WindowsNotDef()
|
|
{
|
|
std::cout << "WindowsNotDef\n";
|
|
}
|
|
#else
|
|
void TestClass::WindowsNotDefElse()
|
|
{
|
|
std::cout << "WindowsNotDefElse\n";
|
|
}
|
|
#endif
|
|
|
|
#ifdef Q_OS_WIN
|
|
void TestClass::WindowsDef()
|
|
{
|
|
std::cout << "WindowsDef\n";
|
|
}
|
|
#else
|
|
void TestClass::WindowsDefElse()
|
|
{
|
|
std::cout << "WindowsDefElse\n";
|
|
}
|
|
#endif
|