Hi,

I crated a simple designerplugin. It is a subclassed QLineEdit with a few additional properties:

Qt Code:
  1. class QDESIGNER_WIDGET_EXPORT LineEdit : public QLineEdit
  2. {
  3. Q_OBJECT
  4. Q_PROPERTY(QString tableName READ tableName WRITE setTableName)
  5. Q_PROPERTY(QString columnName READ columnName WRITE setColumnName)
  6.  
  7. public:
  8. LineEdit(QWidget *parent = 0);
  9.  
  10. QString tableName() const;
  11. void setTableName(const QString &tableName);
  12. QString columnName() const;
  13. void setColumnName(const QString &columnName);
  14.  
  15. private:
  16. QString m_tableName;
  17. QString m_columnName;
  18.  
  19. };
To copy to clipboard, switch view to plain text mode 


Designer loads the plugin, but I do not get the no_translation option in the property editor. I tried to set it in domXML():

Qt Code:
  1. QString LineEditPlugin::domXml() const
  2. {
  3. return "<widget class=\"LineEdit\" name=\"lineEdit\">\n"
  4. " <property name=\"tableName\" >\n"
  5. " <string notr=\"true\"></string>\n"
  6. " </property>\n"
  7. " <property name=\"columnName\" >\n"
  8. " <string notr=\"true\"></string>\n"
  9. " </property>\n"
  10. "</widget>\n";
  11. }
To copy to clipboard, switch view to plain text mode 

The "notr" is always ignored and not saved to the .ui file. Any idea why? and how i can use this feature with the new properties?