mirror of
https://github.com/tumic0/GPXSee.git
synced 2024-11-28 05:34:47 +01:00
20 lines
327 B
C++
20 lines
327 B
C++
#include "address.h"
|
|
|
|
QString Address::address() const
|
|
{
|
|
QString addr(_street);
|
|
|
|
if (addr.isEmpty())
|
|
addr = _city;
|
|
else
|
|
addr += "\n" + _city;
|
|
if (!_postalCode.isEmpty())
|
|
addr += "\n" + _postalCode;
|
|
if (!_state.isEmpty())
|
|
addr += "\n" + _state;
|
|
if (!_country.isEmpty())
|
|
addr += "\n" + _country;
|
|
|
|
return addr;
|
|
}
|