diff options
| author | Kevin Smith <git@kismith.co.uk> | 2012-05-31 09:22:18 (GMT) |
|---|---|---|
| committer | Kevin Smith <git@kismith.co.uk> | 2012-05-31 09:22:18 (GMT) |
| commit | 59f1bfcf315a77834ddbce20cc05892d211ab55c (patch) | |
| tree | 42212b6ae07539b3bfd6fdcb6903dab9aa6b61be /Swift/QtUI/QtContactEditWidget.h | |
| parent | 08399fe0e7d8d5ab42975b51c487c82caf845cef (diff) | |
| download | swift-contrib-59f1bfcf315a77834ddbce20cc05892d211ab55c.zip swift-contrib-59f1bfcf315a77834ddbce20cc05892d211ab55c.tar.bz2 | |
Render & in group names correctly in edit dialog.
Resolves: #1117
Diffstat (limited to 'Swift/QtUI/QtContactEditWidget.h')
| -rw-r--r-- | Swift/QtUI/QtContactEditWidget.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Swift/QtUI/QtContactEditWidget.h b/Swift/QtUI/QtContactEditWidget.h index 5350762..6d55b80 100644 --- a/Swift/QtUI/QtContactEditWidget.h +++ b/Swift/QtUI/QtContactEditWidget.h @@ -32,18 +32,22 @@ namespace Swift { std::string getName() const; void setSelectedGroups(const std::vector<std::string>& groups); std::set<std::string> getSelectedGroups() const; void setNameSuggestions(const std::vector<std::string>& suggestions); void clear(); + + private: + QString doubleAmpersand(const std::string& name) const; + std::string singleAmpersand(const QString& name) const; private: typedef std::map<std::string, QCheckBox*> CheckBoxMap; CheckBoxMap checkBoxes_; QHBoxLayout* nameLayout_; QHBoxLayout* suggestionsLayout_; QRadioButton* nameRadioButton_; QLineEdit* name_; QWidget* groups_; QCheckBox* newGroup_; |
Swift