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

List:       kde-commits
Subject:    KDE/kdeedu/kstars/kstars/tools
From:       Charles Sheridan <casheridan () gmail ! com>
Date:       2010-11-07 15:21:06
Message-ID: 20101107152106.E9134AC89B () svn ! kde ! org
[Download RAW message or body]

SVN commit 1193920 by sheridan:

Changing Close button so that cancel in saveWarning functions correctly.

 M  +3 -2      scriptbuilder.cpp  


--- trunk/KDE/kdeedu/kstars/kstars/tools/scriptbuilder.cpp #1193919:1193920
@@ -136,7 +136,8 @@
     sb = new ScriptBuilderUI(this);
     setMainWidget(sb);
     setCaption( i18n( "Script Builder" ) );
-    setButtons( KDialog::Close );
+    setButtons( KDialog::User1 );
+    setButtonGuiItem( KDialog::User1, KGuiItem( i18n("&Close"), \
"dialog-close", i18n("Close the dialog") ) );  
     sb->FuncDoc->setTextInteractionFlags( Qt::NoTextInteraction );
 
@@ -425,7 +426,7 @@
     otv->resizeColumns();
 
     //connect widgets in ScriptBuilderUI
-    connect( this, SIGNAL(closeClicked()), this, SLOT(slotClose()));
+    connect( this, SIGNAL(user1Clicked()), this, SLOT(slotClose()));
     connect( sb->FunctionTree, SIGNAL( itemDoubleClicked(QTreeWidgetItem \
                *, int )), this, SLOT( slotAddFunction() ) );
     connect( sb->FunctionTree, SIGNAL( itemClicked(QTreeWidgetItem*, int) \
                ), this, SLOT( slotShowDoc() ) );
     connect( sb->UpButton, SIGNAL( clicked() ), this, SLOT( \
slotMoveFunctionUp() ) );


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

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