refs #322, included context menu and methods for injecting test data (ATC stations) in GUI

This commit is contained in:
Klaus Basan
2014-09-04 01:31:28 +02:00
parent 87e87013f9
commit e4545f23d2
14 changed files with 124 additions and 5 deletions

View File

@@ -137,6 +137,26 @@ namespace BlackMisc
return getMajorMinor(1);
}
bool CProject::isDebugBuild()
{
#ifdef QT_DEBUG
return true;
#else
return false;
#endif
}
bool CProject::isReleaseBuild()
{
#ifdef QT_NO_DEBUG
return true;
#else
return false;
#endif
}
int CProject::getMajorMinor(int index)
{
QString v = version();

View File

@@ -66,6 +66,12 @@ namespace BlackMisc
//! Version minor
static int versionMinor();
//! Debug build?
static bool isDebugBuild();
//! Release build?
static bool isReleaseBuild();
private:
//! Constructor
CProject() {}