@@ -156,7 +156,7 @@ To Change the font of only content:
156
156
157
157
Bind the listener to confirm button:
158
158
159
- new KAlertDialog(this, KAlertDialog.WARNING_TYPE)
159
+ new KAlertDialog(this, KAlertDialog.WARNING_TYPE, 0 )
160
160
.setTitleText("Are you sure?")
161
161
.setContentText("Won't be able to recover this file!")
162
162
.setConfirmText("Yes,delete it!")
@@ -170,7 +170,7 @@ Bind the listener to confirm button:
170
170
171
171
Show the cancel button and bind listener to it:
172
172
173
- new KAlertDialog(this, KAlertDialog.WARNING_TYPE)
173
+ new KAlertDialog(this, KAlertDialog.WARNING_TYPE, 0 )
174
174
.setTitleText("Are you sure?")
175
175
.setContentText("Won't be able to recover this file!")
176
176
.setCancelText("No,cancel plx!")
@@ -237,7 +237,7 @@ And if you want to hide Title Text and Content Text of alert dialog
237
237
238
238
** Change** the dialog style upon confirming:
239
239
240
- new KAlertDialog(this, KAlertDialog.WARNING_TYPE)
240
+ new KAlertDialog(this, KAlertDialog.WARNING_TYPE, 0 )
241
241
.setTitleText("Are you sure?")
242
242
.setContentText("Won't be able to recover this file!")
243
243
.setConfirmText("Yes,delete it!")
0 commit comments