m_tagsDialog->show();
}
- QString UserInfo::splitWord(const QString &word) const
- {
- qDebug() << __PRETTY_FUNCTION__;
-
- QString result;
- QString temp;
-
- for (int i = 0; i < word.length(); i++) {
- if (fontMetrics().width(temp.append(word.at(i))) > LABEL_MAX_WIDTH) {
- result.append(temp.left(temp.length() - 1));
- result.append(" ");
- temp.remove(0, temp.length() - 1);
- }
- }
-
- result.append(temp);
-
- return result;
- }
-
+void UserInfo::tagsDialogFinished(int reason)
+{
- qDebug() << __PRETTY_FUNCTION__;
++qDebug() << __PRETTY_FUNCTION__;
+
+ if (reason == QDialog::Accepted) {
+ QStringList userTags = m_tagsDialog->userTags();
+ }
+
+ m_tagsDialog->deleteLater();
+}
+
void UserInfo::updateLocationDialogFinished(int reason)
{
qDebug() << __PRETTY_FUNCTION__;