mirror of
https://codeberg.org/comaps/comaps
synced 2026-01-04 03:43:46 +00:00
To expand with full Organic Maps and Maps.ME commits history run: git remote add om-historic [om-historic.git repo url] git fetch --tags om-historic git replace squashed-history historic-commits
29 lines
623 B
C++
29 lines
623 B
C++
#pragma once
|
|
|
|
#include <string>
|
|
#include <utility>
|
|
|
|
#include <QtCore/QString>
|
|
|
|
namespace strings
|
|
{
|
|
class UniString;
|
|
}
|
|
|
|
QString ToQString(strings::UniString const & s);
|
|
QString ToQString(std::string const & s);
|
|
|
|
template <typename Layout, typename... Args>
|
|
Layout * BuildLayout(Args &&... args)
|
|
{
|
|
return new Layout(std::forward<Args>(args)...);
|
|
}
|
|
|
|
template <typename Layout, typename... Args>
|
|
Layout * BuildLayoutWithoutMargins(Args &&... args)
|
|
{
|
|
auto * layout = BuildLayout<Layout>(std::forward<Args>(args)...);
|
|
layout->setContentsMargins(0 /* left */, 0 /* top */, 0 /* right */, 0 /* bottom */);
|
|
return layout;
|
|
}
|