void SingleActionEditor::chooseSmallIcon() { if(!m_pActionData)return; KviImageDialog * d = new KviImageDialog(this); int ret = d->exec(); QString s = d->selectedImage(); delete d; if(ret != QDialog::Accepted) return; displaySmallIcon(s); }
void SingleActionEditor::chooseBigIcon() { if(!m_pActionData)return; KviImageDialog * d = new KviImageDialog(this,QString(),KID_TYPE_ALL,KID_TYPE_FULL_PATH); int ret = d->exec(); QString s = d->selectedImage(); delete d; if(ret != QDialog::Accepted) return; displayBigIcon(s); }
void CustomToolBarPropertiesDialog::iconButtonClicked() { KviImageDialog * dlg = new KviImageDialog(this,__tr2qs_ctx("Please choose the icon for the ToolBar","editor")); if(dlg->exec() != QDialog::Accepted) { delete dlg; return; } QString s = dlg->selectedImage(); delete dlg; iconSelected(s); }