--title is filtered out by Qt, let's use --caption instead

CCMAIL: 57040-done@bugs.kde.org

svn path=/trunk/kdebase/kdialog/; revision=219264
This commit is contained in:
David Faure 2003-04-09 10:48:15 +00:00
parent aa9d627746
commit fe7fa15861
2 changed files with 11 additions and 11 deletions

View file

@ -66,7 +66,7 @@ static KCmdLineOptions options[] =
// TODO gauge stuff, reading values from stdin
{ "title <text>", I18N_NOOP("Dialog title"), 0 },
{ "caption <text>", I18N_NOOP("Dialog caption (title)"), 0 },
{ "separate-output", I18N_NOOP("Return list items on separate lines (for checklist option)"), 0 },
{ "+[arg]", I18N_NOOP("Arguments - depending on main option"), 0 },
@ -88,10 +88,10 @@ int directCommand(KCmdLineArgs *args)
QString title;
bool separateOutput = FALSE;
// --title text
if (args->isSet("title"))
// --caption text
if (args->isSet("caption"))
{
title = QString::fromLocal8Bit(args->getOption("title"));
title = QString::fromLocal8Bit(args->getOption("caption"));
cout << title.local8Bit().data() << endl;
}

View file

@ -1,5 +1,5 @@
echo "yesno box:"
kdialog --title "This is a yesno box" --yesno "Choose: yes or no"
kdialog --caption "This is a yesno box" --yesno "Choose: yes or no"
if [ $? = 0 ]; then
echo " your choice was: yes"
else
@ -7,10 +7,10 @@ else
fi
echo "message box:"
kdialog --title "This is a message" --msgbox "Well, this is it:\nthe message"
kdialog --caption "This is a message" --msgbox "Well, this is it:\nthe message"
echo "input box:"
kdialog --title "This is a input box" --inputbox "What is your name" "Joe User"
kdialog --caption "This is a input box" --inputbox "What is your name" "Joe User"
if [ $? = 0 ]; then
echo " you accepted"
else
@ -18,13 +18,13 @@ else
fi
echo "text box:"
kdialog --title "This is a text box" --textbox widgets.h 400 300
kdialog --caption "This is a text box" --textbox widgets.h 400 300
echo "menu:"
kdialog --title "This is a menu" --menu "Choose one of these" a English b German c French d Spanish
kdialog --caption "This is a menu" --menu "Choose one of these" a English b German c French d Spanish
echo "checklist:"
kdialog --title "This is a checklist" --checklist "Choose some of these" a English on b German off c French off d Spanish on
kdialog --caption "This is a checklist" --checklist "Choose some of these" a English on b German off c French off d Spanish on
echo "radiolist:"
kdialog --title "This is a radiolist" --radiolist "Choose one of these" a English off b German off c French on d Spanish off
kdialog --caption "This is a radiolist" --radiolist "Choose one of these" a English off b German off c French on d Spanish off