[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdebase/kdialog
From:       David Faure <faure () kde ! org>
Date:       2003-04-09 10:48:16
[Download RAW message or body]

CVS commit by faure: 

--title is filtered out by Qt, let's use --caption instead
CCMAIL: 57040-done@bugs.kde.org


  M +4 -4      kdialog.cpp   1.9
  M +7 -7      test   1.2


--- kdebase/kdialog/kdialog.cpp  #1.8:1.9
@@ -67,5 +67,5 @@ static KCmdLineOptions options[] =
 
 
-    { "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 },  
@@ -89,8 +89,8 @@ int directCommand(KCmdLineArgs *args)
     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;
     }

--- kdebase/kdialog/test  #1.1.1.1:1.2
@@ -1,4 +1,4 @@
 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"
@@ -8,8 +8,8 @@
 
 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"
@@ -19,12 +19,12 @@
 
 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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic