+ fix major flaw in Spreadsheet module: do not include precompiled header in other header files

+ fix linking errors in drawing module
This commit is contained in:
wmayer
2016-01-04 16:03:00 +01:00
parent b39093fd72
commit 3fb195b2c7
8 changed files with 15 additions and 14 deletions

View File

@@ -20,6 +20,8 @@
* *
***************************************************************************/
#include "PreCompiled.h"
#include "PropertiesDialog.h"
#include <Base/Tools.h>
#include <Mod/Spreadsheet/App/SpreadsheetExpression.h>
@@ -175,7 +177,7 @@ void PropertiesDialog::styleChanged()
void PropertiesDialog::displayUnitChanged(const QString & text)
{
if (text == "") {
if (text.isEmpty()) {
displayUnit = DisplayUnit();
ui->buttonBox->button(QDialogButtonBox::Ok)->setEnabled(true);
return;
@@ -202,7 +204,7 @@ void PropertiesDialog::aliasChanged(const QString & text)
{
QPalette palette = ui->alias->palette();
if (text.indexOf(QRegExp("^[A-Za-z][_A-Za-z0-9]*$")) >= 0) {
if (text.indexOf(QRegExp(QString::fromLatin1("^[A-Za-z][_A-Za-z0-9]*$"))) >= 0) {
try {
CellAddress address(text.toUtf8().constData());
@@ -217,7 +219,7 @@ void PropertiesDialog::aliasChanged(const QString & text)
}
}
else {
if (text == "") {
if (text.isEmpty()) {
aliasOk = true;
palette.setColor(QPalette::Text, Qt::black);
}