@@ -156,7 +156,7 @@ To Change the font of only content:
156156
157157Bind the listener to confirm button:
158158
159- new KAlertDialog(this, KAlertDialog.WARNING_TYPE)
159+ new KAlertDialog(this, KAlertDialog.WARNING_TYPE, 0 )
160160 .setTitleText("Are you sure?")
161161 .setContentText("Won't be able to recover this file!")
162162 .setConfirmText("Yes,delete it!")
@@ -170,7 +170,7 @@ Bind the listener to confirm button:
170170
171171Show the cancel button and bind listener to it:
172172
173- new KAlertDialog(this, KAlertDialog.WARNING_TYPE)
173+ new KAlertDialog(this, KAlertDialog.WARNING_TYPE, 0 )
174174 .setTitleText("Are you sure?")
175175 .setContentText("Won't be able to recover this file!")
176176 .setCancelText("No,cancel plx!")
@@ -237,7 +237,7 @@ And if you want to hide Title Text and Content Text of alert dialog
237237
238238** Change** the dialog style upon confirming:
239239
240- new KAlertDialog(this, KAlertDialog.WARNING_TYPE)
240+ new KAlertDialog(this, KAlertDialog.WARNING_TYPE, 0 )
241241 .setTitleText("Are you sure?")
242242 .setContentText("Won't be able to recover this file!")
243243 .setConfirmText("Yes,delete it!")
0 commit comments