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

List:       kde-commits
Subject:    kdebase/kappfinder
From:       Helge Deller <deller () kde ! org>
Date:       2004-03-12 20:51:24
Message-ID: 20040312205124.B192999A8 () office ! kde ! org
[Download RAW message or body]

CVS commit by deller: 

use KStdGuiItem() and switch the positions of "Apply" and "Done" (I've seen
too many people stumbling over this issue...)


  M +4 -3      toplevel.cpp   1.18


--- kdebase/kappfinder/toplevel.cpp  #1.17:1.18
@@ -33,4 +33,5 @@
 #include <kservicegroup.h>
 #include <kstandarddirs.h>
+#include <kstdguiitem.h>
 #include <kstartupinfo.h>
 
@@ -77,5 +78,5 @@ TopLevel::TopLevel( const QString &destD
 
   KButtonBox* bbox = new KButtonBox( this );
-  bbox->addButton( i18n( "Close" ), kapp, SLOT( quit() ) );
+  mScanButton = bbox->addButton( i18n( "Scan" ), this, SLOT( slotScan() ) );
   bbox->addStretch( 5 );
   mSelectButton = bbox->addButton( i18n( "Select All" ), this,
@@ -86,7 +87,7 @@ TopLevel::TopLevel( const QString &destD
   mUnSelectButton->setEnabled( false );
   bbox->addStretch( 5 );
-  mApplyButton = bbox->addButton( i18n( "Apply" ), this, SLOT( slotCreate() ) );
+  mApplyButton = bbox->addButton( KStdGuiItem::apply().text(), this, SLOT( slotCreate() ) );
   mApplyButton->setEnabled( false );
-  mScanButton = bbox->addButton( i18n( "Scan" ), this, SLOT( slotScan() ) );
+  bbox->addButton( KStdGuiItem::close().text(), kapp, SLOT( quit() ) );
   bbox->layout();
 


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

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