summaryrefslogtreecommitdiffstats
path: root/src/gui/selectuserform.cpp
diff options
context:
space:
mode:
authorLubos Dolezel <lubos@dolezel.info>2015-06-04 16:42:26 +0200
committerLubos Dolezel <lubos@dolezel.info>2015-06-04 16:42:26 +0200
commit85a753d68eb8900ba94ce89f9638269858645e19 (patch)
tree214b66534fcf5189cc342d9eacf894dfbe2787a0 /src/gui/selectuserform.cpp
parent60c4f9eb8e42a2f1581d8a79dbae6245e405ae3f (diff)
downloadtwinkle-85a753d68eb8900ba94ce89f9638269858645e19.tar
twinkle-85a753d68eb8900ba94ce89f9638269858645e19.tar.gz
twinkle-85a753d68eb8900ba94ce89f9638269858645e19.tar.lz
twinkle-85a753d68eb8900ba94ce89f9638269858645e19.tar.xz
twinkle-85a753d68eb8900ba94ce89f9638269858645e19.zip
Application fully ported to Qt4 (no Qt3Support used any more)
Diffstat (limited to 'src/gui/selectuserform.cpp')
-rw-r--r--src/gui/selectuserform.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/gui/selectuserform.cpp b/src/gui/selectuserform.cpp
index 9f1618f..96c9eaa 100644
--- a/src/gui/selectuserform.cpp
+++ b/src/gui/selectuserform.cpp
@@ -30,8 +30,8 @@
* The dialog will by default be modeless, unless you set 'modal' to
* true to construct a modal dialog.
*/
-SelectUserForm::SelectUserForm(QWidget* parent, const char* name, bool modal, Qt::WindowFlags fl)
- : QDialog(parent, name, modal, fl)
+SelectUserForm::SelectUserForm(QWidget* parent)
+ : QDialog(parent)
{
setupUi(this);
@@ -91,7 +91,7 @@ void SelectUserForm::show(t_select_purpose purpose)
default:
assert(false);
}
- setCaption(title);
+ setWindowTitle(title);
purposeTextLabel->setText(msg_purpose);
// Fill list view
@@ -128,10 +128,10 @@ void SelectUserForm::validate()
QListWidgetItem *item = userListView->item(i);
if (item->checkState() == Qt::Checked) {
selected_list.push_back(phone->
- ref_user_profile(item->text().ascii()));
+ ref_user_profile(item->text().toStdString()));
} else {
not_selected_list.push_back(phone->
- ref_user_profile(item->text().ascii()));
+ ref_user_profile(item->text().toStdString()));
}
i++;
}