diff --git a/designer/main.cpp b/designer/main.cpp index 57a32c1..96e73e4 100644 --- a/designer/main.cpp +++ b/designer/main.cpp @@ -11,9 +11,9 @@ int main(int argc, char *argv[]) QTranslator limeReportTranslator; QTranslator qtBaseTranslator; - QTranslator qtDesignerTranslator; - QTranslator qtLinguistTranslator; - + QTranslator qtDesignerTranslator; + QTranslator qtLinguistTranslator; + QString translationPath = QApplication::applicationDirPath(); translationPath.append("/translations"); Qt::LayoutDirection layoutDirection = QLocale::system().textDirection(); @@ -22,12 +22,12 @@ int main(int argc, char *argv[]) if (limeReportTranslator.load("limereport_"+designerTranslation, translationPath)){ qtBaseTranslator.load("qtbase_" + designerTranslation, translationPath); - qtDesignerTranslator.load("designer_"+designerTranslation,translationPath); - + qtDesignerTranslator.load("designer_"+designerTranslation,translationPath); + a.installTranslator(&qtBaseTranslator); - a.installTranslator(&qtDesignerTranslator); + a.installTranslator(&qtDesignerTranslator); a.installTranslator(&limeReportTranslator); - + Qt::LayoutDirection layoutDirection = QLocale(manager.getCurrentDefaultLanguage()).textDirection(); a.setLayoutDirection(layoutDirection); } diff --git a/limereport/lrbasedesignintf.cpp b/limereport/lrbasedesignintf.cpp index 7c7c2eb..00c4931 100644 --- a/limereport/lrbasedesignintf.cpp +++ b/limereport/lrbasedesignintf.cpp @@ -426,6 +426,7 @@ void BaseDesignIntf::paint(QPainter *ppainter, const QStyleOptionGraphicsItem *o Q_UNUSED(option); Q_UNUSED(widget); ppainter->save(); + ppainter->setRenderHint(QPainter::HighQualityAntialiasing); setupPainter(ppainter); drawBorder(ppainter, rect()); // if (m_joinMarkerOn) { drawMarker(ppainter, Const::JOIN_COLOR);} @@ -1171,11 +1172,11 @@ QPen BaseDesignIntf::borderPen(BorderSide side/*, bool selected*/) const if (m_borderLinesFlags & side) { pen.setColor(m_borderColor); pen.setStyle(m_borderStyle); - pen.setWidthF(m_borderLineSize * 1.33333333); + pen.setWidthF(m_borderLineSize*1.333); } else { pen.setColor(Qt::darkGray); pen.setStyle(Qt::SolidLine); - pen.setWidthF(1); + pen.setWidth(1); } return pen; } diff --git a/translations/limereport_fr.ts b/translations/limereport_fr.ts index 714b160..ea77d2d 100644 --- a/translations/limereport_fr.ts +++ b/translations/limereport_fr.ts @@ -554,53 +554,53 @@ p, li { white-space: pre-wrap; } LimeReport::BaseDesignIntf - - + + Lock item geometry Verrouiller la géométrie d'un élément - + Copy Copier - + Cut Couper - + Paste Coller - + Bring to top Placer au premier-plan - + Send to back Placer en arrière-plan - + Create Horizontal Layout Créer une disposition horizontale - + Create Vertical Layout Créer une disposition verticale - + No borders Aucune bordure - + All borders Toutes les bordures diff --git a/translations/limereport_pl.ts b/translations/limereport_pl.ts index 0eca354..4d91f17 100644 --- a/translations/limereport_pl.ts +++ b/translations/limereport_pl.ts @@ -566,53 +566,53 @@ p, li { white-space: pre-wrap; } LimeReport::BaseDesignIntf - - + + Lock item geometry Zablokuj geometrię pozycji - + Copy Kopiuj - + Cut Wytnij - + Paste Wklej - + Bring to top Przenieś na górę - + Send to back Przenieś na dół - + Create Horizontal Layout Utwórz układ poziomy - + Create Vertical Layout Utwórz układ pionowy - + No borders Bez obramowania - + All borders Pełne obramowanie