Fix "Debug" configuration.

This commit is contained in:
LoRd_MuldeR 2011-02-20 19:29:28 +01:00
parent f54fd17b3c
commit 67b698ba4d
2 changed files with 13 additions and 1 deletions

View File

@ -585,11 +585,16 @@ void MainWindow::changeEvent(QEvent *e)
comboBoxSamplingRate->setCurrentIndex(comboBoxIndex[1]);
comboBoxNeroAACProfile->setCurrentIndex(comboBoxIndex[2]);
//Update the window title
#if !defined(_DEBUG) && !defined(QT_DEBUG) && defined(NDEBUG) && defined(QT_NO_DEBUG)
if(lamexp_version_demo())
{
setWindowTitle(QString("%1 [%2]").arg(windowTitle(), tr("DEMO VERSION")));
}
#else
setWindowTitle(QString("%1 [!!! DEBUG BUILD !!!]").arg(windowTitle()));
#endif
//Manually re-translate widgets that UIC doesn't handle
m_dropNoteLabel->setText(QString("» %1 «").arg(tr("You can drop in audio files here!")));
m_showDetailsContextAction->setText(tr("Show Details"));

View File

@ -57,6 +57,13 @@
//Debug only includes
#ifdef _DEBUG
#ifndef _WIN32_WINNT
#define _WIN32_WINNT 0x0501
#endif
#if(_WIN32_WINNT < 0x0501)
#undef _WIN32_WINNT
#define _WIN32_WINNT 0x0501
#endif
#include <Psapi.h>
#endif //_DEBUG