add ability to do not translate strings

This commit is contained in:
arcan1s
2015-08-23 02:14:55 +03:00
parent 713aa611d9
commit b50c1d2363
16 changed files with 164 additions and 72 deletions

View File

@ -46,6 +46,7 @@ public:
Q_INVOKABLE void initKeys(const QString currentPattern);
Q_INVOKABLE void initTooltip(const QVariantMap tooltipParams);
Q_INVOKABLE void setPopupEnabled(const bool popup = false);
Q_INVOKABLE void setTranslateStrings(const bool translate = false);
Q_INVOKABLE void setWrapNewLines(const bool wrap = false);
Q_INVOKABLE QString parsePattern() const;
Q_INVOKABLE QSize toolTipSize() const;
@ -88,6 +89,7 @@ private:
AWToolTip *toolTip = nullptr;
bool debug = false;
bool enablePopup = false;
bool translateStrings = false;
bool wrapNewLines = false;
ExtItemAggregator<GraphicalItem> *graphicalItems;
ExtItemAggregator<ExtQuotes> *extQuotes;