Commit e0592941 authored by David Faure's avatar David Faure

kdialog: add missing syntax documentation

parent 2fcc1965
......@@ -624,6 +624,7 @@ int main(int argc, char *argv[])
cout << result.toLocal8Bit().data() << endl;
return retcode ? 0 : 1;
}
cerr << qPrintable(i18n("Syntax: --combobox <text> item [item] ...")) << endl;
return -1;
}
......@@ -645,6 +646,7 @@ int main(int argc, char *argv[])
}
return retcode ? 0 : 1;
}
cerr << qPrintable(i18n("Syntax: --menu text [tag item] [tag item] ...")) << endl;
return -1;
}
......@@ -662,15 +664,16 @@ int main(int argc, char *argv[])
const bool retcode = Widgets::checkList(0, title, text, list, separateOutput, result);
for (int i=0; i<result.count(); i++)
if (!result.at(i).toLocal8Bit().isEmpty()) {
if (!result.at(i).isEmpty()) {
cout << result.at(i).toLocal8Bit().data() << endl;
}
return retcode ? 0 : 1;
}
cerr << qPrintable(i18n("Syntax: --checklist text [tag item on/off] [tag item on/off]")) << endl;
return -1;
}
// --radiolist text width height menuheight [tag item status]
// --radiolist text [tag item status] ...
if (parser.isSet("radiolist")) {
QStringList list;
if (args.count() >= 3) {
......@@ -684,6 +687,7 @@ int main(int argc, char *argv[])
cout << result.toLocal8Bit().data() << endl;
return retcode ? 0 : 1;
}
cerr << qPrintable(i18n("Syntax: --radiolist text [tag item on/off] ...")) << endl;
return -1;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment